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. To find how many substrings are in a string
substr_count()
curly braces
Magic Constant
Parse error
2. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
round() Function
is_numeric()
htmlentities()
mysql_fetch_object()
3. The four main error types are:Notice - Warning - ________ and Error.
for ($i = 0; $i < count($array); $i++) {statement(s);}
mysql_fetch_object()
urlencode()
Parse error
4. The output of var_export((float)array());
single quotes
0
GET
string
5. Alias of rtrim()
chop()
shuffle()
$varname[key]
floor()
6. a type with two possible values: true and false
arsort()
predefined
mysql_close($dbc)
boolean
7. 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 __________.
rsort()
index
float
curly braces; ${$total}
8. a storage location in the computer's memory that has a type & a name and a contents
superglobal
function error_reporting()
error_reporting (E_ALL & -E_NOTICE)
variable
9. collection of binary data
==
string
ksort()
switch
10. bitwise left shift
sql
<<
HTTP
unset()
11. ___________ can be used with substr() to count backward
XOR
string
negative numbers
loops
12. Tag to end a php script
?>
>>
trim()
precedence
13. Search Engine Optimization
E_STRICT
SEO
sort()
echo
14. To sort values of an array without regard to the keys
floor()
superglobal
sort()
mysql_fetch_object()
15. The syntax for connecting to a database
$dbc = mysql_connect(hostname, username, password)
htmlentities()
sql
DTD
16. Active Server Pages
$array[] = item
str_word_count()
foreach loop
ASP
17. says 'if' this then do this 'else' do this or 'while' this do this
statement
function error_reporting()
Object
precedence
18. The concatenation assignment operator?
HTTP
true
the escape character ''
.=
19. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
superglobal
drop
open source
WYSIWYG
20. To counter htmlentities()
XOR
round() Function
html_entity_decode()
underscores
21. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
for ($i = 0; $i < count($array); $i++) {statement(s);}
numbers
GET
array()
22. Creates a pointer to a file with the declared mode (read - write -etc.).
error_reporting (E_ALL)
fopen()
ASP
server-side programing
23. a database which is best supported by PHP
rand()
int
mysql
strip_tags()
24. To reorganise the array randomly
foreach
nl2br()
$_GET[]
shuffle()
25. Function that contains the highest value that rand() can have randomly
ASP
HTML
$_REQUEST
getrandmax()
26. addition
abs()
<?php
+
getrandmax()
27. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
precedence
for ($i = 0; $i < count($array); $i++) {statement(s);}
Parse error
$_SESSION[]
28. When used the value can be passed safely through the URL (GET).
Hex
error_reporting (E_ALL & -E_NOTICE)
urlencode()
substr_count()
29. Hyper Text Markup Language
htmlspecialchars()
decimal
HTML
int
30. A conditional or loop is a ________________.
asort()
client-side programing
control structure
foreach
31. Used to find the length of a string
underscores
round() Function
strlen()
SGML
32. bitwise XOR
ASP
^
server-side programing
curly braces; ${$total}
33. $_SERVER is a ________ variable.
count()
htmlentities()
strip_tags()
predefined
34. a positive or negative number
defined()
function error_reporting()
preg_replace()
integer
35. This will not show error reporting - it will be turned off.
error_reporting (0)
mysql_fetch_object()
null
>>
36. Use ________ to have multiple quotations in one string
integer
^
the escape character ''
error_reporting (E_ALL & -E_NOTICE)
37. Function used to round down to the lowest integer
variable
floor()
?>
arsort()
38. The concatenation operator?
function
urlencode()
int
the period; .
39. _____ is a logical operator
int
XOR
date()
Warning
40. Online applications and resources which are available to the general public with very few restrictions
open source
bin2hex()
define()
array()
41. container of ordered data elements
server-side programing
Array
is_numeric()
predefined
42. EXtensible Markup Language
XML
the escape character ''
statement
double quotes
43. used to round numeric values.
htmlspecialchars()
str_ireplace()
round() Function
ini_set ('display_errors', 1)
44. Control structures that break exit
AJAX
SGML
foreach
if/elseif/else and switch statements
45. $_POST and $_GET are ________ variables.
predefined
the period; .
POST
preg_replace()
46. Leading 0x: 0x13F or 0xA23
!= inequality
.=
Hex
Parse error
47. bitwise AND
chop()
arsort()
&
error_reporting (E_ALL & -E_NOTICE)
48. Used to check if a variable has any value (including 0 or FALSE or an empty string).
drop
isset()
underscores
mysql_close($dbc)
49. Use ______ when there are no variables in the string
mysql_fetch_array()
ASP
string
single quotes
50. _________ can be used in conditional statements to set precedence
!= inequality
addslashes()
parentheses
open source