Dynamic Web Page Development (3350702) MCQs

MCQs of Working with Basic Building Blocks of PHP

Showing 41 to 48 out of 48 Questions
41.

A function in PHP which starts with _____ (double underscore) is known as _______ .

(PHP માં જે __(ડબલ અન્ડરસ્કોર) થી શરૂ થાય છે તે _______ તરીકે ઓળખાય છે.)

(a)

 Inbuilt Function

(b)

Default Function

(c)

Magic Function

(d)

User Defined Function

Answer:

Option (c)

42.

What will be the output of the following PHP code?

(નીચેના PHP કોડનું આઉટપુટ શું હશે?)

(a)

 PHP is a scripting language

(b)

__LINE__

(c)

2

(d)

ERROR

Answer:

Option (c)

43.

Which of the conditional statements is/are supported by PHP?

i) if statements

ii) if-else statements

iii) if-elseif statements

iv) switch statements

કયુ conditional statements PHP દ્વારા સપોર્ટેડ છે?

i) if statements

ii) if-else statements

iii) if-elseif statements

iv) switch statements

(a)

Only i)

(b)

i), ii) and iv)

(c)

ii), iii) and iv)

(d)

 i), ii), iii) and iv)

Answer:

Option (d)

44.

What will be the output of the following PHP code?

(નીચેના PHP કોડનું આઉટપુટ શું હશે?)

(a)

how are u

(b)

hi

(c)

error

(d)

no output

Answer:

Option (a)

45.

What will be the output of the following PHP code?

(નીચેના PHP કોડનું આઉટપુટ શું હશે?)

(a)

hello

(b)

hi

(c)

no output

(d)

error

Answer:

Option (c)

46.

What will be the output of the following PHP code?

(નીચેના PHP કોડનું આઉટપુટ શું હશે?)

(a)

hihellohi1

(b)

hello

(c)

hihi1

(d)

hi1

Answer:

Option (b)

47.

Which of the looping statements is/are supported by PHP?

i) for loop

ii) while loop

iii) do-while loop

iv) foreach loop

PHP દ્વારા કયા લૂપીંગ statement સપોર્ટેડ છે?

i) for loop

ii) while loop

iii) do-while loop

iv) foreach loop

(a)

i) and ii)

(b)

i), ii) and iii)

(c)

i), ii), iii) and iv)

(d)

Only iv)

Answer:

Option (c)

48.

What will be the output of the following PHP code?

(નીચેના PHP કોડનું આઉટપુટ શું હશે?)

(a)

 infinite loop

(b)

hi

(c)

no output

(d)

error

Answer:

Option (d)

Showing 41 to 48 out of 48 Questions