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
drop
function error_reporting()
string
statement
2. To delete a variable or an element of an array
predefined
unset()
chop()
true
3. either hasn't yet been set or is assigned NULL value
decimal
>>
null
rsort()
4. An array of variables passed in the URL
+= or -= or *= or /=
$_GET[]
open source
<<
5. Online applications and resources which are available to the general public with very few restrictions
nl2br()
negative numbers
open source
<<
6. EXtensible Markup Language
XML
function error_reporting()
getrandmax()
$_POST[]
7. Used to convert all HTML tags into their entity versions.
htmlentities()
superglobal
drop
arsort()
8. Returns a character from a specified ASCII value
single quotes
ksort()
chr()
reassign
9. bitwise left shift
str_word_count()
<<
PHP
int
10. Use ______ when there are no variables in the string
single quotes
GET
SGML
chop()
11. This error arises from misusing a function.
?>
wordwrap()
^
Warning
12. A data structure that can hold a number of items of data of the same type eg. a list of names
addslashes()
array
loops
float
13. An array whose keys are strings; also known as a hash.
foreach loop
is_numeric()
mysql_close($dbc)
associative array
14. signed integer
$dbc = mysql_connect(hostname, username, password)
the escape character ''
int
open source
15. _________ can be used in conditional statements to set precedence
predefined
POST
indexed array
parentheses
16. _______ is a comparison operator
boolean
str_word_count()
!= inequality
mysql_fetch_array()
17. Used to check if a variable has any value (including 0 or FALSE or an empty string).
isset()
unset()
htmlentities()
getrandmax()
18. collection of binary data
negative numbers
true
$array[] = item
string
19. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
double quotes
curly braces
ini_set ('display_errors', 1)
general
20. 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.
$varname[key]
error_reporting (E_ALL | E_STRICT)
array()
array()
21. What You See Is What You Get
predefined
WYSIWYG
$varname[key]
preg_replace()
22. An array whose keys are numbers.
error_reporting (E_ALL & -E_NOTICE)
error_reporting (E_ALL)
indexed array
define()
23. searches the subject for matches to a given pattern replaced with the given replacement text
strlen()
preg_replace()
include() and require()
urlencode()
24. a language in which to make querys to a database with
sql
Constant
bin2hex()
octal
25. container of ordered data elements
the escape character ''
Array
XOR
shuffle()
26. Use ______ when a variable contains any amount of variables; in general.
predefined variable
WYSIWYG
double quotes
array_merge()
27. This fatal error arises from memory allocation problem.
Error
Array
parentheses
$_GET[]
28. bitwise AND
error_reporting (E_ALL | E_STRICT)
&
mysql_close($dbc)
<?php
29. Alias of rtrim()
Warning
chop()
int
Shebang
30. Control structures that break exit
the period; .
htmlspecialchars()
if/elseif/else and switch statements
parentheses
31. TRUE or FALSE
include() and require()
the escape character ''
>>
boolean
32. The array that stores variables specific to a user's visit
$_SESSION[]
strtok()
unset()
Hex
33. The concatenation assignment operator?
strtok()
statement
the dollar sign $
.=
34. A conditional or loop is a ________________.
mysql_fetch_array()
<?php
control structure
mysql_close($dbc)
35. To declare a constant
the period; .
define()
defined()
array()
36. All variables must begin with _________.
sql
the dollar sign $
numbers
getrandmax()
37. Used to create a substring (referred to as a token) from a larger string
ceil()
mysql_close($dbc)
strtok()
precedence
38. Used to encrypt values - it is a one-way encryption method
crypt()
sort()
curly braces
strlen()
39. The concatenation operator?
strlen()
HTTP
0
the period; .
40. a positive or negative number
integer
HTML
the dollar sign $
bin2hex()
41. a storage location in the computer's memory that has a type & a name and a contents
$_REQUEST
variable
asort()
unset()
42. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
nl2br()
htmlentities()
Magic Constant
$_REQUEST
43. Leading 0x: 0x13F or 0xA23
negative numbers
strip_tags()
error_reporting (E_ALL & -E_NOTICE)
Hex
44. This error refers to a variable with no value.
Parse error
statement
asort()
Notice
45. The output of var_export((float)array(0));
superglobal
GET
switch
1
46. Hypertext Preprocessor - a server-side programing language used to create webpages
PHP
$var++ and $var
underscores
define()
47. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
AJAX
true
array_merge()
Magic Constant
48. print $_SERVER will _____ work if you use the print function on arrays.
+= or -= or *= or /=
not
HTML
nl2br()
49. Converts a string of ASCII characters to hexadecimal values
urlencode()
double quotes
bin2hex()
client-side programing
50. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
single quotes
mysql_fetch_array()
chop()
reassign