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. bitwise right shift
getrandmax()
>>
ini_set ('display_errors', 1)
^
2. either hasn't yet been set or is assigned NULL value
null
string
asort()
wordwrap()
3. To iterate over the keys and values of an array
associative array
curly braces; ${$total}
$_REQUEST
foreach loop
4. To set up error reporting
===
function error_reporting()
crypt()
urlencode()
5. Hyper Text Transfer Protocol
foreach loop
HTTP
$_GET[]
include() and require()
6. All variables must begin with _________.
array
bin2hex()
the dollar sign $
true
7. Converts a string of ASCII characters to hexadecimal values
&
superglobal
curly braces; ${$total}
bin2hex()
8. Used to encrypt values - it is a one-way encryption method
crypt()
rand()
ini_set ('display_errors', 1)
sql
9. Function can you use to format a number with commas
echo
defined()
boolean
number_format()
10. PHP has two conditional: if and ______.
preg_split()
chop()
<<
switch
11. To reset an array _______ the array() function to the array
open source
numbers
ASP
reassign
12. To sort values of an array in reversed order
unset()
the dollar sign $
Notice
rsort()
13. Used to find the amount of words in a string.
GET
str_word_count()
str_ireplace()
foreach loop
14. Standard Generalized Markup Language
error_reporting (E_ALL | E_STRICT)
SGML
Notice
0
15. container of ordered data elements
$dbc = mysql_connect(hostname, username, password)
function
Array
isset()
16. What You See Is What You Get
string
WYSIWYG
getrandmax()
array()
17. _______ is a comparison operator
strtok()
count()
!= inequality
asort()
18. _____ is a logical operator
XOR
float
integer
===
19. An array whose keys are numbers.
strip_tags()
str_ireplace()
mysql_fetch_object()
indexed array
20. The syntax for connecting to a database
curly braces
$_REQUEST
associative array
$dbc = mysql_connect(hostname, username, password)
21. Document Type Definitions
fopen()
predefined variable
strtok()
DTD
22. allows you to split strings based on more complex rules
array()
$dbc = mysql_connect(hostname, username, password)
Array
preg_split()
23. Used to convert all HTML tags into their entity versions.
SGML
htmlentities()
predefined
mysql_fetch_object()
24. $_SERVER is a ________ variable.
<<
predefined
abs()
Notice
25. any programing language where the script is parsed on the server
server-side programing
include() and require()
index
XOR
26. To get time data
open source
.=
date()
Constant
27. function Function used to create a random number
$$
array
rand()
string
28. Returns a string with backslashes in front of predefined characters
mysql
htmlspecialchars()
addslashes()
!= inequality
29. Used to convert certain HTML tags into their entity versions.
parentheses
arsort()
htmlspecialchars()
octal
30. To find how many substrings are in a string
.=
$var++ and $var
array
substr_count()
31. Used to find the length of a string
>>
ASP
strlen()
isset()
32. Uses two arguments: constant name and constant definition
ASP
decimal
define()
null
33. Online applications and resources which are available to the general public with very few restrictions
the escape character ''
open source
wordwrap()
>>
34. To iterate over the values of an array
Notice
boolean
for ($i = 0; $i < count($array); $i++) {statement(s);}
==
35. Control structure that continue exit - they perform specific statements for a determined number of iterations.
Shebang
preg_match()
shuffle()
loops
36. bitwise AND
echo
sql
&
mysql_fetch_array()
37. Use ________ to have multiple quotations in one string
parentheses
the escape character ''
floor()
Notice
38. $_POST and $_GET are ________ variables.
<?php
predefined
preg_replace()
&
39. any programing language where the user must support the language the script is written in
SEO
client-side programing
$$
WYSIWYG
40. _________ can be used in conditional statements to set precedence
parentheses
WYSIWYG
PHP
POST
41. The concatenation assignment operator?
ksort()
.=
string
echo
42. This will show all errors that fall under E_ALL or E_STRICT - the pipe | is used for 'or' so that errors that fall under either will be shown.
error_reporting (E_ALL | E_STRICT)
foreach
integer
reassign
43. Used to display errors in a particular script - should be placed at top of script.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
44. addition
drop
+= or -= or *= or /=
+
Hex
45. To delete a variable or an element of an array
nl2br()
unset()
not
preg_replace()
46. Search Engine Optimization
SEO
$_GET[]
E_STRICT
addcslashes()
47. To remove all HTML and PHP tags.
the period; .
the escape character ''
chop()
strip_tags()
48. container of both data and code
htmlspecialchars()
rsort()
Object
array()
49. bitwise XOR
general
urlencode()
^
boolean
50. To reorganise the array randomly
WYSIWYG
loops
shuffle()
arsort()