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. red1
B. red 1
C. 0
D. 1
Answer» E.
2.

*/*_What will be the output of the following PHP code ??

A. 3
B. 4
C. 6
D. Error
Answer» E.
3.

*/*_What will be the output of the following PHP code ??

A. Hello World
B. Bye
C. Hello worldBye
D. Error
Answer» B. Bye
4.

*/*_What will be the output of the following PHP code ??

A. red green
B. red
C. green
D. error
Answer» E.
5.

*/*_What will be the output of the following PHP code ??

A. 0
B. Nothing
C. True
D. Error
Answer» C. True
6.

*/*_What will be the output of the following PHP code ??

A. 1.75
B. 0.875
C. 3.5
D. Error
Answer» C. 3.5
7.

*/*_What will be the output of the following PHP code ??

A. Hello world
B. Hello world in italics
C. Nothing
D. Error
Answer» C. Nothing
8.

*/*_What will be the output of the following PHP code ??

A. 000
B. 012
C. 123
D. Error
Answer» C. 123
9.

*/*_What will be the output of the following PHP code ??

A. 00000000000000000000….infinitely
B. -1-1-1-1-1-1-1-1-1-1…infinitely
C. no output
D. error
Answer» B. -1-1-1-1-1-1-1-1-1-1‚Äö√Ѭ∂infinitely
10.

*/*_What will be the output of the following PHP code ??

A. 4hello4hello4hello4hello4hello…..infinite
B. 5hello5hello5hello5hello5hello…..infinite
C. no output
D. error
Answer» B. 5hello5hello5hello5hello5hello‚Äö√Ѭ∂..infinite
11.

*/*_What will be the output of the following PHP code ??

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

*/*_What will be the output of the following PHP code ??

A. no output
B. true 23
C. true 22
D. true 33
Answer» C. true 22
13.

*/*_What will be the output of the following PHP code ??

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

*/*_What will be the output of the following PHP code ??

A. 02
B. 12
C. 01
D. 21
Answer» B. 12
15.

*/*_What will be the output of the following PHP code ??

A. 20
B. true0
C. 0
D. true20
Answer» C. 0
16.

*/*_What will be the output of the following PHP code ??

A. 1
B. 0
C. 2
D. 3
Answer» E.
17.

*/*_What will be the output of the following PHP code ??

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

*/*_What will be the output of the following PHP code ??

A. no output
B. error
C. 5
D. 0
Answer» D. 0
19.

*/*_What will be the output of the following PHP code ??

A. 4.25
B. 3.25
C. -3.25
D. -4.25
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» B. 0.05
21.

*/*_What will be the output of the following PHP code ??

A. 1
B. 0
C. 0.5
D. Error
Answer» E.
22.

*/*_What will be the output of the following PHP code ??

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

*/*_What will be the output of the following PHP code ??

A. 7
B. 9
C. 0
D. Error
Answer» C. 0
24.

*/*_What will be the output of the following PHP code ??

A. I have a value
B. I have a valueI have a value
C. ERROR
D. I have a valueNEW_GOO_NAME_CONSTANTS
Answer» C. ERROR
25.

*/*_What will be the output of the following PHP code ??

A. thiswasabadidea
B. this was a bad idea
C. nothing
D. error
Answer» B. this was a bad idea
26.

*/*_What will be the output of the following PHP code ??

A. $z
B. 15
C. 8
D. 1
Answer» D. 1
27.

*/*_What will be the output of the following PHP code ??

A. redgreen
B. red green
C. 0
D. 1
Answer» D. 1
28.

*/*_What will be the output of the following PHP code ??

A. red red
B. red
C. error
D. nothing
Answer» D. nothing
29.

*/*_What will be the output of the following PHP code ??

A. onetwo
B. one
C. nothing
D. error
Answer» E.
30.

*/*_What will be the output of the following PHP code ??

A. This is India
B. This is India
C. This is
D. Error
Answer» C. This is
31.

*/*_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
32.

%_What will be the output of the following PHP code ?_%

A. 1
B. 0
C. 2
D. 3
Answer» E.
33.

%_What will be the output of the following PHP code ?_%

A. 1
B. true
C. false
D. 0
Answer» B. true
34.

%_What will be the output of the following PHP code ?_%

A. onetwo
B. one
C. nothing
D. error
Answer» E.
35.

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

A. $z
B. 15
C. 8
D. 1
Answer» D. 1
36.

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

A. I have a value
B. I have a valueI have a value
C. ERROR
D. I have a valueNEW_GOO_NAME_CONSTANTS
Answer» C. ERROR
37.

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

A. thiswasabadidea
B. this was a bad idea
C. nothing
D. error
Answer» B. this was a bad idea
38.

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

A. This is India
B. This is India
C. This is
D. Error
Answer» C. This is
39.

_ 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
40.

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

A. redgreen
B. red green
C. 0
D. 1
Answer» D. 1
41.

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

A. 7
B. 9
C. 0
D. Error
Answer» C. 0
42.

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

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

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

A. 1
B. 0
C. 0.5
D. Error
Answer» E.
44.

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

A. red red
B. red
C. error
D. nothing
Answer» D. nothing
45.

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

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

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

A. 4.25
B. 3.25
C. -3.25
D. -4.25
Answer» E.
47.

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

A. # Hello world
B. Hello world# Hello world
C. Hello world
D. Error
Answer» B. Hello world# Hello world
48.

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

A. 012
B. 123
C. Nothing
D. Error
Answer» D. Error
49.

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

A. 1234567891011121314….infinitely
B. 01234567891011121314…infinitely
C. no output
D. error
Answer» D. error
50.

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

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