Declarations and Initializations – Find Output of Program

6. What will be the output of the program?

What will be the output of the program

A. 20
B. 40
C. Error
D. No Output

Correct Answer: A. 20
Advertisement

7. What is the output of the program

Screenshot 1

A. 0
B. 1
C. Error
D. None of these

Correct Answer: B. 1
Advertisement

8. What is the output of the program

Screenshot 1

A. 3
B. 3.14
C. 0
D. 4
E. Compile Error

Correct Answer: E. Compile Error
Advertisement

9. What is the output of the program

Screenshot 2

A. Garbage Values
B. 2, 3, 3
C. 3, 2, 2
D. 0, 0, 0

Correct Answer: D. 0, 0, 0
Advertisement

10. What is the output of the program?

Screenshot 3

A. 3, 2, 515
B. 515, 2, 3
C. 3, 2, 5
D. None of these

Correct Answer: A. 3, 2, 515
Advertisement

Leave A Comment?