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. container of both data and code
Object
round() Function
foreach loop
underscores
2. Used to replace a substring with another string - it is not case-sensitive.
error_reporting (0)
strtok()
str_ireplace()
curly braces
3. Used to create a substring (referred to as a token) from a larger string
arsort()
Object
isset()
strtok()
4. Returns a character from a specified ASCII value
predefined variable
chr()
if/elseif/else and switch statements
include() and require()
5. Used to check if a variable has a valid numerical value; strings with numerical values pass.
switch
==
array_merge()
is_numeric()
6. bitwise right shift
mysql
E_STRICT
Hex
>>
7. Asynchronous Javascript And XML
AJAX
precedence
chop()
parentheses
8. a line of information that can be stored in a variable or used in a function or statement
server-side programing
double quotes
string
negative numbers
9. When used the value can be passed safely through the URL (GET).
array
mysql_fetch_array()
$$
urlencode()
10. To close a connection between a database
for ($i = 0; $i < count($array); $i++) {statement(s);}
int
html_entity_decode()
mysql_close($dbc)
11. Used to find the length of a string
XOR
strlen()
XML
GET
12. ____ or key is referred to for a value within an array.
precedence
unset()
index
+
13. PHP has two conditional: if and ______.
crypt()
strlen()
switch
arsort()
14. collection of binary data
string
floor()
ASP
htmlentities()
15. To check if a constant is already declared
foreach
double quotes
sort()
defined()
16. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
GET
rand()
>>
Parse error
17. To set up error reporting
chop()
Parse error
null
function error_reporting()
18. Search Engine Optimization
GET
SEO
bin2hex()
function error_reporting()
19. To refer to an item in an array
DTD
define()
shuffle()
$varname[key]
20. An array of variables passed in the URL
$_GET[]
str_word_count()
boolean
true
21. This will show all error reporting.
function error_reporting()
ksort()
error_reporting (E_ALL)
preg_match()
22. bitwise AND
&
!= inequality
?>
arsort()
23. Tag to begin a php script
<?php
$var++ and $var
crypt()
sort()
24. To assign keys to the values in an array
decimal
array()
switch
trim()
25. To put a dollar sign before a variable like $10 where 10 is the variable's value - you can escape the first dollar sign; $$cost; or you can use __________.
curly braces; ${$total}
1
open source
reassign
26. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
POST
trim()
bin2hex()
octal
27. To sort by the keys while maintaining the correlation between the key and its value
$array[] = item
ksort()
open source
the dollar sign $
28. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
Hex
ini_set ('display_errors', 1)
precedence
general
29. Variable names cannot begin with _______
precedence
statement
Constant
numbers
30. leading zero: 0100 or 0567
array_merge()
octal
boolean
general
31. Used to check if a variable has any value (including 0 or FALSE or an empty string).
html_entity_decode()
$$
<<
isset()
32. To declare a constant
abs()
general
Shebang
define()
33. Tag to end a php script
statement
?>
1
mysql_fetch_object()
34. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
<?php
fopen()
mysql_fetch_object()
addcslashes()
35. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
$var++ and $var
defined()
mysql_fetch_array()
POST
36. To sort the values while maintaining the correlation between each value and its key - in reversed order
strlen()
arsort()
parentheses
error_reporting (E_ALL)
37. To reorganise the array randomly
unset()
shuffle()
not
true
38. The four main error types are:Notice - Warning - ________ and Error.
Parse error
SGML
is_numeric()
list()
39. Leading 0x: 0x13F or 0xA23
strtok()
Hex
predefined
POST
40. Function used to round down to the lowest integer
HTML
preg_replace()
floor()
statement
41. $_SERVER is a ________ variable.
E_STRICT
open source
predefined
array()
42. ___________ can be used with substr() to count backward
negative numbers
WYSIWYG
DTD
Object
43. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
control structure
numbers
POST
Magic Constant
44. To merge arrays
decimal
preg_replace()
isset()
array_merge()
45. To sort the values while maintaining the correlation between each value and its key
sort()
decimal
asort()
substr_count()
46. does a certain action when called upon
$var++ and $var
parentheses
.=
function
47. This will show all error reporting except for notice errors.
error_reporting (E_ALL & -E_NOTICE)
mysql
foreach
include() and require()
48. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
str_word_count()
empty()
open source
fopen()
49. a language in which to make querys to a database with
sql
wordwrap()
Error
getrandmax()
50. To create an array
array()
$_POST[]
abs()
Error