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. Returns a string with backslashes in front of the specified characters
array_merge()
addcslashes()
Warning
$_SESSION[]
2. function Function used to create a random number
rand()
preg_replace()
if/elseif/else and switch statements
$$
3. addition
WYSIWYG
+
Hex
sql
4. a line of information that can be stored in a variable or used in a function or statement
$var++ and $var
0
string
drop
5. To check if a constant is already declared
defined()
GET
Shebang
decimal
6. The output of var_export((float)array(0));
list()
1
for ($i = 0; $i < count($array); $i++) {statement(s);}
function
7. The three types of loops in PHP are: for - while - ____.
$_POST[]
client-side programing
foreach
HTML
8. Use ______ when there are no variables in the string
control structure
single quotes
mysql_fetch_array()
Error
9. An array of variables passed with <input /> data
$_POST[]
array_merge()
function error_reporting()
preg_replace()
10. What You See Is What You Get
===
WYSIWYG
Shebang
boolean
11. A conditional or loop is a ________________.
underscores
true
control structure
ini_set ('display_errors', 1)
12. Leading 0x: 0x13F or 0xA23
mysql_fetch_array()
Hex
sort()
nl2br()
13. This fatal error arises from memory allocation problem.
$_POST[]
^
Error
SEO
14. Shorthand used to increment and decrement
$var++ and $var
+= or -= or *= or /=
preg_match()
preg_replace()
15. Define(NAME,value)
Constant
strlen()
$_POST[]
loops
16. any programing language where the script is parsed on the server
for ($i = 0; $i < count($array); $i++) {statement(s);}
server-side programing
bin2hex()
mysql_fetch_array()
17. This error arises from misusing a function.
strtok()
Warning
chop()
open source
18. To counter htmlentities()
html_entity_decode()
$dbc = mysql_connect(hostname, username, password)
array
empty()
19. Standard Generalized Markup Language
asort()
predefined
empty()
SGML
20. Control structure that continue exit - they perform specific statements for a determined number of iterations.
general
loops
Parse error
int
21. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
DTD
Warning
drop
arsort()
22. a language in which to make querys to a database with
predefined
sql
predefined
negative numbers
23. This will show all error reporting except for notice errors.
error_reporting (E_ALL & -E_NOTICE)
ceil()
html_entity_decode()
foreach
24. Converts a string of ASCII characters to hexadecimal values
array()
^
foreach loop
bin2hex()
25. Control structures that break exit
Warning
predefined variable
if/elseif/else and switch statements
negative numbers
26. Online applications and resources which are available to the general public with very few restrictions
open source
array
superglobal
wordwrap()
27. container of ordered data elements
strlen()
Array
function
list()
28. Function used to round up to the highest integer
chop()
open source
ceil()
error_reporting (E_ALL)
29. a storage location in the computer's memory that has a type & a name and a contents
variable
WYSIWYG
single quotes
indexed array
30. 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.
function
SEO
error_reporting (E_ALL | E_STRICT)
chr()
31. To append elements to an array - this will assign item to the next available index; associative arrays get messy.
$array[] = item
+
sort()
predefined variable
32. To sort values of an array in reversed order
trim()
rsort()
curly braces
round() Function
33. ___________ can be used with substr() to count backward
<?php
numbers
negative numbers
1
34. To refer to an item in an array
$_REQUEST
chop()
getrandmax()
$varname[key]
35. The name of the #! used to designate the location of the PHP binary
int
control structure
Shebang
associative array
36. To get over quotation marks while using arrays
htmlentities()
curly braces
Parse error
boolean
37. To reset an array _______ the array() function to the array
server-side programing
not
reassign
$varname[key]
38. When used the value can be passed safely through the URL (GET).
urlencode()
+
echo
function
39. $_POST Data sent using POST found is sent to _______
error_reporting (E_ALL)
open source
predefined variable
&
40. Used to find the amount of words in a string.
rsort()
$dbc = mysql_connect(hostname, username, password)
true
str_word_count()
41. Returns a string with backslashes in front of predefined characters
Hex
abs()
addslashes()
0
42. To iterate over the keys and values of an array
GET
foreach loop
!= inequality
0
43. returns the number of matches found by a given search string under this format...
preg_match()
$array[] = item
predefined
single quotes
44. Uses two arguments: constant name and constant definition
Error
^
define()
HTML
45. _____ is a logical operator
foreach
XOR
chr()
function error_reporting()
46. Use ______ when a variable contains any amount of variables; in general.
double quotes
string
server-side programing
getrandmax()
47. To reorganise the array randomly
server-side programing
str_word_count()
shuffle()
predefined variable
48. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED
E_STRICT
the escape character ''
sort()
Shebang
49. To sort by the keys while maintaining the correlation between the key and its value
ksort()
XOR
DTD
predefined
50. bitwise left shift
predefined
array
<<
$_SESSION[]
Sorry!:) No result found.
Can you answer 50 questions in 15 minutes?
Let me suggest you:
Browse all subjects
Browse all tests
Most popular tests
Major Subjects
Tests & Exams
AP
CLEP
DSST
GRE
SAT
GMAT
Certifications
CISSP go to https://www.isc2.org/
PMP
ITIL
RHCE
MCTS
More...
IT Skills
Android Programming
Data Modeling
Objective C Programming
Basic Python Programming
Adobe Illustrator
More...
Business Skills
Advertising Techniques
Business Accounting Basics
Business Strategy
Human Resource Management
Marketing Basics
More...
Soft Skills
Body Language
People Skills
Public Speaking
Persuasion
Job Hunting And Resumes
More...
Vocabulary
GRE Vocab
SAT Vocab
TOEFL Essential Vocab
Basic English Words For All
Global Words You Should Know
Business English
More...
Languages
AP German Vocab
AP Latin Vocab
SAT Subject Test: French
Italian Survival
Norwegian Survival
More...
Engineering
Audio Engineering
Computer Science Engineering
Aerospace Engineering
Chemical Engineering
Structural Engineering
More...
Health Sciences
Basic Nursing Skills
Health Science Language Fundamentals
Veterinary Technology Medical Language
Cardiology
Clinical Surgery
More...
English
Grammar Fundamentals
Literary And Rhetorical Vocab
Elements Of Style Vocab
Introduction To English Major
Complete Advanced Sentences
Literature
Homonyms
More...
Math
Algebra Formulas
Basic Arithmetic: Measurements
Metric Conversions
Geometric Properties
Important Math Facts
Number Sense Vocab
Business Math
More...
Other Major Subjects
Science
Economics
History
Law
Performing-arts
Cooking
Logic & Reasoning
Trivia
Browse all subjects
Browse all tests
Most popular tests