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 used to round down to the lowest integer
preg_replace()
superglobal
floor()
mysql_fetch_object()
2. An array whose keys are numbers.
Parse error
true
HTML
indexed array
3. bitwise AND
addcslashes()
integer
precedence
&
4. The ouput of var_export((bool)"NULL");
true
isset()
parentheses
HTML
5. To word wrap after a certain amount of characters.
bin2hex()
boolean
single quotes
wordwrap()
6. Used to check if a variable has a valid numerical value; strings with numerical values pass.
addslashes()
is_numeric()
Constant
bin2hex()
7. To reset an array _______ the array() function to the array
reassign
round() Function
mysql_fetch_object()
$varname[key]
8. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
numbers
mysql_fetch_object()
function error_reporting()
count()
9. Use ______ when a variable contains any amount of variables; in general.
function
double quotes
sql
$array[] = item
10. Used to convert all HTML tags into their entity versions.
0
htmlentities()
defined()
control structure
11. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
mysql_fetch_object()
Parse error
trim()
str_ireplace()
12. either hasn't yet been set or is assigned NULL value
null
XML
single quotes
chr()
13. Creates a pointer to a file with the declared mode (read - write -etc.).
fopen()
1
!= inequality
drop
14. A conditional or loop is a ________________.
control structure
PHP
boolean
predefined
15. An array of variables passed in the URL
0
$_GET[]
loops
+
16. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
superglobal
drop
open source
HTML
17. Alias of rtrim()
html_entity_decode()
error_reporting (E_ALL & -E_NOTICE)
chop()
number_format()
18. Shorthand used to increment and decrement
SGML
$var++ and $var
str_word_count()
variable
19. To sort by the keys while maintaining the correlation between the key and its value
ksort()
1
<?php
predefined
20. standard notation
decimal
Constant
drop
shuffle()
21. This error refers to a variable with no value.
Notice
isset()
SEO
drop
22. To include files - _______ will give errors and _________ will terminate execution().
is_numeric()
include() and require()
abs()
negative numbers
23. Use ______ when there are no variables in the string
str_ireplace()
single quotes
octal
mysql_fetch_array()
24. Function used to find the absolute value of a number or numeric variable
switch
fopen()
abs()
single quotes
25. When used the value can be passed safely through the URL (GET).
PHP
strip_tags()
urlencode()
WYSIWYG
26. Search Engine Optimization
error_reporting (E_ALL | E_STRICT)
Shebang
string
SEO
27. bitwise XOR
1
preg_match()
ceil()
^
28. says 'if' this then do this 'else' do this or 'while' this do this
ceil()
int
statement
array()
29. searches the subject for matches to a given pattern replaced with the given replacement text
indexed array
<?php
preg_replace()
DTD
30. To iterate over the keys and values of an array
bin2hex()
>>
foreach loop
echo
31. PHP has two conditional: if and ______.
drop
parentheses
fopen()
switch
32. Asynchronous Javascript And XML
SEO
SGML
AJAX
GET
33. The prefix for a dynamic variable - also known as a variable variable
ceil()
$$
single quotes
htmlspecialchars()
34. Hypertext Preprocessor - a server-side programing language used to create webpages
str_ireplace()
index
PHP
the escape character ''
35. container of both data and code
Object
0
$_POST[]
>>
36. a language in which to make querys to a database with
unset()
sql
ASP
numbers
37. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
mysql_fetch_array()
for ($i = 0; $i < count($array); $i++) {statement(s);}
$var++ and $var
Error
38. identity
number_format()
switch
===
ini_set ('display_errors', 1)
39. Operators used to operate and assign
+= or -= or *= or /=
date()
precedence
predefined
40. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
number_format()
float
associative array
POST
41. Uses two arguments: constant name and constant definition
define()
fopen()
loops
octal
42. Standard Generalized Markup Language
$_REQUEST
error_reporting (0)
SGML
<<
43. TRUE or FALSE
number_format()
general
boolean
parentheses
44. any programing language where the user must support the language the script is written in
the escape character ''
client-side programing
preg_split()
strlen()
45. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
index
array()
preg_replace()
drop
46. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
$_GET[]
variable
$_SESSION[]
general
47. The array that stores variables specific to a user's visit
wordwrap()
Hex
array()
$_SESSION[]
48. Used to check if a variable has any value (including 0 or FALSE or an empty string).
date()
isset()
empty()
GET
49. Used to find the length of a string
double quotes
for ($i = 0; $i < count($array); $i++) {statement(s);}
asort()
strlen()
50. _____ is a logical operator
wordwrap()
XOR
<?php
ASP