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 output of var_export((float)array());
reassign
str_word_count()
0
parentheses
2. Online applications and resources which are available to the general public with very few restrictions
list()
$varname[key]
open source
boolean
3. a type with two possible values: true and false
boolean
define()
is_numeric()
predefined variable
4. bitwise left shift
<<
substr_count()
preg_replace()
associative array
5. standard notation
decimal
chop()
&
superglobal
6. bitwise right shift
underscores
>>
&
numbers
7. To sort the values while maintaining the correlation between each value and its key
list()
string
1
asort()
8. Used to display errors in a particular script - should be placed at top of script.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
9. Define(NAME,value)
Constant
null
curly braces
string
10. Function used to find the absolute value of a number or numeric variable
curly braces; ${$total}
count()
abs()
XML
11. Operators used to operate and assign
GET
+= or -= or *= or /=
parentheses
html_entity_decode()
12. To merge arrays
str_ireplace()
array_merge()
general
true
13. Shorthand used to increment and decrement
$var++ and $var
str_word_count()
round() Function
DTD
14. To declare a constant
statement
strtok()
foreach
define()
15. To sort values of an array in reversed order
HTML
rsort()
urlencode()
predefined variable
16. To include files - _______ will give errors and _________ will terminate execution().
preg_match()
chop()
date()
include() and require()
17. EXtensible Markup Language
function
index
?>
XML
18. Converts a string of ASCII characters to hexadecimal values
boolean
addslashes()
bin2hex()
preg_match()
19. function Function used to create a random number
numbers
date()
rand()
asort()
20. Alias of rtrim()
chop()
isset()
addslashes()
SEO
21. The order of operations.
precedence
abs()
htmlspecialchars()
PHP
22. ____ or key is referred to for a value within an array.
$array[] = item
getrandmax()
index
decimal
23. Use ______ when there are no variables in the string
server-side programing
is_numeric()
count()
single quotes
24. To refer to an item in an array
DTD
predefined
$varname[key]
nl2br()
25. Returns a string with backslashes in front of predefined characters
Magic Constant
function
addslashes()
HTTP
26. Used to find the length of a string
strlen()
Array
bin2hex()
list()
27. An array of variables passed with <input /> data
preg_replace()
$_POST[]
crypt()
ASP
28. Hyper Text Transfer Protocol
mysql_close($dbc)
==
Hex
HTTP
29. To check if a constant is already declared
$_REQUEST
curly braces; ${$total}
round() Function
defined()
30. When used the value can be passed safely through the URL (GET).
urlencode()
arsort()
floor()
array()
31. equivalence
ini_set ('display_errors', 1)
==
Constant
array()
32. Function can you use to format a number with commas
predefined variable
preg_replace()
POST
number_format()
33. To get over quotation marks while using arrays
ASP
curly braces
string
chop()
34. Used to encrypt values - it is a one-way encryption method
strip_tags()
crypt()
+= or -= or *= or /=
>>
35. Function used to round down to the lowest integer
floor()
bin2hex()
ceil()
chr()
36. either hasn't yet been set or is assigned NULL value
predefined variable
null
count()
include() and require()
37. a storage location in the computer's memory that has a type & a name and a contents
variable
<?php
not
1
38. signed floating-point value
^
float
function error_reporting()
addcslashes()
39. Used to find the amount of words in a string.
curly braces; ${$total}
Hex
htmlspecialchars()
str_word_count()
40. Returns a character from a specified ASCII value
error_reporting (E_ALL & -E_NOTICE)
str_ireplace()
foreach loop
chr()
41. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
trim()
GET
Array
not
42. The name of the #! used to designate the location of the PHP binary
define()
general
foreach loop
Shebang
43. bitwise AND
&
urlencode()
define()
substr_count()
44. Active Server Pages
ASP
nl2br()
curly braces
htmlentities()
45. To reorganise the array randomly
shuffle()
1
float
predefined variable
46. To close a connection between a database
Hex
define()
Magic Constant
mysql_close($dbc)
47. a database which is best supported by PHP
precedence
echo
foreach loop
mysql
48. Asynchronous Javascript And XML
index
AJAX
boolean
.=
49. Function used to round up to the highest integer
error_reporting (E_ALL)
ceil()
indexed array
empty()
50. Variable names cannot begin with _______
define()
the period; .
numbers
WYSIWYG