Strings – Find Output of Program

11. What will be the output of the program ?

Screenshot 1

A. 0
B. 1
C. 2
D. 4

Correct Answer: A. 0

12. What will be the output of the program ?

Screenshot 2

A. 8
B. 0
C. 16
D. Error

Correct Answer: B. 0

13. What will be the output of the program?

Screenshot 3

A. hhe!
B. he c
C. The c
D. Hhec

Correct Answer: A. hhe!

14. What will be the output of the program in 16-bit platform (Turbo C under DOS) ?

Screenshot 4

A. 8, 1, 4
B. 4, 2, 8
C. 4, 2, 4
D. 10, 3, 4

Correct Answer: B. 4, 2, 8

15. What will be the output of the program?

Screenshot 5

A. The string is empty
B. The string is not empty
C. No output
D. 0

Correct Answer: B. The string is not empty

Leave A Comment?

three × 1 =