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. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
echo
str_ireplace()
E_STRICT
Magic Constant
2. Used to create a substring (referred to as a token) from a larger string
list()
strtok()
str_ireplace()
sql
3. The order of operations.
precedence
curly braces
str_word_count()
<<
4. Online applications and resources which are available to the general public with very few restrictions
SEO
open source
?>
superglobal
5. To find how many substrings are in a string
array_merge()
substr_count()
$varname[key]
XML
6. EXtensible Markup Language
curly braces; ${$total}
chr()
XML
htmlspecialchars()
7. To get over quotation marks while using arrays
preg_replace()
curly braces
single quotes
boolean
8. The four main error types are:Notice - Warning - ________ and Error.
$_GET[]
not
===
Parse error
9. a database which is best supported by PHP
ksort()
mysql
if/elseif/else and switch statements
string
10. Uses two arguments: constant name and constant definition
define()
mysql_fetch_array()
.=
1
11. ____ or key is referred to for a value within an array.
array()
decimal
index
<?php
12. An array whose keys are strings; also known as a hash.
switch
associative array
error_reporting (E_ALL)
reassign
13. An array whose keys are numbers.
reassign
function error_reporting()
indexed array
negative numbers
14. identity
Shebang
===
wordwrap()
unset()
15. allows you to split strings based on more complex rules
loops
preg_split()
mysql
asort()
16. a type with two possible values: true and false
boolean
sort()
error_reporting (E_ALL & -E_NOTICE)
date()
17. This will show all error reporting except for notice errors.
rsort()
substr_count()
error_reporting (E_ALL & -E_NOTICE)
int
18. Used to encrypt values - it is a one-way encryption method
preg_replace()
htmlentities()
crypt()
Parse error
19. To merge arrays
defined()
Array
variable
array_merge()
20. To check if a constant is already declared
control structure
defined()
isset()
index
21. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
predefined
predefined
strip_tags()
trim()
22. To delete a variable or an element of an array
client-side programing
mysql_fetch_array()
unset()
reassign
23. Function that contains the highest value that rand() can have randomly
AJAX
echo
WYSIWYG
getrandmax()
24. What You See Is What You Get
0
WYSIWYG
DTD
function
25. The syntax for connecting to a database
foreach
addcslashes()
$dbc = mysql_connect(hostname, username, password)
Error
26. signed floating-point value
float
$_REQUEST
echo
AJAX
27. _________ can be used in conditional statements to set precedence
parentheses
arsort()
==
chop()
28. To close a connection between a database
mysql_close($dbc)
<<
predefined
string
29. _______ is a comparison operator
$$
!= inequality
Parse error
defined()
30. function Function used to create a random number
the dollar sign $
rand()
error_reporting (E_ALL | E_STRICT)
loops
31. Returns a character from a specified ASCII value
Hex
urlencode()
octal
chr()
32. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
urlencode()
0
E_STRICT
ksort()
33. Operators used to operate and assign
===
mysql_close($dbc)
+= or -= or *= or /=
error_reporting (E_ALL & -E_NOTICE)
34. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
Warning
mysql_fetch_array()
&
true
35. bitwise XOR
wordwrap()
asort()
fopen()
^
36. Returns a string with backslashes in front of the specified characters
defined()
addcslashes()
curly braces
indexed array
37. 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}
<?php
Notice
$_GET[]
38. The three types of loops in PHP are: for - while - ____.
foreach
shuffle()
SGML
Warning
39. To remove all HTML and PHP tags.
$var++ and $var
strip_tags()
0
round() Function
40. A conditional or loop is a ________________.
error_reporting (E_ALL)
control structure
number_format()
empty()
41. Control structure that continue exit - they perform specific statements for a determined number of iterations.
DTD
loops
$var++ and $var
wordwrap()
42. To sort values of an array in reversed order
ceil()
rsort()
parentheses
foreach loop
43. standard notation
Notice
WYSIWYG
preg_match()
decimal
44. TRUE or FALSE
str_word_count()
POST
>>
boolean
45. _____ is a logical operator
XOR
function error_reporting()
mysql
crypt()
46. Used to convert all HTML tags into their entity versions.
mysql_close($dbc)
decimal
htmlentities()
error_reporting (E_ALL | E_STRICT)
47. To get time data
boolean
.=
date()
string
48. Active Server Pages
POST
E_STRICT
loops
ASP
49. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
drop
+= or -= or *= or /=
^
$dbc = mysql_connect(hostname, username, password)
50. bitwise AND
mysql
&
preg_replace()
Notice