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 check if a given variable has an "empty" value - no value or 0 or FALSE.
predefined variable
Shebang
empty()
HTML
2. the most basic function in PHP used to output information to the page
wordwrap()
echo
XOR
sort()
3. $_SERVER is a ________ variable.
strtok()
integer
predefined
XOR
4. To reset an array _______ the array() function to the array
integer
reassign
Warning
error_reporting (E_ALL)
5. Hyper Text Markup Language
<?php
asort()
HTML
foreach loop
6. To set up error reporting
nl2br()
double quotes
index
function error_reporting()
7. Search Engine Optimization
open source
preg_replace()
predefined
SEO
8. To get time data
empty()
predefined
open source
date()
9. To close a connection between a database
associative array
preg_match()
$$
mysql_close($dbc)
10. To sort values of an array in reversed order
strlen()
rsort()
general
$var++ and $var
11. This error arises from misusing a function.
error_reporting (E_ALL | E_STRICT)
Warning
0
curly braces; ${$total}
12. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
<?php
round() Function
drop
the escape character ''
13. identity
predefined
boolean
===
Parse error
14. A conditional or loop is a ________________.
control structure
html_entity_decode()
trim()
Array
15. Function can you use to format a number with commas
ceil()
addcslashes()
number_format()
crypt()
16. bitwise right shift
mysql_close($dbc)
>>
floor()
strtok()
17. All variables must begin with _________.
ini_set ('display_errors', 1)
preg_match()
Warning
the dollar sign $
18. _______ is a comparison operator
!= inequality
strlen()
wordwrap()
error_reporting (E_ALL & -E_NOTICE)
19. _________ can be used in conditional statements to set precedence
parentheses
SGML
wordwrap()
array()
20. _____ is a logical operator
+
XOR
string
trim()
21. Function used to find the absolute value of a number or numeric variable
<?php
array()
PHP
abs()
22. $_POST and $_GET are ________ variables.
predefined
SGML
Parse error
define()
23. Converts a string of ASCII characters to hexadecimal values
bin2hex()
str_ireplace()
strip_tags()
define()
24. a language in which to make querys to a database with
Notice
sql
define()
PHP
25. This will show all error reporting except for notice errors.
foreach loop
string
variable
error_reporting (E_ALL & -E_NOTICE)
26. Used to convert certain HTML tags into their entity versions.
statement
strtok()
htmlspecialchars()
sql
27. 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.
the escape character ''
sort()
error_reporting (E_ALL | E_STRICT)
function error_reporting()
28. The order of operations.
general
precedence
mysql_fetch_array()
open source
29. Variable names can begin with __________
preg_match()
underscores
drop
rand()
30. The three types of loops in PHP are: for - while - ____.
ini_set ('display_errors', 1)
error_reporting (E_ALL)
foreach
crypt()
31. container of ordered data elements
predefined variable
empty()
^
Array
32. Asynchronous Javascript And XML
+= or -= or *= or /=
foreach loop
string
AJAX
33. signed floating-point value
!= inequality
Notice
float
general
34. Used to check if a variable has a valid numerical value; strings with numerical values pass.
is_numeric()
reassign
SEO
>>
35. This will show all error reporting.
decimal
error_reporting (E_ALL)
define()
addcslashes()
36. The prefix for a dynamic variable - also known as a variable variable
$$
foreach loop
fopen()
>>
37. Tag to begin a php script
<?php
strtok()
if/elseif/else and switch statements
str_ireplace()
38. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
PHP
superglobal
0
floor()
39. bitwise left shift
open source
defined()
<<
PHP
40. Control structure that continue exit - they perform specific statements for a determined number of iterations.
strlen()
Array
loops
<<
41. This fatal error arises from memory allocation problem.
predefined
AJAX
$_GET[]
Error
42. ____ or key is referred to for a value within an array.
getrandmax()
strip_tags()
index
asort()
43. any programing language where the script is parsed on the server
$_SESSION[]
foreach loop
server-side programing
error_reporting (0)
44. Hypertext Preprocessor - a server-side programing language used to create webpages
HTML
PHP
control structure
POST
45. A data structure that can hold a number of items of data of the same type eg. a list of names
array
date()
drop
Constant
46. Use ______ when a variable contains any amount of variables; in general.
double quotes
float
date()
Array
47. To find how many substrings are in a string
foreach
substr_count()
switch
XOR
48. a database which is best supported by PHP
function
include() and require()
!= inequality
mysql
49. either hasn't yet been set or is assigned NULL value
octal
$_GET[]
null
error_reporting (0)
50. To create an array
DTD
array()
the dollar sign $
sql