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. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
Object
double quotes
is_numeric()
trim()
2. Operators used to operate and assign
+= or -= or *= or /=
fopen()
for ($i = 0; $i < count($array); $i++) {statement(s);}
<?php
3. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
POST
arsort()
date()
ceil()
4. Returns a character from a specified ASCII value
chr()
array()
underscores
str_ireplace()
5. To create an array
predefined variable
>>
array()
bin2hex()
6. Function used to round down to the lowest integer
floor()
round() Function
precedence
switch
7. The concatenation assignment operator?
underscores
.=
ksort()
strtok()
8. This will show all error reporting.
substr_count()
error_reporting (E_ALL)
$_REQUEST
function error_reporting()
9. To word wrap after a certain amount of characters.
+= or -= or *= or /=
wordwrap()
<?php
foreach
10. used to round numeric values.
POST
underscores
chop()
round() Function
11. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
GET
error_reporting (E_ALL)
==
drop
12. Used to convert certain HTML tags into their entity versions.
htmlspecialchars()
Notice
sql
getrandmax()
13. To refer to an item in an array
Array
chop()
Constant
$varname[key]
14. Shorthand used to increment and decrement
XML
curly braces
$var++ and $var
1
15. a positive or negative number
empty()
boolean
integer
^
16. Active Server Pages
numbers
ASP
E_STRICT
string
17. any programing language where the script is parsed on the server
!= inequality
server-side programing
defined()
nl2br()
18. Search Engine Optimization
SEO
htmlentities()
defined()
GET
19. To sort the values while maintaining the correlation between each value and its key - in reversed order
variable
Hex
rsort()
arsort()
20. Alias of rtrim()
chop()
crypt()
drop
negative numbers
21. EXtensible Markup Language
$_REQUEST
sort()
XML
not
22. Variable names cannot begin with _______
html_entity_decode()
SEO
preg_split()
numbers
23. Hyper Text Transfer Protocol
HTTP
$_GET[]
numbers
&
24. When used the value can be passed safely through the URL (GET).
<?php
urlencode()
0
<<
25. Used to find the amount of words in a string.
shuffle()
str_word_count()
ASP
preg_match()
26. allows you to split strings based on more complex rules
addslashes()
define()
preg_split()
bin2hex()
27. This will show all error reporting except for notice errors.
0
str_word_count()
<<
error_reporting (E_ALL & -E_NOTICE)
28. To reorganise the array randomly
ksort()
echo
shuffle()
$_SESSION[]
29. 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
30. does a certain action when called upon
fopen()
mysql
function
curly braces
31. The syntax for connecting to a database
substr_count()
error_reporting (E_ALL)
index
$dbc = mysql_connect(hostname, username, password)
32. TRUE or FALSE
boolean
.=
precedence
error_reporting (E_ALL)
33. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
predefined variable
sort()
drop
mysql
34. An array of variables passed with <input /> data
!= inequality
$_POST[]
define()
rand()
35. $_SERVER is a ________ variable.
chr()
AJAX
predefined
1
36. signed floating-point value
string
array
Parse error
float
37. Leading 0x: 0x13F or 0xA23
asort()
float
client-side programing
Hex
38. Returns a string with backslashes in front of predefined characters
true
echo
addslashes()
string
39. This fatal error arises from memory allocation problem.
boolean
Error
the escape character ''
mysql_fetch_array()
40. Control structure that continue exit - they perform specific statements for a determined number of iterations.
error_reporting (E_ALL & -E_NOTICE)
loops
nl2br()
date()
41. To iterate over the keys and values of an array
foreach loop
XML
curly braces; ${$total}
array()
42. 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 __________.
array()
include() and require()
function error_reporting()
curly braces; ${$total}
43. ___________ can be used with substr() to count backward
negative numbers
addcslashes()
index
sql
44. _________ can be used in conditional statements to set precedence
parentheses
general
+
predefined
45. the most basic function in PHP used to output information to the page
echo
trim()
string
DTD
46. a database which is best supported by PHP
HTML
double quotes
list()
mysql
47. An array whose keys are numbers.
indexed array
Parse error
foreach
Notice
48. either hasn't yet been set or is assigned NULL value
$var++ and $var
null
date()
===
49. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
fopen()
ksort()
$array[] = item
preg_match()
50. Function used to find the absolute value of a number or numeric variable
abs()
define()
foreach
GET