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 ______ for search engines or catalogued pages or pages that would be bookmarked.
GET
Shebang
$_GET[]
Error
2. Leading 0x: 0x13F or 0xA23
arsort()
Hex
rand()
date()
3. Returns a string with backslashes in front of predefined characters
Array
addslashes()
Error
!= inequality
4. _______ is a comparison operator
asort()
GET
mysql_fetch_array()
!= inequality
5. Define(NAME,value)
Constant
chop()
Array
substr_count()
6. collection of binary data
curly braces; ${$total}
error_reporting (0)
string
Warning
7. The three types of loops in PHP are: for - while - ____.
foreach
boolean
arsort()
define()
8. returns the number of matches found by a given search string under this format...
preg_match()
isset()
curly braces
Magic Constant
9. bitwise left shift
<<
curly braces
predefined
float
10. Used to find the length of a string
indexed array
is_numeric()
string
strlen()
11. The four main error types are:Notice - Warning - ________ and Error.
SEO
$$
htmlspecialchars()
Parse error
12. bitwise right shift
count()
>>
HTML
underscores
13. To determine the amount of elements in an array
the period; .
array()
count()
Parse error
14. What You See Is What You Get
WYSIWYG
single quotes
Error
XML
15. _________ can be used in conditional statements to set precedence
parentheses
numbers
ksort()
reassign
16. Shorthand used to increment and decrement
strlen()
+
wordwrap()
$var++ and $var
17. Returns a character from a specified ASCII value
chr()
<?php
associative array
Array
18. $_POST and $_GET are ________ variables.
Constant
switch
statement
predefined
19. print $_SERVER will _____ work if you use the print function on arrays.
+= or -= or *= or /=
array
not
&
20. Active Server Pages
ASP
define()
function
open source
21. Operators used to operate and assign
sql
+= or -= or *= or /=
sort()
index
22. Online applications and resources which are available to the general public with very few restrictions
mysql_fetch_object()
open source
asort()
round() Function
23. addition
fopen()
ceil()
ASP
+
24. Function used to find the absolute value of a number or numeric variable
<<
POST
abs()
precedence
25. This error arises from misusing a function.
Warning
chop()
$varname[key]
reassign
26. Used to find the amount of words in a string.
getrandmax()
+= or -= or *= or /=
SEO
str_word_count()
27. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.
empty()
error_reporting (E_ALL & -E_NOTICE)
array_merge()
sql
28. To reorganise the array randomly
rsort()
shuffle()
not
$_GET[]
29. any programing language where the script is parsed on the server
server-side programing
the period; .
curly braces; ${$total}
predefined
30. Function used to round down to the lowest integer
floor()
preg_split()
predefined
numbers
31. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.
error_reporting (E_ALL | E_STRICT)
$_REQUEST
function
general
32. A data structure that can hold a number of items of data of the same type eg. a list of names
Parse error
numbers
the dollar sign $
array
33. TRUE or FALSE
boolean
PHP
strtok()
isset()
34. Creates a pointer to a file with the declared mode (read - write -etc.).
open source
sql
client-side programing
fopen()
35. Use ________ to have multiple quotations in one string
not
addslashes()
superglobal
the escape character ''
36. To reset an array _______ the array() function to the array
floor()
the period; .
reassign
0
37. standard notation
decimal
drop
preg_replace()
$dbc = mysql_connect(hostname, username, password)
38. Function that contains the highest value that rand() can have randomly
getrandmax()
rand()
int
DTD
39. To sort values of an array in reversed order
arsort()
rsort()
ASP
error_reporting (E_ALL | E_STRICT)
40. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.
array()
trim()
predefined
preg_split()
41. Function used to round up to the highest integer
ceil()
server-side programing
==
precedence
42. Used to check if a variable has a valid numerical value; strings with numerical values pass.
is_numeric()
superglobal
underscores
substr_count()
43. To get over quotation marks while using arrays
<<
Hex
curly braces
ASP
44. equivalence
preg_replace()
unset()
==
$varname[key]
45. bitwise AND
==
curly braces
shuffle()
&
46. Similar to mysql_fetch_array() - but cannot be accessed by integer offset
E_STRICT
mysql_fetch_object()
AJAX
wordwrap()
47. EXtensible Markup Language
XML
===
predefined variable
Parse error
48. a positive or negative number
==
numbers
preg_match()
integer
49. An array whose keys are numbers.
drop
the dollar sign $
indexed array
sort()
50. container of ordered data elements
+
error_reporting (E_ALL | E_STRICT)
Array
HTTP
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