Which of the following is correct true about php variables

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

Question NumberAnswer Key
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

Which of the following is true about PHP variables?

Q 9 - Which of the following is true about php variables? A - All variables in PHP are denoted with a leading dollar sign [$].

Which of the following is the correct way of defining a variable in PHP?

15] Which of the following is the correct way of defining a variable in PHP? Answer: [b] $variable_name = value; Description: In PHP, a variable is declared using a $ sign followed by the variable name.

Which of the following is correct about constants vs variables in PHP Mcq?

Q 3 - Which of the following is correct about constants vs variables in PHP? A - Constants may be defined and accessed anywhere without regard to variable scoping rules.

Which are correct variable names in PHP program?

Rules for PHP variables:.
A variable starts with the $ sign, followed by the name of the variable..
A variable name must start with a letter or the underscore character..
A variable name cannot start with a number..
A variable name can only contain alpha-numeric characters and underscores [A-z, 0-9, and _ ].

Chủ Đề