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. 2
B. 1
C. 3
D. no output
Answer» B. 1
2.

What will be the output of the following PHP code ?

A. 11111213
B. 11121213
C. 11111212
D. 11111112
Answer» B. 11121213
3.

What will be the output of the following PHP code ?

A. 5
B. 0
C. 10
D. 1
Answer» E.
4.

What will be the output of the following PHP code ?

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

What will be the output of the following PHP code ?

A. 1
B. no output
C. error
D. 0
Answer» B. no output
6.

What will be the output of the following PHP code ?

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

What will be the output of the following PHP code ?

A. 16
B. 06
C. 15
D. 05
Answer» B. 06
8.

What will be the output of the following PHP code ?

A. echo hello world
B. hello world
C. nothing
D. error
Answer» B. hello world
9.

What will be the output of the following PHP code ?

A. 104
B. 410
C. 1400
D. 4100
Answer» D. 4100
10.

What will be the output of the following PHP code ?

A. test
B. error
C. myObject::CONSTANT
D. no output
Answer» C. myObject::CONSTANT
11.

What will be the output of the following PHP code ?

A. 0.01.0
B. 01
C. No output
D. ERROR
Answer» E.
12.

What will be the output of the following PHP code ?

A. onetwo
B. $one$two
C. one
D. error
Answer» B. $one$two
13.

What will be the output of the following PHP code ?

A. Hello World
B. Hello
C. World
D. HelloWorld
Answer» E.
14.

What will be the output of the following PHP code ?

A. 11
B. 2
C. 0
D. 1
Answer» C. 0
15.

What will be the output of the following PHP code ?

A. red
B. green
C. red green
D. error
Answer» C. red green
16.

What will be the output of the following PHP code ?

A. 0
B. 105
C. 510
D. Error
Answer» C. 510
17.

What will be the output of the following PHP code ?

A. 0
B. 1
C. Nothing
D. Error
Answer» D. Error
18.

What will be the output of the following PHP code ?

A. 4.5
B. 7
C. 3.5
D. Error
Answer» B. 7
19.

What will be the output of the following PHP code ?

A. Hello world
B. echo “Hello world”
C. echo Hello world
D. Error
Answer» E.
20.

What will be the output of the following PHP code ?

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

What will be the output of the following PHP code ?

A. 0
B. 1
C. 2
D. Error
Answer» D. Error
22.

What will be the output of the following PHP code ?

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

What will be the output of the following PHP code ?

A. 5
B. 10
C. 15
D. Error
Answer» C. 15
24.

What will be the output of the following PHP code ?

A. 5
B. 555555555…infinitely
C. 54321
D. error
Answer» C. 54321
25.

What will be the output of the following PHP code ?

A. 1
B. 0
C. error
D. no output
Answer» B. 0
26.

What will be the output of the following PHP code ?

A. 80.5
B. 44
C. 82
D. 42
Answer» E.
27.

What will be the output of the following PHP code ?

A. 000
B. 012
C. Nothing
D. Error
Answer» B. 012
28.

What will be the output of the following PHP code ?

A. 16
B. 06
C. 15
D. 05
Answer» B. 06
29.

What will be the output of the following PHP code ?

A. No 2
B. Yes 1
C. Yes 2
D. No 1
Answer» B. Yes 1
30.

What will be the output of the following PHP code ?

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