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. a storage location in the computer's memory that has a type & a name and a contents
the dollar sign $
switch
arsort()
variable
2. any programing language where the user must support the language the script is written in
.=
client-side programing
SEO
SGML
3. The ouput of var_export((bool)"NULL");
negative numbers
predefined
true
?>
4. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
superglobal
^
sql
empty()
5. Alias of rtrim()
for ($i = 0; $i < count($array); $i++) {statement(s);}
list()
ceil()
chop()
6. To sort values of an array without regard to the keys
crypt()
===
sort()
&
7. To reset an array _______ the array() function to the array
true
reassign
ksort()
SEO
8. Use ________ to have multiple quotations in one string
Hex
Constant
the escape character ''
empty()
9. equivalence
>>
HTML
string
==
10. Function used to round up to the highest integer
<?php
floor()
ceil()
true
11. _______ is a comparison operator
$_GET[]
!= inequality
mysql_close($dbc)
control structure
12. This fatal error arises from memory allocation problem.
Error
$_GET[]
$dbc = mysql_connect(hostname, username, password)
error_reporting (0)
13. Operators used to operate and assign
Hex
array()
+= or -= or *= or /=
date()
14. identity
===
integer
mysql_fetch_array()
trim()
15. The output of var_export((float)array());
$array[] = item
shuffle()
0
ini_set ('display_errors', 1)
16. An array of variables passed with <input /> data
$dbc = mysql_connect(hostname, username, password)
1
Parse error
$_POST[]
17. The syntax for connecting to a database
statement
$dbc = mysql_connect(hostname, username, password)
string
nl2br()
18. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
mysql_fetch_array()
boolean
str_word_count()
foreach
19. This will show all error reporting.
error_reporting (E_ALL)
HTTP
define()
sort()
20. To sort the values while maintaining the correlation between each value and its key
asort()
number_format()
.=
htmlspecialchars()
21. Online applications and resources which are available to the general public with very few restrictions
!= inequality
statement
round() Function
open source
22. To include files - _______ will give errors and _________ will terminate execution().
include() and require()
Object
boolean
wordwrap()
23. To check if a constant is already declared
error_reporting (E_ALL)
predefined
defined()
addslashes()
24. Variable names cannot begin with _______
numbers
integer
array_merge()
mysql
25. Used to replace a substring with another string - it is not case-sensitive.
switch
indexed array
str_ireplace()
fopen()
26. says 'if' this then do this 'else' do this or 'while' this do this
the escape character ''
&
chop()
statement
27. What You See Is What You Get
$_SESSION[]
$_GET[]
WYSIWYG
asort()
28. Returns a string with backslashes in front of the specified characters
$$
boolean
addcslashes()
asort()
29. container of both data and code
not
Object
===
function
30. This error arises from misusing a function.
+
Warning
bin2hex()
?>
31. To iterate over the values of an array
function
boolean
single quotes
for ($i = 0; $i < count($array); $i++) {statement(s);}
32. returns the number of matches found by a given search string under this format...
Warning
curly braces; ${$total}
index
preg_match()
33. Define(NAME,value)
string
addslashes()
Constant
ini_set ('display_errors', 1)
34. Uses two arguments: constant name and constant definition
ini_set ('display_errors', 1)
define()
single quotes
isset()
35. To find how many substrings are in a string
bin2hex()
substr_count()
ceil()
the dollar sign $
36. Used to encrypt values - it is a one-way encryption method
WYSIWYG
general
crypt()
define()
37. Returns a string with backslashes in front of predefined characters
rsort()
addslashes()
string
define()
38. This will not show error reporting - it will be turned off.
0
statement
AJAX
error_reporting (0)
39. Used to find the length of a string
strlen()
$$
DTD
numbers
40. The output of var_export((float)array(0));
1
floor()
predefined variable
getrandmax()
41. To reorganise the array randomly
function error_reporting()
predefined
shuffle()
echo
42. does a certain action when called upon
wordwrap()
function
<<
POST
43. Asynchronous Javascript And XML
foreach loop
AJAX
control structure
curly braces
44. To sort values of an array in reversed order
count()
mysql_close($dbc)
HTTP
rsort()
45. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
chop()
strlen()
underscores
superglobal
46. Leading 0x: 0x13F or 0xA23
<<
Hex
preg_replace()
float
47. An array of variables passed in the URL
SEO
$_GET[]
asort()
substr_count()
48. a language in which to make querys to a database with
sql
1
error_reporting (E_ALL | E_STRICT)
mysql_close($dbc)
49. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
HTML
nl2br()
$varname[key]
client-side programing
50. ____ or key is referred to for a value within an array.
index
Magic Constant
mysql_close($dbc)
DTD