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
shuffle()
>>
curly braces
Magic Constant
2. To merge arrays
strlen()
fopen()
array_merge()
mysql_fetch_object()
3. A conditional or loop is a ________________.
control structure
integer
string
general
4. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
E_STRICT
array
$_POST[]
predefined
5. This error arises from misusing a function.
define()
Warning
wordwrap()
chop()
6. Hyper Text Transfer Protocol
Error
HTTP
Parse error
array()
7. Hyper Text Markup Language
HTML
define()
GET
rand()
8. a storage location in the computer's memory that has a type & a name and a contents
addslashes()
integer
variable
strtok()
9. Active Server Pages
the period; .
.=
predefined variable
ASP
10. Function can you use to format a number with commas
<?php
>>
number_format()
Warning
11. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
$array[] = item
XML
int
rand()
12. To sort values of an array in reversed order
octal
rsort()
count()
switch
13. Tag to end a php script
indexed array
?>
PHP
Hex
14. Asynchronous Javascript And XML
AJAX
!= inequality
list()
trim()
15. To get time data
substr_count()
array()
unset()
date()
16. Converts a string of ASCII characters to hexadecimal values
rand()
GET
bin2hex()
drop
17. Online applications and resources which are available to the general public with very few restrictions
strtok()
AJAX
open source
client-side programing
18. Hypertext Preprocessor - a server-side programing language used to create webpages
PHP
rsort()
sort()
Constant
19. Define(NAME,value)
>>
addslashes()
Constant
arsort()
20. Use ______ when there are no variables in the string
==
$_GET[]
single quotes
?>
21. bitwise left shift
mysql_fetch_array()
not
<<
$_POST[]
22. used to round numeric values.
asort()
curly braces; ${$total}
float
round() Function
23. The prefix for a dynamic variable - also known as a variable variable
preg_match()
$$
server-side programing
control structure
24. Used to check if a variable has a valid numerical value; strings with numerical values pass.
^
0
Parse error
is_numeric()
25. Use ______ when a variable contains any amount of variables; in general.
array()
if/elseif/else and switch statements
$dbc = mysql_connect(hostname, username, password)
double quotes
26. Leading 0x: 0x13F or 0xA23
ASP
true
the escape character ''
Hex
27. a type with two possible values: true and false
boolean
error_reporting (E_ALL & -E_NOTICE)
strtok()
chop()
28. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
Object
trim()
str_ireplace()
is_numeric()
29. To sort the values while maintaining the correlation between each value and its key - in reversed order
POST
arsort()
error_reporting (E_ALL)
predefined
30. leading zero: 0100 or 0567
Notice
octal
index
addcslashes()
31. The concatenation assignment operator?
.=
the dollar sign $
general
if/elseif/else and switch statements
32. 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}
control structure
switch
boolean
33. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
urlencode()
integer
empty()
function
34. signed floating-point value
float
getrandmax()
unset()
AJAX
35. bitwise XOR
predefined
GET
^
abs()
36. a positive or negative number
integer
control structure
$_GET[]
variable
37. This will show all error reporting.
boolean
parentheses
error_reporting (E_ALL)
rsort()
38. container of ordered data elements
array_merge()
HTTP
not
Array
39. To refer to an item in an array
boolean
ksort()
index
$varname[key]
40. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
asort()
function error_reporting()
strtok()
mysql_fetch_array()
41. either hasn't yet been set or is assigned NULL value
function
control structure
null
predefined variable
42. 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
43. An array whose keys are strings; also known as a hash.
underscores
for ($i = 0; $i < count($array); $i++) {statement(s);}
trim()
associative array
44. $_POST Data sent using POST found is sent to _______
foreach loop
predefined variable
mysql
string
45. collection of binary data
Parse error
string
define()
octal
46. EXtensible Markup Language
XML
fopen()
htmlspecialchars()
$varname[key]
47. Operators used to operate and assign
general
!= inequality
Constant
+= or -= or *= or /=
48. To create an array
array()
include() and require()
strip_tags()
empty()
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.
error_reporting (E_ALL | E_STRICT)
SEO
unset()
octal
50. bitwise AND
nl2br()
&
string
addslashes()