This section presents you various set of Mock Tests related to PHP. You can download these sample mock tests at your local machine and solve offline at your convenience. Every mock test is supplied with a mock test key to let you verify the final score and grade yourself.
PHP Mock Test I
Answer : D
Explanation
All of the above options are correct.
Q 2 - Which of the following is correct about PHP?
A - PHP performs system functions, i.e. from files on a system it can create, open, read, write, and close them.
B - PHP can handle forms, i.e. gather data from files, save data to a file, thru email you can send data, return data to the user.
C - You add, delete, modify elements within your database thru PHP.
D - All of the above.
Answer : D
Explanation
All of the above options are correct.
Answer : D
Explanation
All of the above options are correct.
Answer : D
Explanation
All of the above options are correct.
Answer : C
Explanation
Both of the above options are correct.
Answer : C
Explanation
Both of the above options are correct.
Answer : A
Explanation
false! PHP is whitespace insensitive means that it almost never matters how many whitespace characters you have in a row.one whitespace character is the same as many such characters.
Answer : B
Explanation
true! PHP is a case sensitive language.
Answer : D
Explanation
All of the above options are correct.
Answer : D
Explanation
All of the above options are correct.
Answer : A
Explanation
Integers: are whole numbers, without a decimal point, like 4195.
Answer : B
Explanation
Doubles: are floating-point numbers, like 3.14159 or 49.1.
Answer : C
Explanation
Booleans: have only two possible values either true or false.
Answer : D
Explanation
NULL: is a special type that only has one value: NULL.
Answer : A
Explanation
Strings: are sequences of characters, like 'PHP supports string operations.'
Answer : B
Explanation
Arrays: are named and indexed collections of other values.
Answer : C
Explanation
Objects: are instances of programmer-defined classes, which can package up both other kinds of values and functions that are specific to the class.
Answer : D
Explanation
Resources: are special variables that hold references to resources external to PHP [such as database connections].
Answer : D
Explanation
All of the above options are correct.
Answer : D
Explanation
All of the above options are correct.
Answer : D
Explanation
All of the above options are correct.
Answer : C
Explanation
Both of the above options are correct.
Answer : C
Explanation
Both of the above options are correct.
Answer : C
Explanation
Both of the above options are correct.
Answer : C
Explanation
Both of the above options are correct.
Answer Sheet
1 | D |
2 | D |
3 | D |
4 | D |
5 | C |
6 | C |
7 | A |
8 | B |
9 | D |
10 | D |
11 | A |
12 | B |
13 | C |
14 | D |
15 | A |
16 | B |
17 | C |
18 | D |
19 | D |
20 | D |
21 | D |
22 | C |
23 | C |
24 | C |
25 | C |
php_questions_answers.htm
Which of the following is true about PHP variables?
A. All variables in PHP are denoted with a leading dollar sign [$]
B. The value of a variable is the value of its most recent assignment
C. Variables are assigned with the = operator, with the variable on the left hand side and the expression to be evaluated on the right
D. All of the above
Answer: Option D