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. Operators used to operate and assign
array_merge()
+= or -= or *= or /=
asort()
strtok()
2. Used to find the amount of words in a string.
$_REQUEST
<<
SEO
str_word_count()
3. The four main error types are:Notice - Warning - ________ and Error.
number_format()
$_POST[]
Parse error
function
4. Used to convert certain HTML tags into their entity versions.
foreach
crypt()
htmlspecialchars()
defined()
5. _____ is a logical operator
int
error_reporting (E_ALL & -E_NOTICE)
XOR
HTTP
6. 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 __________.
Magic Constant
curly braces; ${$total}
drop
statement
7. Use ________ to have multiple quotations in one string
+
wordwrap()
error_reporting (E_ALL | E_STRICT)
the escape character ''
8. EXtensible Markup Language
XML
$_POST[]
include() and require()
curly braces; ${$total}
9. a type with two possible values: true and false
abs()
GET
sql
boolean
10. A conditional or loop is a ________________.
WYSIWYG
control structure
+
predefined variable
11. 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
12. To remove all HTML and PHP tags.
strip_tags()
if/elseif/else and switch statements
underscores
array
13. Online applications and resources which are available to the general public with very few restrictions
list()
open source
rsort()
mysql_fetch_array()
14. The three types of loops in PHP are: for - while - ____.
$varname[key]
foreach
strip_tags()
integer
15. To declare a constant
the escape character ''
isset()
octal
define()
16. Standard Generalized Markup Language
Parse error
trim()
include() and require()
SGML
17. Search Engine Optimization
crypt()
general
SEO
predefined
18. The array that stores variables specific to a user's visit
$_SESSION[]
rsort()
curly braces
shuffle()
19. equivalence
SGML
true
==
!= inequality
20. ____ or key is referred to for a value within an array.
index
bin2hex()
sort()
trim()
21. To reset an array _______ the array() function to the array
===
reassign
Parse error
parentheses
22. ___________ can be used with substr() to count backward
client-side programing
?>
float
negative numbers
23. To sort the values while maintaining the correlation between each value and its key - in reversed order
statement
is_numeric()
for ($i = 0; $i < count($array); $i++) {statement(s);}
arsort()
24. This error refers to a variable with no value.
Shebang
function
Notice
array_merge()
25. container of ordered data elements
statement
Array
list()
foreach loop
26. To check if a constant is already declared
defined()
?>
boolean
nl2br()
27. Active Server Pages
boolean
trim()
ASP
Magic Constant
28. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
chop()
rand()
^
GET
29. container of both data and code
true
array()
Object
string
30. a language in which to make querys to a database with
sql
ceil()
SGML
the dollar sign $
31. used to round numeric values.
int
drop
round() Function
substr_count()
32. To find how many substrings are in a string
SGML
substr_count()
1
foreach
33. Returns a string with backslashes in front of the specified characters
substr_count()
addcslashes()
array
<?php
34. Used to convert all HTML tags into their entity versions.
chr()
error_reporting (E_ALL)
foreach
htmlentities()
35. Hyper Text Transfer Protocol
rsort()
HTTP
strip_tags()
sql
36. To close a connection between a database
mysql_close($dbc)
ksort()
bin2hex()
superglobal
37. The order of operations.
not
substr_count()
Warning
precedence
38. To reorganise the array randomly
shuffle()
DTD
list()
foreach loop
39. Function that contains the highest value that rand() can have randomly
^
getrandmax()
Notice
shuffle()
40. Control structure that continue exit - they perform specific statements for a determined number of iterations.
loops
indexed array
control structure
predefined
41. An array of variables passed with <input /> data
rsort()
$_POST[]
the dollar sign $
$$
42. searches the subject for matches to a given pattern replaced with the given replacement text
preg_replace()
predefined
indexed array
array
43. To assign keys to the values in an array
ini_set ('display_errors', 1)
GET
rsort()
array()
44. What You See Is What You Get
preg_split()
nl2br()
WYSIWYG
predefined
45. signed integer
preg_match()
int
single quotes
ASP
46. Used to replace a substring with another string - it is not case-sensitive.
array()
str_ireplace()
superglobal
null
47. bitwise AND
&
Warning
GET
round() Function
48. Alias of rtrim()
chop()
date()
Hex
the escape character ''
49. a line of information that can be stored in a variable or used in a function or statement
string
$_SESSION[]
htmlspecialchars()
int
50. To set up error reporting
control structure
+
+= or -= or *= or /=
function error_reporting()