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. container of both data and code
^
Error
<<
Object
2. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
error_reporting (E_ALL)
predefined variable
foreach
GET
3. The output of var_export((float)array());
mysql_fetch_array()
getrandmax()
list()
0
4. collection of binary data
string
index
defined()
superglobal
5. bitwise right shift
function error_reporting()
>>
XML
==
6. a storage location in the computer's memory that has a type & a name and a contents
decimal
if/elseif/else and switch statements
ASP
variable
7. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
mysql_fetch_object()
null
HTML
Shebang
8. signed floating-point value
curly braces; ${$total}
number_format()
float
indexed array
9. An array of variables passed in the URL
the escape character ''
$_GET[]
Parse error
+
10. Define(NAME,value)
shuffle()
Constant
PHP
isset()
11. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
htmlentities()
E_STRICT
index
addslashes()
12. A data structure that can hold a number of items of data of the same type eg. a list of names
sort()
chop()
negative numbers
array
13. Control structure that continue exit - they perform specific statements for a determined number of iterations.
float
error_reporting (E_ALL & -E_NOTICE)
SGML
loops
14. Used to encrypt values - it is a one-way encryption method
.=
sql
===
crypt()
15. signed integer
parentheses
curly braces; ${$total}
int
unset()
16. To find how many substrings are in a string
$array[] = item
substr_count()
defined()
asort()
17. This error arises from misusing a function.
urlencode()
Warning
==
round() Function
18. either hasn't yet been set or is assigned NULL value
abs()
null
trim()
int
19. Function used to round down to the lowest integer
chr()
floor()
arsort()
getrandmax()
20. The ouput of var_export((bool)"NULL");
client-side programing
wordwrap()
drop
true
21. Used to create a substring (referred to as a token) from a larger string
$_SESSION[]
strtok()
chop()
.=
22. a positive or negative number
addcslashes()
integer
predefined
sql
23. The prefix for a dynamic variable - also known as a variable variable
chop()
curly braces
$$
define()
24. To merge arrays
curly braces; ${$total}
array_merge()
not
asort()
25. TRUE or FALSE
precedence
Warning
boolean
switch
26. Shorthand used to increment and decrement
double quotes
AJAX
foreach
$var++ and $var
27. Standard Generalized Markup Language
SGML
$varname[key]
$_REQUEST
strlen()
28. Converts a string of ASCII characters to hexadecimal values
octal
bin2hex()
Parse error
boolean
29. Used to check if a variable has any value (including 0 or FALSE or an empty string).
HTTP
isset()
mysql
SGML
30. To assign keys to the values in an array
isset()
HTTP
predefined
array()
31. a database which is best supported by PHP
mysql
not
true
control structure
32. Used to find the length of a string
true
getrandmax()
strlen()
<?php
33. used to round numeric values.
abs()
$var++ and $var
drop
round() Function
34. function Function used to create a random number
indexed array
arsort()
curly braces
rand()
35. Used to convert certain HTML tags into their entity versions.
SGML
predefined variable
Array
htmlspecialchars()
36. To check if a constant is already declared
true
defined()
mysql_close($dbc)
numbers
37. does a certain action when called upon
function
html_entity_decode()
isset()
htmlspecialchars()
38. $_SERVER is a ________ variable.
ini_set ('display_errors', 1)
predefined
boolean
preg_replace()
39. any programing language where the script is parsed on the server
error_reporting (E_ALL)
Notice
include() and require()
server-side programing
40. 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 __________.
curly braces; ${$total}
Parse error
AJAX
statement
41. Creates a pointer to a file with the declared mode (read - write -etc.).
fopen()
function error_reporting()
Error
number_format()
42. Returns a character from a specified ASCII value
$_POST[]
chr()
sort()
preg_match()
43. a type with two possible values: true and false
1
string
loops
boolean
44. The four main error types are:Notice - Warning - ________ and Error.
mysql_fetch_object()
Parse error
!= inequality
chr()
45. returns the number of matches found by a given search string under this format...
Constant
preg_match()
error_reporting (0)
error_reporting (E_ALL | E_STRICT)
46. An array of variables passed with <input /> data
variable
chop()
$_POST[]
floor()
47. To sort by the keys while maintaining the correlation between the key and its value
ksort()
1
string
$_REQUEST
48. Used to replace a substring with another string - it is not case-sensitive.
floor()
superglobal
Parse error
str_ireplace()
49. Function can you use to format a number with commas
+
Error
error_reporting (E_ALL & -E_NOTICE)
number_format()
50. To set up error reporting
$var++ and $var
array_merge()
function error_reporting()
ASP