Question 15
Consider the code given below.
Choose the correct option.
The code always prints 2000.
The code prints any number in the range 1000 to 2000
The code prints any number in the range 0 to 1000
The code always prints 1000.
Consider the code given below.
Choose the correct option.
The code always prints 2000.
The code prints any number in the range 1000 to 2000
The code prints any number in the range 0 to 1000
The code always prints 1000.
Correct answer
The code prints any number in the range 1000 to 2000
Question 15 of 23 in the IIT Madras BS Programming Concepts using Java (Java) End Term paper sat on 10 May 2026, in the January 2026 term (Programming Concepts Using Java 06 May 26). It carries 4 marks.