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. To assign array element values to individual variables
<<
nl2br()
boolean
list()
2. _______ is a comparison operator
AJAX
ceil()
statement
!= inequality
3. The concatenation operator?
rand()
the period; .
SEO
bin2hex()
4. To sort the values while maintaining the correlation between each value and its key
foreach
addcslashes()
?>
asort()
5. Creates a pointer to a file with the declared mode (read - write -etc.).
count()
fopen()
1
predefined
6. PHP has two conditional: if and ______.
$array[] = item
switch
number_format()
defined()
7. Used to find the amount of words in a string.
the escape character ''
<<
str_word_count()
bin2hex()
8. $_SERVER is a ________ variable.
predefined
$$
strip_tags()
foreach loop
9. The concatenation assignment operator?
.=
Magic Constant
array_merge()
preg_match()
10. Control structure that continue exit - they perform specific statements for a determined number of iterations.
$var++ and $var
array_merge()
loops
XOR
11. does a certain action when called upon
function
general
rand()
trim()
12. To iterate over the values of an array
$_GET[]
empty()
Object
for ($i = 0; $i < count($array); $i++) {statement(s);}
13. ___________ can be used with substr() to count backward
negative numbers
addslashes()
array()
floor()
14. The syntax for connecting to a database
$dbc = mysql_connect(hostname, username, password)
Hex
parentheses
Notice
15. To set up error reporting
chr()
$_REQUEST
?>
function error_reporting()
16. $_POST and $_GET are ________ variables.
abs()
mysql_fetch_object()
HTML
predefined
17. This fatal error arises from memory allocation problem.
array()
Error
defined()
general
18. To iterate over the keys and values of an array
?>
foreach loop
loops
round() Function
19. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.
mysql_fetch_object()
crypt()
XML
superglobal
20. To get over quotation marks while using arrays
html_entity_decode()
addslashes()
curly braces
boolean
21. An array of variables passed with <input /> data
echo
$_POST[]
$var++ and $var
!= inequality
22. standard notation
decimal
trim()
Warning
define()
23. What You See Is What You Get
WYSIWYG
<<
chop()
sql
24. bitwise right shift
predefined variable
>>
array()
indexed array
25. Alias of rtrim()
fopen()
underscores
chop()
Parse error
26. A conditional or loop is a ________________.
crypt()
boolean
associative array
control structure
27. An array of variables passed in the URL
variable
$_GET[]
<?php
Array
28. To reorganise the array randomly
shuffle()
statement
parentheses
single quotes
29. a line of information that can be stored in a variable or used in a function or statement
urlencode()
shuffle()
htmlspecialchars()
string
30. The array that stores variables specific to a user's visit
$_GET[]
mysql_close($dbc)
$_SESSION[]
double quotes
31. To remove all HTML and PHP tags.
error_reporting (0)
strip_tags()
$_SESSION[]
function error_reporting()
32. equivalence
floor()
control structure
==
index
33. Hyper Text Transfer Protocol
reassign
define()
bin2hex()
HTTP
34. any programing language where the user must support the language the script is written in
$dbc = mysql_connect(hostname, username, password)
error_reporting (E_ALL & -E_NOTICE)
client-side programing
general
35. addition
ksort()
date()
int
+
36. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.
control structure
nl2br()
PHP
open source
37. Asynchronous Javascript And XML
null
AJAX
string
html_entity_decode()
38. TRUE or FALSE
define()
$_POST[]
octal
boolean
39. To sort the values while maintaining the correlation between each value and its key - in reversed order
arsort()
foreach
not
numbers
40. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.
include() and require()
Parse error
XOR
predefined variable
41. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
mysql_fetch_object()
array()
0
HTTP
42. a database which is best supported by PHP
html_entity_decode()
mysql
decimal
reassign
43. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update
1
isset()
drop
echo
44. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
Notice
trim()
single quotes
bin2hex()
45. Use ______ when there are no variables in the string
single quotes
null
double quotes
count()
46. Leading 0x: 0x13F or 0xA23
Hex
variable
$var++ and $var
loops
47. ____ or key is referred to for a value within an array.
index
addslashes()
string
+
48. Tag to begin a php script
general
the period; .
include() and require()
<?php
49. signed floating-point value
foreach
float
$_GET[]
indexed array
50. The output of var_export((float)array(0));
the dollar sign $
loops
1
mysql
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