SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
|
Email
Search
Test your basic knowledge |
Php Programming Basics
Start Test
Study First
Subject
:
it-skills
Instructions:
Answer 50 questions in 15 minutes.
If you are not ready to take this test, you can
study here
.
Match each statement with the correct term.
Don't refresh. All questions and answers are randomly picked and ordered every time you load a test.
This is a study tool. The 3 wrong answers for each question are randomly chosen from answers to other questions. So, you might find at times the answers obvious, but you will see it re-enforces your understanding as you take the test each time.
1. bitwise right shift
true
for ($i = 0; $i < count($array); $i++) {statement(s);}
>>
chr()
2. Function can you use to format a number with commas
number_format()
ceil()
$varname[key]
$_POST[]
3. Used to display errors in a particular script - should be placed at top of script.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
4. Hyper Text Markup Language
single quotes
general
HTML
^
5. The array that stores variables specific to a user's visit
AJAX
$_SESSION[]
foreach
error_reporting (E_ALL & -E_NOTICE)
6. used to round numeric values.
str_ireplace()
parentheses
XOR
round() Function
7. equivalence
===
.=
statement
==
8. Used to convert certain HTML tags into their entity versions.
is_numeric()
parentheses
htmlentities()
htmlspecialchars()
9. To merge arrays
array_merge()
foreach
addslashes()
$_REQUEST
10. To put a dollar sign before a variable like $10 where 10 is the variable's value - you can escape the first dollar sign; $$cost; or you can use __________.
curly braces; ${$total}
list()
indexed array
function error_reporting()
11. a type with two possible values: true and false
boolean
count()
the period; .
ksort()
12. addition
the dollar sign $
!= inequality
mysql
+
13. _________ can be used in conditional statements to set precedence
curly braces; ${$total}
parentheses
sort()
$_REQUEST
14. Leading 0x: 0x13F or 0xA23
Hex
asort()
str_word_count()
mysql_close($dbc)
15. This error refers to a variable with no value.
Magic Constant
crypt()
predefined
Notice
16. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
client-side programing
null
true
nl2br()
17. the most basic function in PHP used to output information to the page
echo
trim()
rand()
<<
18. To iterate over the keys and values of an array
foreach loop
ASP
foreach
floor()
19. To counter htmlentities()
0
html_entity_decode()
chr()
<?php
20. Alias of rtrim()
is_numeric()
chop()
parentheses
rsort()
21. identity
&
curly braces; ${$total}
is_numeric()
===
22. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
Magic Constant
str_word_count()
floor()
statement
23. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
GET
list()
+= or -= or *= or /=
chr()
24. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
+= or -= or *= or /=
Warning
Parse error
<<
25. When used the value can be passed safely through the URL (GET).
HTTP
urlencode()
DTD
variable
26. Used to create a substring (referred to as a token) from a larger string
>>
wordwrap()
strtok()
<?php
27. Hyper Text Transfer Protocol
WYSIWYG
drop
POST
HTTP
28. This will show all error reporting except for notice errors.
POST
rsort()
error_reporting (E_ALL & -E_NOTICE)
mysql_fetch_object()
29. To get time data
preg_match()
Warning
>>
date()
30. $_POST Data sent using POST found is sent to _______
predefined variable
switch
define()
superglobal
31. function Function used to create a random number
rand()
array_merge()
preg_replace()
Shebang
32. To declare a constant
mysql
define()
the period; .
empty()
33. standard notation
PHP
str_word_count()
predefined variable
decimal
34. $_SERVER is a ________ variable.
+= or -= or *= or /=
+
predefined
round() Function
35. Tag to begin a php script
<?php
abs()
boolean
associative array
36. The output of var_export((float)array(0));
open source
include() and require()
1
urlencode()
37. Function that contains the highest value that rand() can have randomly
getrandmax()
arsort()
GET
HTML
38. To find how many substrings are in a string
bin2hex()
strtok()
mysql_fetch_object()
substr_count()
39. says 'if' this then do this 'else' do this or 'while' this do this
mysql
statement
mysql_fetch_object()
define()
40. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
E_STRICT
chop()
open source
1
41. The three types of loops in PHP are: for - while - ____.
foreach
^
mysql_fetch_array()
mysql
42. Returns a string with backslashes in front of predefined characters
error_reporting (E_ALL)
addslashes()
urlencode()
fopen()
43. This error arises from misusing a function.
Warning
SEO
curly braces; ${$total}
Parse error
44. _______ is a comparison operator
the period; .
Hex
variable
!= inequality
45. Search Engine Optimization
htmlentities()
true
preg_replace()
SEO
46. container of ordered data elements
$_GET[]
Constant
Array
echo
47. Used to encrypt values - it is a one-way encryption method
mysql_fetch_object()
foreach loop
foreach
crypt()
48. Used to find the amount of words in a string.
single quotes
server-side programing
str_word_count()
float
49. To sort the values while maintaining the correlation between each value and its key
Object
asort()
&
mysql_fetch_array()
50. The output of var_export((float)array());
E_STRICT
0
include() and require()
array