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. 0.11845976421345
B. 0.23568451142521
C. 0.46364760900081
D. 1
Answer» D. 1
2.

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

A. Hello World!
B. welcome to india
C. This is PHP!
D. MCQ questons
Answer» B. welcome to india
3.

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

A. I am awesome!!
B. const
C. const, I am awesome!!
D. “const”,”I am awesome!”
Answer» B. const
4.

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

A. I am here to spoil this code
B. Error
C. My favourite TV show isI am here to spoil this code
D. None of the mentioned
Answer» C. My favourite TV show isI am here to spoil this code
5.

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

A. I am b
B. I am bI am a
C. Error
D. I am a Error
Answer» E.
6.

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

A. 106
B. 103
C. 104
D. 209
Answer» D. 209
7.

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

A. I am b
B. I am bI am a
C. Error
D. I am a Error
Answer» D. I am a Error
8.

What will be the output of the following PHP code ?

A. Welcome to Narnia
B. greeting
C. GREETING
D. ERROR
Answer» E.
9.

What will be the output of the following PHP code ?

A. Less Than 0
B. Not True
C. No Output
D. None of the Mentioned
Answer» C. No Output
10.

What will be the output of the following PHP code?

A. 3
B. 7
C. 8
D. 10
Answer» C. 8
11.

What will be the output of the following PHP code?

A. 0
B. 1
C. 0.5
D. -0.5
Answer» C. 0.5
12.

What will be the output of the following PHP code?

A. welcome to India
B. welcome to india
C. Welcome to India
D. Welcome to india
Answer» B. welcome to india
13.

What will be the output of the following PHP code?

A. 4
B. 5
C. 2
D. None of the mentioned
Answer» B. 5
14.

What will be the output of the following PHP code?

A. I am b
B. I am bI am a
C. Error
D. I am a Error
Answer» E.
15.

What will be the output of the following PHP code ?

A. Time Pa55
B. Towe Pa55
C. Towe Pass
D. Time Pass
Answer» E.
16.

What will be the output of the following PHP code ?

A. Error
B. 10
C. No Output
D. None of the Mentioned
Answer» D. None of the Mentioned
17.

What will be the output of the following PHP code ?

A. I am here to spoil this code
B. Error
C. my favourite TV show isI am here to spoil this code
D. None of the mentioned
Answer» B. Error
18.

What will be the output of the following PHP code?

A. Hilla Warld
B. Hello World
C. ia
D. eo
Answer» C. ia
19.

What will be the output of the following PHP code?

A. Error
B. 0
C. 42
D. 84
Answer» D. 84
20.

What will be the output of the following PHP code?

A. Error
B. 49
C. 1
D. Sum
Answer» D. Sum
21.

What will be the output of the following PHP code?

A. 1
B. 2
C. 3
D. 4
Answer» E.
22.

What will be the output of the following PHP code?

A. I love my country
B. i love my Country
C. I love my Country
D. I Love My Country
Answer» E.
23.

What will be the output of the following PHP code?span>function one(){ echo " this works"; function two() { echo "this too works"; }}one();two();?>

A. error
B. this works
C. this worksthis too works
D. this works this too works
Answer» D. this works this too works
24.

phpinfo() will display about?1. OS version information2. PHP installation3. Variables4. HTTP headers

A. Option 1
B. Option 2
C. Option 3
D. Option 4
E. All the Above
Answer» F.
25.

What will be the output of the following PHP code ?

A. Returned value from the function : $return_value
B. Error
C. Returned value from the function : 30
D. Returned value from the function :
Answer» D. Returned value from the function :
26.

Output will be:$array = array(0, 1, 2);$array = array_pad($array, -6, ‘NEW’);$

A. Array ( [1] => NEW [2] => NEW [3] => NEW [4] => 0 [5] => 1 [6] => 2 )
B. Array ( [-1] => NEW [-2] => NEW [-3] => NEW [-4] => 0 [-5] => 1 [-6] => 2 )
C. Array ( [0] => NEW [-1] => NEW [-2] => NEW [-3] => 0 [-4] => 1 [-5] => 2 )
D. Array ( [0] => NEW [1] => NEW [2] => NEW [3] => 0 [4] => 1 [5] => 2 )
Answer» E.
27.

What will be the output of the following PHP code ?

A. I
B. You Do Not Talk About Fight Club
C. You Do Not Talk About Kill Bill
D. You Do Not Talk About Pulp Fiction
E. None of the mentioned
Answer» B. You Do Not Talk About Fight Club
28.

Above usleep() function pauses PHP for .usleep(1000000);

A. 1 second
B. 1 microseconds
C. 10 seconds
D. 100 microseconds
Answer» B. 1 microseconds
29.

What will be the output of the following PHP code ?

A. 3
B. $num
C. 5
D. None of the mentioned
Answer» C. 5
30.

¬¨‚Ä . . . . . converts the keys of an array into values and the values into keys.$

A. array_flips()
B. array_transpose()
C. array_trans()
D. array_flip()
Answer» E.
31.

What will be the output of the following PHP code ?

A. 3
B. $num
C. 5
D. None of the mentioned
Answer» D. None of the mentioned
32.

What will be the output of the following PHP code ?

A. o world!
B. Hello world!
C. 111
D. No Output
Answer» B. Hello world!
33.

What will be the output of the following PHP code ?

A. This Works
B. This Too Seems To Work
C. This WorksThis Too Seems To Work
D. ERROR
Answer» D. ERROR