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. Use ______ when there are no variables in the string
single quotes
&
===
curly braces; ${$total}
2. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
variable
superglobal
numbers
===
3. Used to find the length of a string
$array[] = item
POST
strlen()
+
4. All variables must begin with _________.
mysql
the dollar sign $
error_reporting (E_ALL | E_STRICT)
preg_replace()
5. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
$dbc = mysql_connect(hostname, username, password)
$array[] = item
string
Parse error
6. Function used to round up to the highest integer
negative numbers
$_REQUEST
ceil()
open source
7. Creates a pointer to a file with the declared mode (read - write -etc.).
fopen()
precedence
define()
$array[] = item
8. any programing language where the script is parsed on the server
asort()
server-side programing
the escape character ''
error_reporting (E_ALL | E_STRICT)
9. 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.
server-side programing
wordwrap()
error_reporting (E_ALL | E_STRICT)
rsort()
10. The name of the #! used to designate the location of the PHP binary
Shebang
curly braces; ${$total}
$_SESSION[]
boolean
11. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
the period; .
HTML
the dollar sign $
$_REQUEST
12. Variable names can begin with __________
underscores
empty()
$_REQUEST
?>
13. Used to encrypt values - it is a one-way encryption method
crypt()
chop()
asort()
.=
14. Function that contains the highest value that rand() can have randomly
GET
getrandmax()
Parse error
Constant
15. leading zero: 0100 or 0567
include() and require()
octal
$_REQUEST
XOR
16. Returns a string with backslashes in front of the specified characters
ASP
===
predefined
addcslashes()
17. Use _______ for passwords or pages that would not be bookmarked or pages that require security.
function
Hex
POST
array()
18. What You See Is What You Get
WYSIWYG
$_POST[]
POST
Parse error
19. signed floating-point value
boolean
1
float
===
20. a language in which to make querys to a database with
the period; .
XML
define()
sql
21. To determine the amount of elements in an array
count()
if/elseif/else and switch statements
>>
index
22. a line of information that can be stored in a variable or used in a function or statement
associative array
Notice
boolean
string
23. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead
Notice
PHP
is_numeric()
mysql_fetch_array()
24. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
Parse error
E_STRICT
array()
XML
25. Hypertext Preprocessor - a server-side programing language used to create webpages
strip_tags()
PHP
sort()
array()
26. _________ can be used in conditional statements to set precedence
float
parentheses
sort()
SEO
27. Converts a string of ASCII characters to hexadecimal values
drop
indexed array
bin2hex()
^
28. a storage location in the computer's memory that has a type & a name and a contents
variable
WYSIWYG
integer
open source
29. Operators used to operate and assign
the dollar sign $
ceil()
+= or -= or *= or /=
switch
30. This error arises from misusing a function.
Warning
GET
HTTP
round() Function
31. The concatenation operator?
crypt()
shuffle()
the period; .
foreach
32. Tag to begin a php script
crypt()
<?php
variable
$_POST[]
33. a type with two possible values: true and false
precedence
<?php
boolean
associative array
34. allows you to split strings based on more complex rules
preg_split()
XML
+
variable
35. says 'if' this then do this 'else' do this or 'while' this do this
statement
include() and require()
Magic Constant
boolean
36. container of ordered data elements
Hex
null
Array
predefined
37. ___________ can be used with substr() to count backward
POST
number_format()
parentheses
negative numbers
38. The array that stores variables specific to a user's visit
$_SESSION[]
mysql
open source
&
39. Alias of rtrim()
asort()
Warning
Object
chop()
40. Online applications and resources which are available to the general public with very few restrictions
$array[] = item
null
Error
open source
41. To remove all HTML and PHP tags.
.=
strip_tags()
superglobal
ceil()
42. To get over quotation marks while using arrays
reassign
SGML
curly braces
$$
43. used to round numeric values.
HTTP
round() Function
sort()
Magic Constant
44. To get time data
superglobal
>>
date()
general
45. collection of binary data
$_REQUEST
foreach
string
associative array
46. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
abs()
+
PHP
trim()
47. To declare a constant
the period; .
Array
int
define()
48. Hyper Text Transfer Protocol
HTTP
POST
ceil()
PHP
49. Function used to round down to the lowest integer
mysql_fetch_array()
==
0
floor()
50. To reset an array _______ the array() function to the array
reassign
+= or -= or *= or /=
unset()
sql