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. Tag to end a php script
ini_set ('display_errors', 1)
Object
===
?>
2. To sort the values while maintaining the correlation between each value and its key
abs()
strip_tags()
Shebang
asort()
3. either hasn't yet been set or is assigned NULL value
number_format()
null
AJAX
$_SESSION[]
4. standard notation
double quotes
<?php
array
decimal
5. returns the number of matches found by a given search string under this format...
$var++ and $var
loops
function
preg_match()
6. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
Object
count()
Parse error
mysql_fetch_object()
7. Function that contains the highest value that rand() can have randomly
ini_set ('display_errors', 1)
array()
getrandmax()
Parse error
8. A data structure that can hold a number of items of data of the same type eg. a list of names
mysql_fetch_array()
wordwrap()
array
sort()
9. $_SERVER is a ________ variable.
trim()
!= inequality
float
predefined
10. To reset an array _______ the array() function to the array
boolean
reassign
XOR
Parse error
11. To refer to an item in an array
error_reporting (E_ALL & -E_NOTICE)
addcslashes()
shuffle()
$varname[key]
12. An array whose keys are numbers.
XML
if/elseif/else and switch statements
indexed array
unset()
13. To include files - _______ will give errors and _________ will terminate execution().
associative array
SEO
double quotes
include() and require()
14. Uses two arguments: constant name and constant definition
define()
index
preg_match()
for ($i = 0; $i < count($array); $i++) {statement(s);}
15. PHP has two conditional: if and ______.
switch
Parse error
array()
+
16. Used to find the length of a string
isset()
htmlspecialchars()
associative array
strlen()
17. Used to check if a variable has a valid numerical value; strings with numerical values pass.
foreach loop
boolean
single quotes
is_numeric()
18. a storage location in the computer's memory that has a type & a name and a contents
server-side programing
general
arsort()
variable
19. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
numbers
empty()
sort()
bin2hex()
20. The output of var_export((float)array(0));
1
array()
ini_set ('display_errors', 1)
error_reporting (0)
21. Used to find the amount of words in a string.
str_word_count()
error_reporting (0)
.=
if/elseif/else and switch statements
22. EXtensible Markup Language
mysql_fetch_array()
curly braces; ${$total}
XML
strlen()
23. A conditional or loop is a ________________.
abs()
the escape character ''
control structure
$var++ and $var
24. Active Server Pages
ASP
underscores
Array
sort()
25. $_POST and $_GET are ________ variables.
array_merge()
drop
predefined
1
26. Alias of rtrim()
PHP
==
chop()
null
27. When used the value can be passed safely through the URL (GET).
urlencode()
bin2hex()
SEO
mysql
28. Hyper Text Transfer Protocol
isset()
true
Warning
HTTP
29. Standard Generalized Markup Language
error_reporting (E_ALL & -E_NOTICE)
SGML
wordwrap()
string
30. Tag to begin a php script
<?php
number_format()
chr()
string
31. ____ or key is referred to for a value within an array.
index
drop
addslashes()
Parse error
32. _________ can be used in conditional statements to set precedence
mysql
parentheses
str_ireplace()
addcslashes()
33. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
urlencode()
trim()
Parse error
curly braces; ${$total}
34. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
boolean
HTML
POST
&
35. To sort values of an array without regard to the keys
array()
HTML
rand()
sort()
36. What You See Is What You Get
switch
WYSIWYG
ceil()
error_reporting (E_ALL & -E_NOTICE)
37. All variables must begin with _________.
ini_set ('display_errors', 1)
the dollar sign $
the escape character ''
PHP
38. _______ is a comparison operator
the period; .
!= inequality
arsort()
number_format()
39. Function used to round down to the lowest integer
control structure
floor()
int
$_GET[]
40. Control structures that break exit
+
Magic Constant
integer
if/elseif/else and switch statements
41. a language in which to make querys to a database with
crypt()
predefined variable
sql
unset()
42. To reorganise the array randomly
shuffle()
floor()
htmlentities()
htmlspecialchars()
43. Used to check if a variable has any value (including 0 or FALSE or an empty string).
+
drop
isset()
array()
44. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
Magic Constant
Parse error
<?php
bin2hex()
45. Function can you use to format a number with commas
array()
client-side programing
array_merge()
number_format()
46. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
strlen()
substr_count()
define()
drop
47. Used to replace a substring with another string - it is not case-sensitive.
str_ireplace()
^
unset()
mysql_fetch_array()
48. Hyper Text Markup Language
crypt()
curly braces
HTML
loops
49. To sort values of an array in reversed order
include() and require()
rsort()
Error
wordwrap()
50. Returns a string with backslashes in front of predefined characters
addslashes()
GET
not
round() Function