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 most basic function in PHP used to output information to the page
chr()
count()
$dbc = mysql_connect(hostname, username, password)
echo
2. This error arises from misusing a function.
Warning
function
POST
strip_tags()
3. To include files - _______ will give errors and _________ will terminate execution().
define()
preg_split()
include() and require()
reassign
4. Asynchronous Javascript And XML
getrandmax()
E_STRICT
error_reporting (E_ALL & -E_NOTICE)
AJAX
5. either hasn't yet been set or is assigned NULL value
Parse error
XOR
array_merge()
null
6. Used to encrypt values - it is a one-way encryption method
crypt()
list()
XOR
curly braces; ${$total}
7. equivalence
array
==
server-side programing
&
8. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;
general
trim()
indexed array
predefined
9. Hypertext Preprocessor - a server-side programing language used to create webpages
SGML
underscores
PHP
htmlentities()
10. 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}
precedence
.=
sort()
11. To determine the amount of elements in an array
count()
?>
array_merge()
Parse error
12. $_SERVER is a ________ variable.
round() Function
include() and require()
$_POST[]
predefined
13. To get over quotation marks while using arrays
octal
chr()
curly braces
superglobal
14. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
Error
HTML
superglobal
PHP
15. container of ordered data elements
$$
Array
echo
?>
16. An array whose keys are strings; also known as a hash.
boolean
SGML
associative array
int
17. This fatal error arises from memory allocation problem.
Constant
Error
chr()
==
18. Used to create a substring (referred to as a token) from a larger string
WYSIWYG
htmlspecialchars()
strtok()
integer
19. To check if a constant is already declared
strip_tags()
defined()
statement
chr()
20. Used to check if a variable has any value (including 0 or FALSE or an empty string).
variable
isset()
==
single quotes
21. a positive or negative number
number_format()
open source
integer
array()
22. $_POST and $_GET are ________ variables.
^
error_reporting (E_ALL | E_STRICT)
$dbc = mysql_connect(hostname, username, password)
predefined
23. Hyper Text Transfer Protocol
nl2br()
general
boolean
HTTP
24. Control structures that break exit
if/elseif/else and switch statements
list()
boolean
ASP
25. The output of var_export((float)array(0));
echo
strtok()
1
ksort()
26. To sort the values while maintaining the correlation between each value and its key - in reversed order
predefined
mysql
Constant
arsort()
27. Variable names cannot begin with _______
switch
is_numeric()
bin2hex()
numbers
28. Online applications and resources which are available to the general public with very few restrictions
sql
&
open source
HTTP
29. To assign keys to the values in an array
strip_tags()
wordwrap()
SGML
array()
30. searches the subject for matches to a given pattern replaced with the given replacement text
preg_replace()
numbers
int
nl2br()
31. The concatenation assignment operator?
rand()
.=
drop
sort()
32. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
arsort()
bin2hex()
mysql_fetch_array()
crypt()
33. Document Type Definitions
DTD
int
reassign
array()
34. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
string
control structure
include() and require()
trim()
35. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
Parse error
date()
WYSIWYG
nl2br()
36. To find how many substrings are in a string
string
addcslashes()
substr_count()
rand()
37. Search Engine Optimization
===
<<
the escape character ''
SEO
38. bitwise left shift
include() and require()
<<
defined()
for ($i = 0; $i < count($array); $i++) {statement(s);}
39. The three types of loops in PHP are: for - while - ____.
<?php
parentheses
null
foreach
40. The prefix for a dynamic variable - also known as a variable variable
null
arsort()
$$
1
41. To declare a constant
define()
$_POST[]
+= or -= or *= or /=
SGML
42. Used to check if a variable has a valid numerical value; strings with numerical values pass.
PHP
the dollar sign $
is_numeric()
!= inequality
43. signed integer
string
is_numeric()
preg_replace()
int
44. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
drop
sql
$var++ and $var
Shebang
45. function Function used to create a random number
XOR
abs()
rand()
PHP
46. Use ______ for search engines or catalogued pages or pages that would be bookmarked.
mysql_close($dbc)
ksort()
strlen()
GET
47. The syntax for connecting to a database
loops
$dbc = mysql_connect(hostname, username, password)
XML
client-side programing
48. Used to find the length of a string
POST
strlen()
crypt()
if/elseif/else and switch statements
49. a type with two possible values: true and false
$_SESSION[]
boolean
underscores
addcslashes()
50. container of both data and code
drop
ceil()
general
Object