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. The ouput of var_export((bool)"NULL");
true
substr_count()
server-side programing
octal
2. collection of binary data
WYSIWYG
POST
parentheses
string
3. To sort values of an array in reversed order
chop()
rsort()
open source
WYSIWYG
4. a storage location in the computer's memory that has a type & a name and a contents
$array[] = item
variable
AJAX
parentheses
5. To close a connection between a database
mysql_close($dbc)
urlencode()
client-side programing
octal
6. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
ini_set ('display_errors', 1)
trim()
associative array
Warning
7. Used to find the length of a string
include() and require()
if/elseif/else and switch statements
strlen()
htmlentities()
8. To include files - _______ will give errors and _________ will terminate execution().
parentheses
double quotes
array()
include() and require()
9. The array that stores variables specific to a user's visit
$_SESSION[]
if/elseif/else and switch statements
function
decimal
10. Used to encrypt values - it is a one-way encryption method
is_numeric()
array()
superglobal
crypt()
11. Control structure that continue exit - they perform specific statements for a determined number of iterations.
$_REQUEST
!= inequality
loops
isset()
12. ____ or key is referred to for a value within an array.
index
chop()
predefined
the period; .
13. either hasn't yet been set or is assigned NULL value
negative numbers
null
bin2hex()
HTML
14. Returns a character from a specified ASCII value
+
integer
chr()
GET
15. Operators used to operate and assign
1
+= or -= or *= or /=
XOR
WYSIWYG
16. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
Hex
GET
ini_set ('display_errors', 1)
0
17. This fatal error arises from memory allocation problem.
Shebang
open source
Error
mysql
18. $_SERVER is a ________ variable.
predefined
$_SESSION[]
^
ceil()
19. This will show all error reporting except for notice errors.
error_reporting (E_ALL & -E_NOTICE)
.=
numbers
Hex
20. Hyper Text Markup Language
$$
HTML
octal
count()
21. Function that contains the highest value that rand() can have randomly
DTD
include() and require()
getrandmax()
HTML
22. _______ is a comparison operator
general
count()
!= inequality
str_word_count()
23. bitwise AND
&
curly braces; ${$total}
asort()
double quotes
24. Active Server Pages
ASP
is_numeric()
?>
SEO
25. This error refers to a variable with no value.
Notice
addslashes()
preg_match()
<?php
26. When used the value can be passed safely through the URL (GET).
+
error_reporting (E_ALL | E_STRICT)
urlencode()
addslashes()
27. To sort values of an array without regard to the keys
sort()
<?php
strlen()
DTD
28. PHP has two conditional: if and ______.
switch
rsort()
strlen()
POST
29. Creates a pointer to a file with the declared mode (read - write -etc.).
true
Shebang
fopen()
the dollar sign $
30. signed floating-point value
Hex
not
float
client-side programing
31. Function used to find the absolute value of a number or numeric variable
include() and require()
error_reporting (E_ALL)
Magic Constant
abs()
32. To determine the amount of elements in an array
empty()
count()
E_STRICT
unset()
33. Hyper Text Transfer Protocol
HTTP
client-side programing
mysql_fetch_object()
string
34. Tag to begin a php script
htmlspecialchars()
<?php
$dbc = mysql_connect(hostname, username, password)
double quotes
35. leading zero: 0100 or 0567
Magic Constant
null
octal
getrandmax()
36. Hypertext Preprocessor - a server-side programing language used to create webpages
PHP
define()
open source
variable
37. Define(NAME,value)
$_POST[]
Constant
?>
control structure
38. container of ordered data elements
.=
shuffle()
Array
number_format()
39. Function used to round down to the lowest integer
the dollar sign $
^
<?php
floor()
40. An array of variables passed with <input /> data
open source
PHP
$_POST[]
foreach
41. To get time data
date()
strtok()
ceil()
function error_reporting()
42. any programing language where the user must support the language the script is written in
SGML
client-side programing
array
!= inequality
43. a database which is best supported by PHP
for ($i = 0; $i < count($array); $i++) {statement(s);}
mysql
rsort()
^
44. 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 __________.
list()
$_GET[]
curly braces; ${$total}
shuffle()
45. To create an array
WYSIWYG
indexed array
array()
!= inequality
46. signed integer
strlen()
include() and require()
$$
int
47. The four main error types are:Notice - Warning - ________ and Error.
Parse error
addslashes()
htmlspecialchars()
curly braces
48. The name of the #! used to designate the location of the PHP binary
Shebang
include() and require()
==
the period; .
49. Use ________ to have multiple quotations in one string
Warning
the escape character ''
>>
null
50. the most basic function in PHP used to output information to the page
date()
ksort()
AJAX
echo