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. TRUE or FALSE
$dbc = mysql_connect(hostname, username, password)
boolean
string
&
2. What You See Is What You Get
error_reporting (E_ALL)
WYSIWYG
Parse error
float
3. _____ is a logical operator
array()
$_POST[]
XOR
strtok()
4. The order of operations.
boolean
mysql_fetch_object()
precedence
function
5. To get time data
date()
preg_split()
empty()
define()
6. $_POST and $_GET are ________ variables.
string
predefined
error_reporting (E_ALL)
Warning
7. Control structure that continue exit - they perform specific statements for a determined number of iterations.
loops
.=
the period; .
predefined
8. To merge arrays
0
int
^
array_merge()
9. signed integer
Magic Constant
int
HTTP
drop
10. Operators used to operate and assign
Magic Constant
function error_reporting()
+= or -= or *= or /=
PHP
11. To assign array element values to individual variables
+= or -= or *= or /=
define()
function
list()
12. A conditional or loop is a ________________.
ini_set ('display_errors', 1)
control structure
array()
SEO
13. Function used to round up to the highest integer
shuffle()
open source
ceil()
==
14. a database which is best supported by PHP
===
$_POST[]
WYSIWYG
mysql
15. Hypertext Preprocessor - a server-side programing language used to create webpages
$dbc = mysql_connect(hostname, username, password)
predefined variable
function
PHP
16. addition
null
+
include() and require()
E_STRICT
17. The syntax for connecting to a database
$dbc = mysql_connect(hostname, username, password)
double quotes
numbers
chr()
18. To sort the values while maintaining the correlation between each value and its key
asort()
abs()
$_REQUEST
E_STRICT
19. To declare a constant
define()
underscores
boolean
array()
20. $_POST Data sent using POST found is sent to _______
predefined variable
precedence
underscores
nl2br()
21. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
chop()
Magic Constant
loops
strlen()
22. Used to convert certain HTML tags into their entity versions.
null
abs()
htmlspecialchars()
underscores
23. This error arises from misusing a function.
octal
include() and require()
Warning
str_word_count()
24. To create an array
array()
XOR
floor()
<<
25. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
mysql_fetch_array()
DTD
general
floor()
26. Used to check if a variable has any value (including 0 or FALSE or an empty string).
isset()
array()
?>
the dollar sign $
27. ____ or key is referred to for a value within an array.
date()
float
index
function
28. a positive or negative number
drop
integer
statement
bin2hex()
29. Function used to find the absolute value of a number or numeric variable
html_entity_decode()
addslashes()
!= inequality
abs()
30. A data structure that can hold a number of items of data of the same type eg. a list of names
addcslashes()
addslashes()
GET
array
31. To close a connection between a database
XML
mysql_close($dbc)
shuffle()
true
32. An array of variables passed with <input /> data
$_POST[]
trim()
$_REQUEST
statement
33. This will show all error reporting except for notice errors.
error_reporting (E_ALL & -E_NOTICE)
count()
mysql_fetch_object()
error_reporting (E_ALL)
34. Variable names cannot begin with _______
<?php
numbers
str_word_count()
null
35. EXtensible Markup Language
superglobal
XML
htmlspecialchars()
error_reporting (0)
36. To find how many substrings are in a string
associative array
E_STRICT
substr_count()
count()
37. Leading 0x: 0x13F or 0xA23
crypt()
Hex
1
preg_split()
38. does a certain action when called upon
$$
.=
foreach
function
39. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
drop
rand()
POST
define()
40. To delete a variable or an element of an array
unset()
parentheses
GET
precedence
41. To check if a constant is already declared
defined()
single quotes
SGML
the period; .
42. Alias of rtrim()
sort()
chop()
preg_split()
curly braces
43. To iterate over the keys and values of an array
boolean
include() and require()
foreach loop
<<
44. container of both data and code
&
Object
>>
function error_reporting()
45. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
POST
Warning
string
strlen()
46. bitwise left shift
<<
drop
null
general
47. signed floating-point value
index
float
$array[] = item
predefined variable
48. To reset an array _______ the array() function to the array
mysql_close($dbc)
defined()
statement
reassign
49. The concatenation operator?
the period; .
unset()
negative numbers
AJAX
50. Document Type Definitions
DTD
0
str_word_count()
preg_match()