Functions – Find Output of Program

6. What will be the output of the program?

Screenshot 2

A. 4, 4
B. 3, 3
C. 6, 6
D. 12, 12

Correct Answer: C. 6, 6

7. What will be the output of the program?

Screenshot 3

A. AB
B. BC
C. CD
D. No output

Correct Answer: B. BC

8. What will be the output of the program?

Screenshot 4

A. 9
B. 10
C. 11
D. 8

Correct Answer: A. 9

9. What will be the output of the program?

Screenshot 6

A. Print 10
B. Print 20
C. Print 1
D. Compile error

Correct Answer: D. Compile error

10. What will be the output of the program?

Screenshot 7

A. 6
B. 1
C. 0
D. -1

Correct Answer: B. 1

Leave A Comment?

15 − 7 =