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. ____ or key is referred to for a value within an array.
index
number_format()
!= inequality
==
2. Used to check if a variable has a valid numerical value; strings with numerical values pass.
numbers
+= or -= or *= or /=
null
is_numeric()
3. a positive or negative number
date()
preg_replace()
integer
HTML
4. used to round numeric values.
ini_set ('display_errors', 1)
floor()
Hex
round() Function
5. $_SERVER is a ________ variable.
htmlentities()
predefined
PHP
precedence
6. This will show all error reporting except for notice errors.
error_reporting (E_ALL & -E_NOTICE)
asort()
precedence
XML
7. This fatal error arises from memory allocation problem.
unset()
Error
+= or -= or *= or /=
predefined
8. To reset an array _______ the array() function to the array
asort()
server-side programing
fopen()
reassign
9. This error arises from misusing a function.
$varname[key]
Warning
GET
arsort()
10. _____ is a logical operator
XOR
===
asort()
curly braces
11. To sort values of an array without regard to the keys
drop
mysql_close($dbc)
$dbc = mysql_connect(hostname, username, password)
sort()
12. An array of variables passed with <input /> data
XOR
not
XML
$_POST[]
13. Online applications and resources which are available to the general public with very few restrictions
open source
drop
urlencode()
predefined
14. Control structure that continue exit - they perform specific statements for a determined number of iterations.
include() and require()
loops
bin2hex()
predefined
15. Asynchronous Javascript And XML
SGML
urlencode()
<<
AJAX
16. a type with two possible values: true and false
boolean
date()
>>
$_GET[]
17. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
sql
trim()
urlencode()
foreach
18. Returns a string with backslashes in front of the specified characters
$array[] = item
GET
the dollar sign $
addcslashes()
19. Function used to round down to the lowest integer
$var++ and $var
floor()
arsort()
list()
20. The array that stores variables specific to a user's visit
Shebang
error_reporting (E_ALL | E_STRICT)
POST
$_SESSION[]
21. a language in which to make querys to a database with
sql
server-side programing
numbers
mysql_fetch_array()
22. This error refers to a variable with no value.
include() and require()
Notice
==
count()
23. allows you to split strings based on more complex rules
numbers
preg_split()
HTTP
strtok()
24. Used to find the length of a string
not
strlen()
^
the escape character ''
25. To remove all HTML and PHP tags.
AJAX
!= inequality
rand()
strip_tags()
26. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
0
control structure
Magic Constant
Warning
27. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
switch
$var++ and $var
drop
underscores
28. Used to convert certain HTML tags into their entity versions.
array()
superglobal
htmlspecialchars()
?>
29. any programing language where the script is parsed on the server
statement
str_word_count()
Hex
server-side programing
30. The output of var_export((float)array());
0
float
$$
array()
31. Uses two arguments: constant name and constant definition
define()
chr()
AJAX
XML
32. Tag to begin a php script
<?php
client-side programing
float
arsort()
33. a line of information that can be stored in a variable or used in a function or statement
shuffle()
int
string
chr()
34. The concatenation operator?
the period; .
Error
!= inequality
XOR
35. Variable names can begin with __________
numbers
array
underscores
number_format()
36. The ouput of var_export((bool)"NULL");
HTTP
the dollar sign $
true
floor()
37. Use ______ when there are no variables in the string
ini_set ('display_errors', 1)
$_POST[]
error_reporting (E_ALL & -E_NOTICE)
single quotes
38. The four main error types are:Notice - Warning - ________ and Error.
function
str_word_count()
Parse error
the escape character ''
39. The order of operations.
predefined
preg_match()
precedence
array()
40. To sort the values while maintaining the correlation between each value and its key - in reversed order
0
error_reporting (E_ALL)
HTTP
arsort()
41. Function used to round up to the highest integer
ceil()
fopen()
for ($i = 0; $i < count($array); $i++) {statement(s);}
rand()
42. Document Type Definitions
html_entity_decode()
DTD
chr()
&
43. the most basic function in PHP used to output information to the page
echo
substr_count()
predefined
$_SESSION[]
44. To check if a constant is already declared
ASP
octal
loops
defined()
45. Returns a string with backslashes in front of predefined characters
$var++ and $var
addslashes()
client-side programing
variable
46. Active Server Pages
mysql_fetch_array()
ASP
PHP
strlen()
47. _______ is a comparison operator
HTTP
!= inequality
strtok()
include() and require()
48. _________ can be used in conditional statements to set precedence
parentheses
chr()
boolean
number_format()
49. TRUE or FALSE
$varname[key]
preg_split()
boolean
define()
50. Used to display errors in a particular script - should be placed at top of script.