You think you can answer few questions about programing languages? How about very specific questions? The following quizzes are made to test your knowledge. As always, i is just for fun and no data will be stored by sanuja.com. Feel free to report any errors. Currently only the PHP, MySQL, CSS and HTML quizzes are up. Expect to see more before September 2013.
PHP and MySQL Quiz
Congratulations - you have completed PHP and MySQL Quiz.
You scored %%SCORE%% out of %%TOTAL%%.
Your performance has been rated as %%RATING%%
Question 1 |
A | It prints out the program's out come for input of the next. |
B | This is not a valid PHP function. |
C | It is the human-readable information print out. |
D | It is used to pass the information from previous function to the next known as "r". |
Question 2 |
A | ASP.net |
B | Java |
C | VisualBasic |
D | C# |
Question 3 |
A | Preconfigured Hypertext Programming |
B | Processed Hypertext Prone |
C | Hypertext Preprocessor |
D | Preloaded Hypertext Programming |
Question 4 |
/*.A | False |
B | True |
Question 5 |
mail(V, W, X, Y, X)
A | At position W |
B | At position Y |
C | At position V |
D | At position Z |
E | At position X |
Question 6 |
$LoveJam=fopen("sanuja.txt","r");
A | It opens the file sanuja.text and enters LoveJam as a text string. |
B | It opens the file sanuja.text and enters LoveJam as a variable code. |
C | It opens the file sanuja.text in read only mode. |
D | It opens the file sanuja.text and assign it to variable fopen. |
Question 7 |
A | PHP-img Library |
B | GD Library |
C | GU Library |
D | GB Library |
Question 8 |
A | False |
B | True |
Question 9 |
A | € |
B | [...] |
C | {...} |
D | $ |
Question 10 |
A | mysqli_affected_rows() |
B | mysqli():affected_rows() |
C | mysql_affected_rows() Hint: Uh... this is the old one! Oops! |
D | mysql():affected_rows() |
Question 11 |
A | Using a if condition. |
B | function.login() |
C | Using a for or a while loops. |
D | check.login() |
Question 12 |
A | MySQL database attacks |
B | injections |
C | source code attacks |
D | force loads |
Question 13 |
A | No, each website will get it's own set of PHP databases and the PHP install must be independent of each other. |
B | Yes, as long as each website have the access to the install. |
C | No for Windows based servers, but this can be done on a Linux or Unix server. For Windows, each site must have their own install of PHP. |
D | Yes, but both websites MUST share the same database files. |
Question 14 |
$name = "Sanuja Senanayake";
Is it a valid variable name?
A | Yes |
B | No, because you cannot use an undefined arbitrary words in variables. PHP won't known what is Sanuja Senanayake. |
C | No, because you cannot have white space (space) inside a variable name |
D | Yes, but it is a print statement, not a variable. |
Question 15 |
A | str() |
B | print() |
C | command() |
D | echo() |
E | strings() |
Question 16 |
A | imagesw() |
B | imageswidth() |
C | imagesy() |
D | imagesx() |
Question 17 |
A | Yes, it can be installed on Unix, Linux, Apple and Windows operating systems. |
B | No, it can be installed on any server, but cannot be installed on non-server units. |
C | No, it can only be installed on Linux servers. |
D | No, it can only be installed on Windows Servers with IIS support. |
Question 18 |
$sanuja=mysqli_connect("I","II","III","IV");
A | at I and II |
B | at II and III |
C | at III and IV |
D | at I and IV |
Question 19 |
A | 2 |
B | Unlimited |
C | 5 |
D | 1 |
Question 20 |
$cars=array("Volvo","BMW","Toyota");
echo "I like " . $cars[0] . ", " . $cars[1] . " and " . $cars[2] . ".";
A | array |
B | condition |
C | data set |
D | loop |
Question 21 |
A | True |
B | False |
Question 22 |
A | False, PHP is a server side processing language with no end user plugins. |
B | True, but ONLY for mobile devices. |
C | False, the plugin for PHP will be automatically installed when the client unit access a PHP based site. |
D | True, because PHP requires a plugin much like Flash or Java on the client computer. |
Question 23 |
A | _.php |
B | FileName.php |
C | php.ini |
D | php.exe |
Question 24 |
A | No |
B | Yes |
Question 25 |
A | numbers |
B | white space |
C | capital letters |
D | mix of simple and capital letters |
Question 26 |
$sanuja=mysqli_connect("I","II","III","IV");
A | host and username |
B | host and database |
C | database and password |
D | username and password |
E | database and host |
Question 27 |
A | False |
B | True |
Question 28 |
A | MySQL cannot support standard SQL. |
B | MySQL can be installed on Windows, Linux and Unix servers. |
C | MySQL is a free database program. |
D | MySQL was developed and supported by Oracle Corporation. |
E | MySQL can be used on both small and large scale databases. |
Question 29 |
A | HTML |
B | Java |
C | Ruby |
D | C# |
Question 30 |
A | The commenting tags /* and */ are in backwards order. |
B | The "php" at the start should be capitalized to "PHP" |
C | The start and end should have ?php and ? tags |
D | There is no output command for the operation hence the script is useless. |
← |
List |
→ |
| 1 | 2 | 3 | 4 | 5 |
| 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 |
| End |
CSS and HTML Quiz
Congratulations - you have completed CSS and HTML Quiz.
You scored %%SCORE%% out of %%TOTAL%%.
Your performance has been rated as %%RATING%%
Question 1 |
A | 3 |
B | 4 |
C | 1 |
D | 2 |
Question 2 |
A | No |
B | Yes |
Question 3 |
A | They are the same. They move the data to the next line. |
B | They are different. The br tag creates a new line and p tag creates a new paragraph. |
C | They are the same. They create a new paragraph. |
D | They are different. The br tag creates a new paragraph while the p tag creates a new line. |
Question 4 |
A | By using the $css_file("file_url_here') in one of the .css files. |
B | By using functions_css("file_url_here") at the top of the .php file. |
C | By using the @import url("file_url_here") in one of the .css files. |
D | By saving both files with the same name but one of them as .css and the other as .css2 extinctions. |
E | You cannot combine two different style sheets. |
Question 5 |
A | Cascading Style Sheets |
B | Computer Style Sheets |
C | Cheat Style Sheets |
D | Casting Style Sheets |
Question 6 |
A | / |
B | ? |
C | : |
D | & |
E | % |
Question 7 |
A | wrap:none; |
B | text-wrap:black; |
C | white-space:blank; |
D | white-space:nowrap; |
Question 8 |
A | Hyper Text Markup Language |
B | Hash Tag Markup Language |
C | Hyperlinks and Text Markup Language |
D | Hash Text Markup Language |
Question 9 |
A | No |
B | Yes |
This is a title heading.
Question 10 |
A | False |
B | True |
Question 11 |
(Without creating a separate style sheet.)
A | .WHAT_EVER_CODE_ELEMENT_TO_BE_MOD {
VARIABLE:ACTION;
POST_ID
} |
B | .POST_ID .WHAT_EVER_CODE_ELEMENT_TO_BE_MOD {
VARIABLE:ACTION;
} |
C | .WHAT_EVER_CODE_ELEMENT_TO_BE_MOD .POST_ID {
VARIABLE:ACTION;
} |
D | .WHAT_EVER_CODE_ELEMENT_TO_BE_MOD {
POST_ID
VARIABLE:ACTION;
} |
Question 12 |
A | ...it is a server side programming language. |
B | ...it can take over some of the php.ini functions. |
C | ...a single style sheet can be loaded for all subsequent pages. |
D | ...it can take over heavy loads off of MySQL databases. |
Question 13 |
A | br |
B | ita |
C | ty |
D | em |
Question 14 |
A | always! |
B | important! |
C | dominate! |
D | primary! |
Question 15 |
A | The second one is no longer in use. All current (as of MAY-2013) versions of CSS use "dot" version |
B | They are identical and will behave the same. |
C | The first one is used to control an element name "sanuja". The second one is an invalid code in CSS. |
D | First one is used to control all elements with id=sanuja. Second one is used to control a single element with class=sanuja |
Question 16 |
A | CSS |
B | HTML |
C | MySQL |
D | PHP |
E | JavaScript |
← |
List |
→ |
| 1 | 2 | 3 | 4 | 5 |
| 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 |
| 16 | End |
