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 that contains the highest value that rand() can have randomly
getrandmax()
Hex
trim()
Parse error
2. Use ________ to have multiple quotations in one string
associative array
POST
the escape character ''
Notice
3. TRUE or FALSE
substr_count()
+
error_reporting (0)
boolean
4. Shorthand used to increment and decrement
isset()
$var++ and $var
foreach
DTD
5. Alias of rtrim()
ASP
numbers
int
chop()
6. The four main error types are:Notice - Warning - ________ and Error.
general
open source
Parse error
the escape character ''
7. Variable names can begin with __________
str_word_count()
shuffle()
underscores
unset()
8. Returns a string with backslashes in front of the specified characters
addcslashes()
wordwrap()
PHP
string
9. a language in which to make querys to a database with
>>
E_STRICT
unset()
sql
10. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
error_reporting (E_ALL | E_STRICT)
Magic Constant
variable
$_GET[]
11. allows you to split strings based on more complex rules
preg_split()
E_STRICT
Constant
$_GET[]
12. An array of variables passed with <input /> data
<?php
$_POST[]
$var++ and $var
^
13. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
preg_match()
empty()
POST
variable
14. bitwise right shift
function error_reporting()
the period; .
reassign
>>
15. ___________ can be used with substr() to count backward
negative numbers
abs()
chr()
asort()
16. Used to check if a variable has any value (including 0 or FALSE or an empty string).
integer
asort()
===
isset()
17. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
error_reporting (0)
sql
mysql_fetch_object()
the dollar sign $
18. $_POST and $_GET are ________ variables.
predefined
WYSIWYG
XOR
sort()
19. To get time data
POST
date()
indexed array
single quotes
20. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
mysql_fetch_object()
general
$_GET[]
string
21. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
GET
empty()
predefined
curly braces; ${$total}
22. Used to convert certain HTML tags into their entity versions.
switch
general
htmlspecialchars()
POST
23. signed floating-point value
float
Shebang
shuffle()
true
24. An array whose keys are numbers.
general
define()
indexed array
switch
25. Used to check if a variable has a valid numerical value; strings with numerical values pass.
unset()
$$
Parse error
is_numeric()
26. a positive or negative number
integer
html_entity_decode()
addcslashes()
fopen()
27. The syntax for connecting to a database
server-side programing
$dbc = mysql_connect(hostname, username, password)
predefined variable
floor()
28. Used to replace a substring with another string - it is not case-sensitive.
$_REQUEST
client-side programing
chr()
str_ireplace()
29. PHP has two conditional: if and ______.
WYSIWYG
ASP
switch
strip_tags()
30. To determine the amount of elements in an array
count()
decimal
chop()
superglobal
31. Active Server Pages
rsort()
trim()
indexed array
ASP
32. When used the value can be passed safely through the URL (GET).
>>
array_merge()
<<
urlencode()
33. To set up error reporting
predefined
numbers
int
function error_reporting()
34. standard notation
is_numeric()
addslashes()
sql
decimal
35. Control structures that break exit
fopen()
substr_count()
if/elseif/else and switch statements
array()
36. Function can you use to format a number with commas
number_format()
^
parentheses
rsort()
37. To iterate over the values of an array
for ($i = 0; $i < count($array); $i++) {statement(s);}
variable
Notice
empty()
38. To sort by the keys while maintaining the correlation between the key and its value
HTTP
ksort()
date()
arsort()
39. To merge arrays
array_merge()
+
str_ireplace()
substr_count()
40. either hasn't yet been set or is assigned NULL value
switch
crypt()
null
round() Function
41. This will show all error reporting except for notice errors.
error_reporting (E_ALL & -E_NOTICE)
precedence
sort()
+
42. Creates a pointer to a file with the declared mode (read - write -etc.).
shuffle()
fopen()
isset()
true
43. leading zero: 0100 or 0567
SEO
Shebang
octal
the dollar sign $
44. To assign array element values to individual variables
string
^
drop
list()
45. Function used to round up to the highest integer
ceil()
XML
indexed array
switch
46. To declare a constant
$_GET[]
the dollar sign $
define()
curly braces; ${$total}
47. bitwise left shift
abs()
the escape character ''
ceil()
<<
48. To delete a variable or an element of an array
==
<?php
str_word_count()
unset()
49. _______ is a comparison operator
&
E_STRICT
!= inequality
trim()
50. Hyper Text Markup Language
int
HTML
$$
str_ireplace()