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. This will show all error reporting except for notice errors.
==
$_POST[]
error_reporting (E_ALL & -E_NOTICE)
foreach loop
2. The concatenation operator?
ini_set ('display_errors', 1)
error_reporting (0)
the period; .
strtok()
3. searches the subject for matches to a given pattern replaced with the given replacement text
preg_replace()
the dollar sign $
shuffle()
float
4. used to round numeric values.
^
statement
AJAX
round() Function
5. Uses two arguments: constant name and constant definition
str_ireplace()
AJAX
define()
mysql_fetch_array()
6. This will show all error reporting.
associative array
error_reporting (E_ALL)
switch
XML
7. Asynchronous Javascript And XML
define()
statement
strip_tags()
AJAX
8. All variables must begin with _________.
preg_split()
the dollar sign $
if/elseif/else and switch statements
predefined variable
9. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
superglobal
1
XOR
+
10. any programing language where the script is parsed on the server
predefined
server-side programing
true
number_format()
11. To get time data
date()
ksort()
boolean
if/elseif/else and switch statements
12. Control structure that continue exit - they perform specific statements for a determined number of iterations.
loops
HTML
octal
Object
13. To sort values of an array without regard to the keys
sort()
open source
curly braces; ${$total}
predefined
14. The order of operations.
predefined variable
$_GET[]
precedence
===
15. This will not show error reporting - it will be turned off.
include() and require()
error_reporting (0)
curly braces; ${$total}
rand()
16. says 'if' this then do this 'else' do this or 'while' this do this
integer
float
$_POST[]
statement
17. Function used to round down to the lowest integer
statement
floor()
<?php
ini_set ('display_errors', 1)
18. The name of the #! used to designate the location of the PHP binary
Shebang
str_ireplace()
boolean
client-side programing
19. identity
index
===
number_format()
single quotes
20. bitwise left shift
reassign
<<
drop
floor()
21. a storage location in the computer's memory that has a type & a name and a contents
ini_set ('display_errors', 1)
ksort()
chop()
variable
22. standard notation
array()
decimal
SEO
isset()
23. a line of information that can be stored in a variable or used in a function or statement
preg_replace()
string
array
+= or -= or *= or /=
24. ___________ can be used with substr() to count backward
negative numbers
mysql
indexed array
null
25. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
?>
mysql_fetch_array()
double quotes
getrandmax()
26. Alias of rtrim()
trim()
chop()
curly braces
Parse error
27. To check if a constant is already declared
defined()
precedence
WYSIWYG
POST
28. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
Parse error
drop
ASP
underscores
29. This error arises from misusing a function.
ceil()
foreach loop
arsort()
Warning
30. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
strlen()
define()
integer
nl2br()
31. a positive or negative number
+= or -= or *= or /=
XOR
indexed array
integer
32. bitwise XOR
^
float
===
trim()
33. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
preg_replace()
general
precedence
HTML
34. $_POST Data sent using POST found is sent to _______
==
is_numeric()
for ($i = 0; $i < count($array); $i++) {statement(s);}
predefined variable
35. Tag to begin a php script
addslashes()
control structure
array_merge()
<?php
36. The syntax for connecting to a database
Parse error
$dbc = mysql_connect(hostname, username, password)
html_entity_decode()
+= or -= or *= or /=
37. Function can you use to format a number with commas
<?php
.=
number_format()
Parse error
38. Variable names can begin with __________
octal
underscores
XML
boolean
39. To declare a constant
define()
index
reassign
sql
40. To counter htmlentities()
addslashes()
strip_tags()
Error
html_entity_decode()
41. a language in which to make querys to a database with
superglobal
foreach
mysql
sql
42. The four main error types are:Notice - Warning - ________ and Error.
+
Parse error
urlencode()
unset()
43. Function used to round up to the highest integer
ceil()
Notice
1
AJAX
44. Hyper Text Markup Language
loops
HTML
Error
include() and require()
45. To sort by the keys while maintaining the correlation between the key and its value
&
$_POST[]
ksort()
predefined
46. Creates a pointer to a file with the declared mode (read - write -etc.).
fopen()
float
count()
PHP
47. An array whose keys are strings; also known as a hash.
octal
GET
the dollar sign $
associative array
48. This fatal error arises from memory allocation problem.
ksort()
htmlspecialchars()
Error
array
49. Use ______ when a variable contains any amount of variables; in general.
substr_count()
predefined
numbers
double quotes
50. Operators used to operate and assign
arsort()
Parse error
str_ireplace()
+= or -= or *= or /=