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. Alias of rtrim()
echo
chop()
preg_match()
sql
2. Used to replace a substring with another string - it is not case-sensitive.
string
<<
mysql_fetch_object()
str_ireplace()
3. To assign keys to the values in an array
array()
$_GET[]
htmlentities()
abs()
4. function Function used to create a random number
strip_tags()
rand()
switch
SEO
5. Returns a character from a specified ASCII value
Shebang
chr()
unset()
shuffle()
6. Document Type Definitions
Warning
preg_replace()
DTD
0
7. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
curly braces; ${$total}
foreach loop
nl2br()
array
8. signed floating-point value
float
0
underscores
abs()
9. bitwise left shift
drop
Shebang
Object
<<
10. collection of binary data
chop()
XML
string
index
11. 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
12. any programing language where the script is parsed on the server
server-side programing
int
associative array
html_entity_decode()
13. Shorthand used to increment and decrement
single quotes
substr_count()
Parse error
$var++ and $var
14. Function that contains the highest value that rand() can have randomly
getrandmax()
string
precedence
curly braces; ${$total}
15. The output of var_export((float)array());
$var++ and $var
function
0
open source
16. container of ordered data elements
Array
chr()
ceil()
decimal
17. container of both data and code
WYSIWYG
!= inequality
defined()
Object
18. The concatenation assignment operator?
.=
===
open source
decimal
19. This error refers to a variable with no value.
nl2br()
error_reporting (0)
rand()
Notice
20. The array that stores variables specific to a user's visit
strlen()
Array
$_SESSION[]
foreach loop
21. To merge arrays
array_merge()
chr()
int
negative numbers
22. Leading 0x: 0x13F or 0xA23
isset()
asort()
$var++ and $var
Hex
23. To iterate over the values of an array
wordwrap()
GET
for ($i = 0; $i < count($array); $i++) {statement(s);}
reassign
24. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
round() Function
GET
define()
mysql_close($dbc)
25. Active Server Pages
ASP
$array[] = item
$var++ and $var
float
26. standard notation
predefined variable
urlencode()
underscores
decimal
27. The concatenation operator?
open source
shuffle()
the period; .
0
28. To word wrap after a certain amount of characters.
DTD
wordwrap()
variable
PHP
29. Online applications and resources which are available to the general public with very few restrictions
switch
Magic Constant
general
open source
30. To get over quotation marks while using arrays
DTD
curly braces
mysql_close($dbc)
null
31. Hyper Text Markup Language
float
HTML
str_word_count()
mysql_close($dbc)
32. Hypertext Preprocessor - a server-side programing language used to create webpages
PHP
predefined
$$
array()
33. The ouput of var_export((bool)"NULL");
true
ASP
html_entity_decode()
double quotes
34. Used to find the amount of words in a string.
function
htmlspecialchars()
str_word_count()
server-side programing
35. The order of operations.
<?php
===
precedence
boolean
36. Creates a pointer to a file with the declared mode (read - write -etc.).
DTD
+= or -= or *= or /=
fopen()
Object
37. used to round numeric values.
define()
round() Function
null
wordwrap()
38. ___________ can be used with substr() to count backward
ceil()
&
mysql_close($dbc)
negative numbers
39. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
error_reporting (E_ALL)
chop()
mysql_fetch_object()
index
40. either hasn't yet been set or is assigned NULL value
string
null
include() and require()
==
41. All variables must begin with _________.
numbers
switch
the dollar sign $
mysql_fetch_object()
42. To include files - _______ will give errors and _________ will terminate execution().
rsort()
Warning
include() and require()
ksort()
43. PHP has two conditional: if and ______.
str_word_count()
XML
chr()
switch
44. Use ______ when a variable contains any amount of variables; in general.
null
Warning
$var++ and $var
double quotes
45. To remove all HTML and PHP tags.
strip_tags()
string
indexed array
statement
46. does a certain action when called upon
Object
function
date()
predefined
47. The name of the #! used to designate the location of the PHP binary
preg_replace()
number_format()
Shebang
wordwrap()
48. An array whose keys are strings; also known as a hash.
the period; .
reassign
octal
associative array
49. 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.
chop()
$var++ and $var
include() and require()
error_reporting (E_ALL | E_STRICT)
50. Variable names cannot begin with _______
array
strtok()
negative numbers
numbers