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. Tag to end a php script
GET
?>
addcslashes()
echo
2. ___________ can be used with substr() to count backward
not
substr_count()
ini_set ('display_errors', 1)
negative numbers
3. Returns a string with backslashes in front of predefined characters
sql
AJAX
chr()
addslashes()
4. This error arises from misusing a function.
int
crypt()
ASP
Warning
5. Hyper Text Markup Language
foreach loop
float
Error
HTML
6. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__
Magic Constant
round() Function
POST
open source
7. Creates a pointer to a file with the declared mode (read - write -etc.).
drop
addcslashes()
boolean
fopen()
8. Online applications and resources which are available to the general public with very few restrictions
htmlentities()
Warning
HTTP
open source
9. An array whose keys are strings; also known as a hash.
mysql_fetch_object()
superglobal
predefined
associative array
10. says 'if' this then do this 'else' do this or 'while' this do this
arsort()
statement
mysql_fetch_object()
Error
11. The three types of loops in PHP are: for - while - ____.
foreach
index
indexed array
WYSIWYG
12. Used to replace a substring with another string - it is not case-sensitive.
str_word_count()
str_ireplace()
mysql
predefined variable
13. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
mysql_fetch_object()
array_merge()
Object
$_GET[]
14. _____ is a logical operator
XOR
SGML
floor()
boolean
15. To sort values of an array in reversed order
rsort()
double quotes
date()
HTTP
16. Asynchronous Javascript And XML
XOR
!= inequality
AJAX
+
17. This error refers to a variable with no value.
Notice
predefined variable
sort()
associative array
18. The array that stores variables specific to a user's visit
asort()
$_SESSION[]
SGML
SEO
19. Shorthand used to increment and decrement
error_reporting (0)
$var++ and $var
DTD
null
20. Returns a string with backslashes in front of the specified characters
client-side programing
chr()
curly braces
addcslashes()
21. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
Parse error
trim()
function
wordwrap()
22. Variable names can begin with __________
underscores
curly braces; ${$total}
server-side programing
abs()
23. EXtensible Markup Language
predefined
XML
$_POST[]
curly braces
24. Function can you use to format a number with commas
octal
number_format()
boolean
null
25. To sort the values while maintaining the correlation between each value and its key
E_STRICT
asort()
reassign
float
26. To get time data
<?php
Magic Constant
XML
date()
27. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
count()
preg_split()
empty()
Array
28. Uses two arguments: constant name and constant definition
predefined variable
int
fopen()
define()
29. Function used to round down to the lowest integer
==
floor()
^
round() Function
30. Use ______ when there are no variables in the string
echo
define()
ASP
single quotes
31. To counter htmlentities()
str_word_count()
is_numeric()
$dbc = mysql_connect(hostname, username, password)
html_entity_decode()
32. To get over quotation marks while using arrays
error_reporting (0)
$varname[key]
curly braces
the escape character ''
33. bitwise AND
curly braces; ${$total}
&
<?php
+
34. bitwise right shift
count()
$var++ and $var
>>
echo
35. signed floating-point value
Object
?>
float
mysql_fetch_object()
36. ____ or key is referred to for a value within an array.
float
array()
index
Warning
37. The name of the #! used to designate the location of the PHP binary
+
Shebang
sql
open source
38. To merge arrays
double quotes
array_merge()
predefined
shuffle()
39. To create an array
double quotes
==
error_reporting (E_ALL | E_STRICT)
array()
40. a type with two possible values: true and false
error_reporting (0)
superglobal
boolean
Parse error
41. An array of variables passed in the URL
Warning
parentheses
$_SESSION[]
$_GET[]
42. a language in which to make querys to a database with
sql
string
html_entity_decode()
int
43. Active Server Pages
Shebang
string
ASP
array()
44. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
crypt()
general
===
mysql_fetch_array()
45. Alias of rtrim()
octal
chop()
Array
array
46. A conditional or loop is a ________________.
control structure
round() Function
curly braces
bin2hex()
47. Used to check if a variable has a valid numerical value; strings with numerical values pass.
$var++ and $var
define()
is_numeric()
shuffle()
48. bitwise XOR
reassign
ksort()
curly braces; ${$total}
^
49. a storage location in the computer's memory that has a type & a name and a contents
$_GET[]
variable
drop
preg_replace()
50. Function used to find the absolute value of a number or numeric variable
abs()
HTTP
index
array()