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. To sort the values while maintaining the correlation between each value and its key
error_reporting (E_ALL)
preg_replace()
asort()
===
2. The output of var_export((float)array());
round() Function
0
Constant
Parse error
3. To iterate over the values of an array
define()
POST
predefined
for ($i = 0; $i < count($array); $i++) {statement(s);}
4. Alias of rtrim()
if/elseif/else and switch statements
Error
number_format()
chop()
5. Uses two arguments: constant name and constant definition
Constant
define()
sort()
array()
6. The output of var_export((float)array(0));
1
error_reporting (E_ALL | E_STRICT)
float
Error
7. Used to check if a variable has a valid numerical value; strings with numerical values pass.
+= or -= or *= or /=
preg_match()
is_numeric()
HTML
8. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
Notice
superglobal
XOR
POST
9. Standard Generalized Markup Language
the escape character ''
getrandmax()
==
SGML
10. To delete a variable or an element of an array
SGML
strtok()
unset()
HTTP
11. addition
rand()
if/elseif/else and switch statements
WYSIWYG
+
12. a positive or negative number
arsort()
Array
integer
trim()
13. Function used to round down to the lowest integer
integer
HTML
$_POST[]
floor()
14. Hyper Text Markup Language
HTML
preg_replace()
error_reporting (E_ALL | E_STRICT)
+= or -= or *= or /=
15. allows you to split strings based on more complex rules
sql
define()
preg_split()
null
16. used to round numeric values.
Parse error
boolean
rsort()
round() Function
17. Tag to begin a php script
SGML
<?php
not
double quotes
18. Document Type Definitions
DTD
HTML
$dbc = mysql_connect(hostname, username, password)
null
19. Function can you use to format a number with commas
error_reporting (E_ALL | E_STRICT)
$var++ and $var
number_format()
Array
20. Define(NAME,value)
addslashes()
chr()
Constant
count()
21. collection of binary data
string
error_reporting (E_ALL & -E_NOTICE)
ini_set ('display_errors', 1)
arsort()
22. Active Server Pages
single quotes
GET
ASP
addcslashes()
23. EXtensible Markup Language
open source
chr()
XML
mysql_fetch_array()
24. either hasn't yet been set or is assigned NULL value
SGML
null
function
boolean
25. Function used to find the absolute value of a number or numeric variable
error_reporting (E_ALL & -E_NOTICE)
abs()
ASP
array
26. Variable names cannot begin with _______
numbers
string
if/elseif/else and switch statements
strlen()
27. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
Error
general
reassign
error_reporting (0)
28. standard notation
wordwrap()
decimal
int
string
29. To include files - _______ will give errors and _________ will terminate execution().
$_REQUEST
loops
include() and require()
!= inequality
30. To create an array
null
ksort()
==
array()
31. Online applications and resources which are available to the general public with very few restrictions
open source
chop()
Warning
null
32. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
.=
WYSIWYG
$varname[key]
Magic Constant
33. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
GET
reassign
mysql_fetch_array()
null
34. a storage location in the computer's memory that has a type & a name and a contents
addcslashes()
variable
statement
$varname[key]
35. Used to find the length of a string
XML
strlen()
GET
array()
36. identity
===
chop()
^
the dollar sign $
37. The prefix for a dynamic variable - also known as a variable variable
$$
superglobal
Parse error
function
38. To remove all HTML and PHP tags.
error_reporting (E_ALL | E_STRICT)
single quotes
control structure
strip_tags()
39. Returns a character from a specified ASCII value
chr()
$dbc = mysql_connect(hostname, username, password)
Warning
E_STRICT
40. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
===
E_STRICT
ini_set ('display_errors', 1)
$dbc = mysql_connect(hostname, username, password)
41. This error arises from misusing a function.
negative numbers
chop()
server-side programing
Warning
42. Search Engine Optimization
SEO
array_merge()
client-side programing
$varname[key]
43. searches the subject for matches to a given pattern replaced with the given replacement text
indexed array
preg_split()
preg_replace()
single quotes
44. a type with two possible values: true and false
boolean
preg_split()
client-side programing
date()
45. To sort the values while maintaining the correlation between each value and its key - in reversed order
client-side programing
$$
SEO
arsort()
46. container of ordered data elements
single quotes
rsort()
index
Array
47. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
Parse error
addcslashes()
DTD
WYSIWYG
48. To determine the amount of elements in an array
single quotes
variable
number_format()
count()
49. To close a connection between a database
mysql_close($dbc)
floor()
client-side programing
GET
50. Used to find the amount of words in a string.
predefined
str_word_count()
client-side programing
ceil()