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. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
$varname[key]
^
drop
chr()
2. To refer to an item in an array
$varname[key]
bin2hex()
indexed array
POST
3. The three types of loops in PHP are: for - while - ____.
Error
mysql
foreach
mysql_fetch_object()
4. Document Type Definitions
DTD
fopen()
$_REQUEST
reassign
5. the most basic function in PHP used to output information to the page
foreach loop
string
array()
echo
6. says 'if' this then do this 'else' do this or 'while' this do this
htmlentities()
statement
define()
$_POST[]
7. The output of var_export((float)array());
0
^
statement
drop
8. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
asort()
control structure
GET
include() and require()
9. leading zero: 0100 or 0567
decimal
mysql
==
octal
10. Used to replace a substring with another string - it is not case-sensitive.
chr()
curly braces
DTD
str_ireplace()
11. Control structures that break exit
if/elseif/else and switch statements
underscores
ceil()
Hex
12. An array whose keys are strings; also known as a hash.
sql
associative array
===
the dollar sign $
13. To delete a variable or an element of an array
1
unset()
htmlspecialchars()
$_GET[]
14. signed integer
int
Magic Constant
single quotes
the dollar sign $
15. Function used to find the absolute value of a number or numeric variable
Magic Constant
drop
integer
abs()
16. To get time data
Notice
ini_set ('display_errors', 1)
Error
date()
17. To sort values of an array in reversed order
rsort()
not
ASP
boolean
18. Used to create a substring (referred to as a token) from a larger string
strtok()
Error
strlen()
boolean
19. All variables must begin with _________.
drop
the dollar sign $
Constant
HTTP
20. An array whose keys are numbers.
indexed array
urlencode()
echo
client-side programing
21. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
XML
strtok()
index
Magic Constant
22. To include files - _______ will give errors and _________ will terminate execution().
statement
include() and require()
boolean
$dbc = mysql_connect(hostname, username, password)
23. To iterate over the keys and values of an array
foreach loop
open source
loops
htmlspecialchars()
24. To assign keys to the values in an array
fopen()
array()
chop()
Array
25. Creates a pointer to a file with the declared mode (read - write -etc.).
if/elseif/else and switch statements
the dollar sign $
fopen()
include() and require()
26. To set up error reporting
function error_reporting()
strlen()
the escape character ''
for ($i = 0; $i < count($array); $i++) {statement(s);}
27. Leading 0x: 0x13F or 0xA23
!= inequality
round() Function
rand()
Hex
28. To reset an array _______ the array() function to the array
reassign
null
foreach loop
the dollar sign $
29. Used to convert certain HTML tags into their entity versions.
+= or -= or *= or /=
sort()
indexed array
htmlspecialchars()
30. either hasn't yet been set or is assigned NULL value
curly braces
<?php
XOR
null
31. Hyper Text Transfer Protocol
HTTP
isset()
strlen()
Object
32. searches the subject for matches to a given pattern replaced with the given replacement text
count()
Constant
preg_replace()
array()
33. bitwise XOR
DTD
GET
+
^
34. Online applications and resources which are available to the general public with very few restrictions
str_word_count()
client-side programing
wordwrap()
open source
35. To sort by the keys while maintaining the correlation between the key and its value
ksort()
array_merge()
associative array
for ($i = 0; $i < count($array); $i++) {statement(s);}
36. any programing language where the user must support the language the script is written in
array_merge()
predefined
arsort()
client-side programing
37. Control structure that continue exit - they perform specific statements for a determined number of iterations.
loops
the period; .
predefined
parentheses
38. To check if a constant is already declared
boolean
defined()
Magic Constant
not
39. a database which is best supported by PHP
DTD
htmlspecialchars()
$_SESSION[]
mysql
40. $_POST Data sent using POST found is sent to _______
Warning
===
mysql_fetch_object()
predefined variable
41. What You See Is What You Get
nl2br()
$var++ and $var
WYSIWYG
empty()
42. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
Parse error
WYSIWYG
reassign
Notice
43. To counter htmlentities()
substr_count()
reassign
html_entity_decode()
indexed array
44. Function used to round up to the highest integer
empty()
superglobal
ceil()
Error
45. Hyper Text Markup Language
include() and require()
numbers
HTML
ksort()
46. print $_SERVER will _____ work if you use the print function on arrays.
!= inequality
for ($i = 0; $i < count($array); $i++) {statement(s);}
str_word_count()
not
47. Variable names cannot begin with _______
integer
numbers
Parse error
Notice
48. To sort the values while maintaining the correlation between each value and its key
Parse error
integer
ceil()
asort()
49. An array of variables passed in the URL
unset()
Object
$_GET[]
ceil()
50. Used to encrypt values - it is a one-way encryption method
float
preg_split()
crypt()
array