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. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
trim()
empty()
error_reporting (E_ALL | E_STRICT)
float
2. Function used to round up to the highest integer
POST
ceil()
$_POST[]
HTTP
3. Control structure that continue exit - they perform specific statements for a determined number of iterations.
HTML
==
$var++ and $var
loops
4. a database which is best supported by PHP
Warning
mysql
mysql_close($dbc)
curly braces
5. a language in which to make querys to a database with
preg_replace()
arsort()
?>
sql
6. $_POST Data sent using POST found is sent to _______
predefined variable
define()
string
SGML
7. any programing language where the user must support the language the script is written in
chr()
client-side programing
integer
Array
8. This will not show error reporting - it will be turned off.
rsort()
error_reporting (0)
fopen()
double quotes
9. The name of the #! used to designate the location of the PHP binary
^
Shebang
$varname[key]
trim()
10. To merge arrays
mysql_fetch_object()
array_merge()
string
rsort()
11. To get time data
date()
?>
Parse error
boolean
12. ___________ can be used with substr() to count backward
function error_reporting()
$var++ and $var
negative numbers
SGML
13. To determine the amount of elements in an array
strlen()
count()
round() Function
$_POST[]
14. a storage location in the computer's memory that has a type & a name and a contents
===
?>
include() and require()
variable
15. Returns a string with backslashes in front of the specified characters
error_reporting (E_ALL | E_STRICT)
abs()
addcslashes()
strip_tags()
16. Function that contains the highest value that rand() can have randomly
preg_split()
+= or -= or *= or /=
getrandmax()
rand()
17. equivalence
==
HTML
0
Object
18. 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}
loops
count()
$dbc = mysql_connect(hostname, username, password)
19. signed integer
int
reassign
XOR
>>
20. the most basic function in PHP used to output information to the page
strip_tags()
$_REQUEST
abs()
echo
21. $_POST and $_GET are ________ variables.
DTD
general
predefined
strip_tags()
22. Used to replace a substring with another string - it is not case-sensitive.
foreach
array()
define()
str_ireplace()
23. The array that stores variables specific to a user's visit
$_SESSION[]
$varname[key]
the escape character ''
predefined
24. The concatenation assignment operator?
.=
client-side programing
SGML
Parse error
25. Hyper Text Transfer Protocol
numbers
define()
GET
HTTP
26. Function used to find the absolute value of a number or numeric variable
underscores
abs()
chr()
precedence
27. Shorthand used to increment and decrement
$var++ and $var
defined()
error_reporting (E_ALL & -E_NOTICE)
$_POST[]
28. Used to check if a variable has any value (including 0 or FALSE or an empty string).
array_merge()
$dbc = mysql_connect(hostname, username, password)
isset()
SEO
29. print $_SERVER will _____ work if you use the print function on arrays.
the dollar sign $
open source
not
DTD
30. The output of var_export((float)array(0));
HTTP
unset()
control structure
1
31. To include files - _______ will give errors and _________ will terminate execution().
===
chr()
include() and require()
decimal
32. identity
===
mysql_fetch_object()
&
sql
33. An array whose keys are numbers.
error_reporting (E_ALL & -E_NOTICE)
?>
boolean
indexed array
34. a line of information that can be stored in a variable or used in a function or statement
addslashes()
$$
string
asort()
35. To sort values of an array without regard to the keys
index
count()
GET
sort()
36. An array of variables passed with <input /> data
$_POST[]
preg_split()
array()
E_STRICT
37. To remove all HTML and PHP tags.
==
error_reporting (E_ALL & -E_NOTICE)
chr()
strip_tags()
38. bitwise left shift
$$
Shebang
curly braces; ${$total}
<<
39. Control structures that break exit
?>
fopen()
if/elseif/else and switch statements
associative array
40. Returns a character from a specified ASCII value
mysql_close($dbc)
float
bin2hex()
chr()
41. Hyper Text Markup Language
HTML
SEO
?>
index
42. Used to convert all HTML tags into their entity versions.
is_numeric()
1
strtok()
htmlentities()
43. To reorganise the array randomly
$var++ and $var
shuffle()
mysql
addslashes()
44. Operators used to operate and assign
$_GET[]
+= or -= or *= or /=
HTML
htmlentities()
45. TRUE or FALSE
underscores
boolean
mysql_fetch_array()
preg_replace()
46. EXtensible Markup Language
server-side programing
mysql_fetch_array()
defined()
XML
47. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
trim()
$_POST[]
$varname[key]
strlen()
48. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
integer
$$
POST
rsort()
49. Uses two arguments: constant name and constant definition
$varname[key]
define()
float
$$
50. To counter htmlentities()
<?php
html_entity_decode()
open source
str_word_count()