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 AND
POST
boolean
&
SEO
2. To get time data
mysql
substr_count()
html_entity_decode()
date()
3. The order of operations.
1
float
precedence
error_reporting (E_ALL)
4. To word wrap after a certain amount of characters.
ASP
associative array
!= inequality
wordwrap()
5. Hypertext Preprocessor - a server-side programing language used to create webpages
htmlspecialchars()
abs()
count()
PHP
6. This will show all error reporting.
function
superglobal
error_reporting (E_ALL)
string
7. Define(NAME,value)
substr_count()
superglobal
Constant
echo
8. Used to convert certain HTML tags into their entity versions.
strtok()
HTTP
htmlspecialchars()
preg_match()
9. container of ordered data elements
===
date()
Array
general
10. Converts a string of ASCII characters to hexadecimal values
POST
reassign
bin2hex()
==
11. any programing language where the script is parsed on the server
float
control structure
server-side programing
string
12. To get over quotation marks while using arrays
PHP
htmlentities()
foreach
curly braces
13. Use ______ when a variable contains any amount of variables; in general.
open source
double quotes
strtok()
chop()
14. The syntax for connecting to a database
POST
===
echo
$dbc = mysql_connect(hostname, username, password)
15. This will show all errors that fall under E_ALL or E_STRICT - the pipe | is used for 'or' so that errors that fall under either will be shown.
fopen()
error_reporting (E_ALL | E_STRICT)
XOR
list()
16. a line of information that can be stored in a variable or used in a function or statement
$varname[key]
ksort()
string
$_GET[]
17. To assign keys to the values in an array
mysql_fetch_object()
Array
array()
wordwrap()
18. bitwise left shift
number_format()
Shebang
$_POST[]
<<
19. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
DTD
unset()
trim()
curly braces
20. either hasn't yet been set or is assigned NULL value
addslashes()
preg_split()
addcslashes()
null
21. To iterate over the keys and values of an array
associative array
decimal
count()
foreach loop
22. This error refers to a variable with no value.
Notice
curly braces; ${$total}
Magic Constant
underscores
23. A conditional or loop is a ________________.
str_word_count()
Shebang
control structure
+= or -= or *= or /=
24. identity
nl2br()
predefined variable
===
true
25. Used to convert all HTML tags into their entity versions.
predefined variable
Parse error
htmlentities()
reassign
26. 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 __________.
ASP
curly braces; ${$total}
list()
defined()
27. A data structure that can hold a number of items of data of the same type eg. a list of names
preg_match()
array
error_reporting (E_ALL)
numbers
28. To delete a variable or an element of an array
unset()
curly braces; ${$total}
negative numbers
<<
29. Alias of rtrim()
chop()
Array
Object
integer
30. Control structure that continue exit - they perform specific statements for a determined number of iterations.
statement
date()
is_numeric()
loops
31. Hyper Text Markup Language
error_reporting (E_ALL)
mysql_close($dbc)
HTML
parentheses
32. The output of var_export((float)array());
open source
Shebang
crypt()
0
33. To reset an array _______ the array() function to the array
str_ireplace()
?>
reassign
$_SESSION[]
34. collection of binary data
strip_tags()
string
drop
SGML
35. bitwise XOR
^
getrandmax()
<?php
server-side programing
36. returns the number of matches found by a given search string under this format...
strip_tags()
Array
preg_match()
addslashes()
37. The three types of loops in PHP are: for - while - ____.
the period; .
boolean
foreach
^
38. Creates a pointer to a file with the declared mode (read - write -etc.).
preg_match()
error_reporting (E_ALL)
Shebang
fopen()
39. An array whose keys are strings; also known as a hash.
SEO
associative array
urlencode()
string
40. To sort values of an array without regard to the keys
Array
error_reporting (E_ALL & -E_NOTICE)
sort()
html_entity_decode()
41. This will not show error reporting - it will be turned off.
boolean
error_reporting (0)
array()
Parse error
42. Control structures that break exit
if/elseif/else and switch statements
POST
Error
list()
43. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
the period; .
Magic Constant
ceil()
$_GET[]
44. addition
chr()
PHP
+
decimal
45. Used to create a substring (referred to as a token) from a larger string
crypt()
precedence
$$
strtok()
46. To create an array
array()
1
not
?>
47. Leading 0x: 0x13F or 0xA23
Hex
nl2br()
$array[] = item
true
48. ___________ can be used with substr() to count backward
ksort()
HTTP
single quotes
negative numbers
49. Function used to find the absolute value of a number or numeric variable
abs()
precedence
echo
function
50. To close a connection between a database
strtok()
mysql_close($dbc)
!= inequality
+