Dynamic Web Page Development (3350702) MCQs

MCQs of Working with Basic Building Blocks of PHP

Showing 31 to 40 out of 48 Questions
31.

What will be the output of the following PHP code?

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

(a)

onetwo

(b)

one

(c)

nothing

(d)

error

Answer:

Option (d)

32.

What will be the output of the following PHP code?

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

(a)

0

(b)

5

(c)

Nothing

(d)

Error

Answer:

Option (b)

33.

What will be the output of the following PHP code?

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

(a)

Hello 

(b)

Hello world

(c)

Nothing

(d)

Error

Answer:

Option (d)

34.

What will be the output of the following PHP code?

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

(a)

3

(b)

1+2

(c)

Error

(d)

12

Answer:

Option (a)

35.

Which of the below symbols is a newline character?

(નીચેનાં ચિહ્નોમાંથી કયું નવું વાક્ય character છે?)

(a)

 \r

(b)

 \n

(c)

/n

(d)

 /r

Answer:

Option (b)

36.

Which operator is used to check if two values are not equal and of not same data type?

(બે વેલ્યુ સમાન નથી અને સમાન ડેટા ટાઇપનાં નથી તે ચકાસવા માટે કયા ઓપરેટરનો ઉપયોગ થાય છે?)

(a)

!=

(b)

!!!

(c)

!==  

(d)

!!

Answer:

Option (c)

37.

What will be the output of the following PHP code?

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

(a)

11

(b)

12

(c)

10

(d)

error

Answer:

Option (a)

38.

What will be the output of the following PHP code?

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

(a)

0 1 

(b)

0 1 2

(c)

0 1 2 3

(d)

0 1 2 4 5

Answer:

Option (d)

39.

What will be the output of the following PHP code?

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

(a)

24

(b)

3.7

(c)

3.85

(d)

0

Answer:

Option (a)

40.

What will be the output of the following PHP code?

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

(a)

$GREETING

(b)

no output

(c)

PHP is a scripting language

(d)

GREETING

Answer:

Option (b)

Showing 31 to 40 out of 48 Questions