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. 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.
asort()
>>
reassign
error_reporting (E_ALL | E_STRICT)
2. signed floating-point value
not
float
.=
XOR
3. container of ordered data elements
mysql_fetch_array()
defined()
index
Array
4. Function can you use to format a number with commas
asort()
null
boolean
number_format()
5. Alias of rtrim()
chop()
negative numbers
bin2hex()
Shebang
6. leading zero: 0100 or 0567
Shebang
defined()
octal
arsort()
7. either hasn't yet been set or is assigned NULL value
numbers
1
Shebang
null
8. ____ or key is referred to for a value within an array.
index
HTML
Notice
negative numbers
9. Hypertext Preprocessor - a server-side programing language used to create webpages
Magic Constant
PHP
if/elseif/else and switch statements
array()
10. TRUE or FALSE
Constant
chr()
boolean
statement
11. bitwise left shift
<<
shuffle()
Magic Constant
$_POST[]
12. 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 __________.
boolean
predefined variable
==
curly braces; ${$total}
13. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
floor()
$_REQUEST
switch
include() and require()
14. To close a connection between a database
mysql_fetch_array()
===
mysql_close($dbc)
$_REQUEST
15. returns the number of matches found by a given search string under this format...
preg_match()
bin2hex()
decimal
Parse error
16. Asynchronous Javascript And XML
round() Function
error_reporting (E_ALL & -E_NOTICE)
SGML
AJAX
17. Returns a string with backslashes in front of predefined characters
sort()
mysql_fetch_object()
Notice
addslashes()
18. To assign array element values to individual variables
curly braces; ${$total}
associative array
list()
int
19. The array that stores variables specific to a user's visit
Shebang
$_SESSION[]
not
Parse error
20. This will not show error reporting - it will be turned off.
predefined variable
ceil()
mysql_close($dbc)
error_reporting (0)
21. To sort the values while maintaining the correlation between each value and its key - in reversed order
curly braces; ${$total}
Shebang
arsort()
XML
22. To merge arrays
chop()
array_merge()
predefined
+
23. any programing language where the script is parsed on the server
server-side programing
loops
mysql_fetch_array()
error_reporting (E_ALL | E_STRICT)
24. bitwise XOR
the period; .
urlencode()
single quotes
^
25. any programing language where the user must support the language the script is written in
Array
error_reporting (E_ALL & -E_NOTICE)
Parse error
client-side programing
26. Hyper Text Markup Language
true
HTML
count()
?>
27. Variable names can begin with __________
numbers
underscores
Object
bin2hex()
28. To reset an array _______ the array() function to the array
ASP
include() and require()
reassign
crypt()
29. Use ________ to have multiple quotations in one string
foreach
the escape character ''
^
XOR
30. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
<?php
drop
error_reporting (0)
Parse error
31. To create an array
foreach
array()
indexed array
floor()
32. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
===
predefined variable
Magic Constant
E_STRICT
33. To assign keys to the values in an array
list()
round() Function
===
array()
34. Leading 0x: 0x13F or 0xA23
Hex
<?php
reassign
floor()
35. This error refers to a variable with no value.
reassign
negative numbers
Notice
precedence
36. Used to check if a variable has any value (including 0 or FALSE or an empty string).
>>
isset()
str_ireplace()
boolean
37. Used to check if a variable has a valid numerical value; strings with numerical values pass.
is_numeric()
boolean
single quotes
rand()
38. Variable names cannot begin with _______
numbers
Magic Constant
foreach loop
the period; .
39. Used to find the amount of words in a string.
$array[] = item
Magic Constant
$var++ and $var
str_word_count()
40. allows you to split strings based on more complex rules
preg_split()
error_reporting (E_ALL & -E_NOTICE)
$dbc = mysql_connect(hostname, username, password)
str_word_count()
41. equivalence
==
&
mysql_fetch_object()
is_numeric()
42. Used to replace a substring with another string - it is not case-sensitive.
str_ireplace()
index
$_GET[]
null
43. This will show all error reporting.
the escape character ''
strip_tags()
superglobal
error_reporting (E_ALL)
44. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
POST
$dbc = mysql_connect(hostname, username, password)
string
preg_replace()
45. To find how many substrings are in a string
error_reporting (0)
substr_count()
str_word_count()
the dollar sign $
46. Used to find the length of a string
abs()
strlen()
Hex
HTML
47. Document Type Definitions
DTD
mysql_close($dbc)
error_reporting (0)
foreach loop
48. Function used to round down to the lowest integer
?>
open source
!= inequality
floor()
49. The concatenation assignment operator?
is_numeric()
.=
strtok()
Notice
50. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
mysql_fetch_array()
negative numbers
$$
+