Explore topic-wise MCQs in Testing Subject.

This section includes 657 Mcqs, each offering curated multiple-choice questions to sharpen your Testing Subject knowledge and support exam preparation. Choose a topic below to get started.

1.

_ What will be the output of the following PHP code ?$?

A. 1
B. 0
C. 2
D. no output
Answer» C. 2
2.

_ What will be the output of the following PHP code ?$?

A. testthisthisalso
B. testthis
C. testthisalsothisalso
D. error at line 4
Answer» D. error at line 4
3.

_ What will be the output of the following PHP code ?$?

A. no output
B. error
C. 6
D. 7
Answer» C. 6
4.

_ What will be the output of the following PHP code ?$?

A. 58
B. 59
C. 109
D. 108
Answer» C. 109
5.

_ What will be the output of the following PHP code ?$?

A. 10
B. 0
C. true0
D. true10
Answer» C. true0
6.

__What will be the output of the following PHP code ?__

A. 192
B. 2
C. error
D. 0
Answer» E.
7.

__What will be the output of the following PHP code ?__

A. 5
B. error
C. 6
D. 7
Answer» B. error
8.

__What will be the output of the following PHP code ?__

A. 3
B. 4
C. 5
D. error
Answer» E.
9.

__What will be the output of the following PHP code ?__

A. 012
B. 123
C. 111
D. Error
Answer» B. 123
10.

__What will be the output of the following PHP code ?__

A. Volvo
B. BMW
C. Toyota
D. Error
Answer» D. Error
11.

__What will be the output of the following PHP code ?__

A. redgreen
B. red green
C. 0
D. error
Answer» D. error
12.

__What will be the output of the following PHP code ?__

A. HelloWorld
B. Hello+World
C. 0
D. Error
Answer» D. Error
13.

_What will be the output of the following PHP code ?$?

A. 0
B. 5
C. Nothing
D. Error
Answer» C. Nothing
14.

_What will be the output of the following PHP code ?$?

A. $winner$looser
B. $looser
C. \
D. $looser
Answer» E.
15.

What will be the output of the following PHP code ?$?

A. 4 = 4 + 3 + 1
B. 8
C. 8 = 4 + 3 +1
D. Error
Answer» B. 8
16.

What will be the output of the following PHP code ?$?

A. IF:42
B. No output
C. IF:
D. ERROR
Answer» E.
17.

What will be the output of the following PHP code ?$?

A. true
B. false
C. 1
D. error
Answer» D. error
18.

What will be the output of the following PHP code ?$?

A. This, was, a, bad, idea
B. This was a bad idea
C. Thiswasabadidea
D. Error
Answer» D. Error
19.

What will be the output of the following PHP code ?$?

A. 437
B. 439
C. 349
D. 347
Answer» B. 439
20.

What will be the output of the following PHP code ?$?

A. 0
B. 1
C. $one
D. Error
Answer» E.
21.

What will be the output of the following PHP code ?$?

A. red
B. $color
C. red
D. Error
Answer» C. red
22.

What will be the output of the following PHP code ?$?

A. 0.75
B. 0.05
C. 1.25
D. Error
Answer» D. Error
23.

What will be the output of the following PHP code ?$?

A. 41
B. -4
C. -5
D. 51
Answer» E.
24.

What will be the output of the following PHP code ?$?

A. redredred
B. redred
C. red
D. Error
Answer» D. Error
25.

What will be the output of the following PHP code ?$?

A. 1234567891011121314….infinitely
B. 01234567891011121314…infinitely
C. 1
D. 0
Answer» B. 01234567891011121314‚Äö√Ѭ∂infinitely
26.

What will be the output of the following PHP code ?$?

A. hello
B. infinite loop
C. hihello
D. error
Answer» C. hihello
27.

What will be the output of the following PHP code ?$?

A. 4
B. 2
C. error at line2
D. no output
Answer» D. no output
28.

What will be the output of the following PHP code ?$?

A. 11
B. 12
C. 10
D. error
Answer» B. 12
29.

What will be the output of the following PHP code ?$?

A. 869
B. 742
C. 368
D. error
Answer» B. 742
30.

What will be the output of the following PHP code ?$?

A. 24
B. 3.7
C. 3.85
D. 0
Answer» B. 3.7
31.

What will be the output of the following PHP code ?$?

A. 1010
B. 105
C. 510
D. error
Answer» B. 105
32.

What will be the output of the following PHP code ?$?

A. 1797568
B. no output
C. error
D. 0x6dc0
Answer» B. no output
33.

What will be the output of the following PHP code ?$?

A. 5
B. error
C. 6
D. 7
Answer» D. 7
34.

What will be the output of the following PHP code ?$?

A. 1
B. 0
C. 2
D. 3
Answer» B. 0
35.

What will be the output of the following PHP code ?$?

A. 210
B. 10
C. no output
D. infinite loop
Answer» E.
36.

What will be the output of the following PHP code ?$?

A. 01
B. 11
C. 10
D. Error
Answer» C. 10
37.

What will be the output of the following PHP code ??

A. 5
B. 3
C. 0
D. 1
Answer» B. 3
38.

What will be the output of the following PHP code ??

A. 0.75
B. 0.05
C. 1.25
D. Error
Answer» E.
39.

What will be the output of the following PHP code ??

A. 1010
B. 105
C. 510
D. error
Answer» B. 105
40.

What will be the output of the following PHP code ??

A. $winner/$looser
B. /$looser
C. /
D. $looser
Answer» D. $looser
41.

What will be the output of the following PHP code ?

A. 15
B. 10 + 5
C. $z
D. $x + $y
Answer» C. $z
42.

What will be the output of the following PHP code ?

A. PHP is a scripting language
B. __LINE__
C. 2
D. ERROR
Answer» D. ERROR
43.

What will be the output of the following PHP code ?

A. 1grey
B. grey
C. 0
D. red1grey
Answer» B. grey
44.

What will be the output of the following PHP code ?

A. 43
B. 943
C. 349
D. 439
Answer» E.
45.

What will be the output of the following PHP code ?

A. 4.5
B. 7
C. 3.5
D. Error
Answer» E.
46.

What will be the output of the following PHP code ??>

A. Hello
B. Hello world
C. Nothing
D. Error
Answer» E.
47.

What will be the output of the following PHP code ?

A. Error
B. Hello World
C. Nothing
D. Missing semicolon error
Answer» B. Hello World
48.

What will be the output of the following PHP code ?

A. 012
B. 123
C. 000
D. 111
Answer» D. 111
49.

What will be the output of the following PHP code ?

A. 54321111111….infinitely
B. 555555555…infinitely
C. 54321
D. 5
Answer» B. 555555555‚Äö√Ѭ∂infinitely
50.

What will be the output of the following PHP code ?

A. result is true
B. result is 1
C. error
D. no output
Answer» C. error