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. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
error_reporting (E_ALL | E_STRICT)
Error
nl2br()
underscores
2. Used to convert all HTML tags into their entity versions.
superglobal
indexed array
htmlentities()
.=
3. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
preg_split()
double quotes
mysql_fetch_array()
AJAX
4. leading zero: 0100 or 0567
statement
octal
<<
crypt()
5. _____ is a logical operator
==
not
XOR
superglobal
6. To reset an array _______ the array() function to the array
switch
reassign
Error
underscores
7. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
server-side programing
true
Magic Constant
preg_replace()
8. _________ can be used in conditional statements to set precedence
substr_count()
shuffle()
parentheses
XML
9. Standard Generalized Markup Language
SGML
HTTP
is_numeric()
Shebang
10. Used to encrypt values - it is a one-way encryption method
superglobal
switch
list()
crypt()
11. To sort the values while maintaining the correlation between each value and its key
abs()
statement
number_format()
asort()
12. When used the value can be passed safely through the URL (GET).
$_GET[]
foreach
urlencode()
number_format()
13. bitwise left shift
SEO
AJAX
<<
strtok()
14. Used to create a substring (referred to as a token) from a larger string
empty()
strtok()
ceil()
wordwrap()
15. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
int
+
drop
AJAX
16. print $_SERVER will _____ work if you use the print function on arrays.
error_reporting (E_ALL & -E_NOTICE)
not
preg_split()
client-side programing
17. The order of operations.
integer
define()
the escape character ''
precedence
18. Variable names can begin with __________
underscores
strtok()
count()
Parse error
19. This fatal error arises from memory allocation problem.
round() Function
Magic Constant
Error
strip_tags()
20. This will not show error reporting - it will be turned off.
rsort()
$array[] = item
error_reporting (0)
foreach
21. An array of variables passed in the URL
$_GET[]
wordwrap()
addcslashes()
arsort()
22. Creates a pointer to a file with the declared mode (read - write -etc.).
preg_match()
strtok()
double quotes
fopen()
23. Tag to begin a php script
general
define()
boolean
<?php
24. Used to find the amount of words in a string.
loops
1
SEO
str_word_count()
25. Function used to round up to the highest integer
error_reporting (0)
ceil()
error_reporting (E_ALL | E_STRICT)
rsort()
26. bitwise XOR
chr()
^
array
rand()
27. function Function used to create a random number
rand()
$varname[key]
float
empty()
28. Used to convert certain HTML tags into their entity versions.
associative array
htmlspecialchars()
superglobal
Hex
29. a line of information that can be stored in a variable or used in a function or statement
XOR
HTTP
superglobal
string
30. To sort the values while maintaining the correlation between each value and its key - in reversed order
arsort()
index
curly braces; ${$total}
$_GET[]
31. The concatenation operator?
strlen()
client-side programing
the period; .
asort()
32. used to round numeric values.
Parse error
round() Function
strip_tags()
if/elseif/else and switch statements
33. An array of variables passed with <input /> data
$_POST[]
&
+= or -= or *= or /=
Hex
34. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
$_POST[]
array
$array[] = item
associative array
35. The four main error types are:Notice - Warning - ________ and Error.
integer
DTD
string
Parse error
36. _______ is a comparison operator
curly braces; ${$total}
integer
!= inequality
strlen()
37. Use ________ to have multiple quotations in one string
error_reporting (E_ALL)
the escape character ''
wordwrap()
general
38. To delete a variable or an element of an array
boolean
^
unset()
+= or -= or *= or /=
39. ___________ can be used with substr() to count backward
strip_tags()
curly braces; ${$total}
negative numbers
array()
40. Function used to round down to the lowest integer
Parse error
Notice
floor()
nl2br()
41. 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 __________.
chr()
define()
ceil()
curly braces; ${$total}
42. a type with two possible values: true and false
array
$varname[key]
error_reporting (E_ALL | E_STRICT)
boolean
43. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
==
bin2hex()
E_STRICT
the dollar sign $
44. To check if a constant is already declared
defined()
foreach loop
date()
count()
45. The output of var_export((float)array(0));
superglobal
preg_match()
1
int
46. The three types of loops in PHP are: for - while - ____.
strlen()
foreach
ASP
octal
47. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
POST
date()
AJAX
1
48. Returns a character from a specified ASCII value
$dbc = mysql_connect(hostname, username, password)
chr()
<?php
htmlspecialchars()
49. equivalence
==
AJAX
mysql_fetch_array()
mysql_fetch_object()
50. Function that contains the highest value that rand() can have randomly
fopen()
the dollar sign $
for ($i = 0; $i < count($array); $i++) {statement(s);}
getrandmax()