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. Alias of rtrim()
Parse error
?>
html_entity_decode()
chop()
2. container of both data and code
reassign
Object
number_format()
mysql_close($dbc)
3. identity
curly braces
switch
mysql
===
4. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
superglobal
bin2hex()
mysql_fetch_array()
predefined variable
5. TRUE or FALSE
boolean
predefined variable
number_format()
&
6. Hyper Text Transfer Protocol
HTTP
integer
list()
client-side programing
7. Standard Generalized Markup Language
arsort()
list()
SGML
<<
8. To get time data
^
date()
double quotes
$array[] = item
9. searches the subject for matches to a given pattern replaced with the given replacement text
single quotes
preg_replace()
1
rsort()
10. To assign keys to the values in an array
ini_set ('display_errors', 1)
array()
arsort()
getrandmax()
11. To sort values of an array in reversed order
string
rsort()
define()
reassign
12. Used to find the length of a string
Hex
<<
strlen()
SGML
13. To merge arrays
html_entity_decode()
Object
control structure
array_merge()
14. standard notation
decimal
curly braces; ${$total}
shuffle()
predefined
15. Document Type Definitions
predefined
htmlspecialchars()
trim()
DTD
16. Hyper Text Markup Language
strlen()
DTD
date()
HTML
17. The array that stores variables specific to a user's visit
echo
$_SESSION[]
if/elseif/else and switch statements
>>
18. EXtensible Markup Language
<<
htmlspecialchars()
XML
int
19. signed floating-point value
float
ASP
error_reporting (E_ALL & -E_NOTICE)
mysql
20. Use ______ when there are no variables in the string
single quotes
true
define()
substr_count()
21. used to round numeric values.
+= or -= or *= or /=
number_format()
substr_count()
round() Function
22. Function that contains the highest value that rand() can have randomly
HTTP
+= or -= or *= or /=
getrandmax()
isset()
23. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
indexed array
mysql_fetch_object()
general
addslashes()
24. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
$array[] = item
define()
E_STRICT
$_GET[]
25. Control structures that break exit
the dollar sign $
Parse error
predefined
if/elseif/else and switch statements
26. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
substr_count()
POST
asort()
Magic Constant
27. function Function used to create a random number
urlencode()
Warning
rand()
mysql_fetch_array()
28. Use ______ when a variable contains any amount of variables; in general.
preg_replace()
substr_count()
double quotes
strip_tags()
29. Online applications and resources which are available to the general public with very few restrictions
!= inequality
is_numeric()
HTML
open source
30. The output of var_export((float)array());
rand()
ASP
0
parentheses
31. a line of information that can be stored in a variable or used in a function or statement
string
$var++ and $var
ksort()
precedence
32. bitwise right shift
<<
>>
<?php
?>
33. bitwise AND
arsort()
underscores
for ($i = 0; $i < count($array); $i++) {statement(s);}
&
34. a database which is best supported by PHP
float
foreach
mysql
ASP
35. To delete a variable or an element of an array
round() Function
predefined variable
unset()
+
36. Leading 0x: 0x13F or 0xA23
foreach
asort()
isset()
Hex
37. any programing language where the script is parsed on the server
statement
server-side programing
Hex
null
38. To set up error reporting
preg_split()
function error_reporting()
server-side programing
shuffle()
39. PHP has two conditional: if and ______.
string
date()
defined()
switch
40. ___________ can be used with substr() to count backward
negative numbers
WYSIWYG
$array[] = item
preg_replace()
41. This will show all error reporting except for notice errors.
error_reporting (E_ALL & -E_NOTICE)
string
the dollar sign $
unset()
42. Shorthand used to increment and decrement
$var++ and $var
error_reporting (0)
.=
client-side programing
43. 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 __________.
+= or -= or *= or /=
curly braces; ${$total}
ini_set ('display_errors', 1)
$var++ and $var
44. To determine the amount of elements in an array
count()
indexed array
number_format()
$_SESSION[]
45. Used to replace a substring with another string - it is not case-sensitive.
array()
str_ireplace()
array
control structure
46. collection of binary data
string
AJAX
number_format()
GET
47. bitwise XOR
AJAX
^
SGML
ASP
48. Function used to round down to the lowest integer
trim()
Notice
floor()
asort()
49. _________ can be used in conditional statements to set precedence
numbers
not
parentheses
empty()
50. To get over quotation marks while using arrays
?>
curly braces
Notice
Parse error