Question 1
Consider the following Java program.
What is the maximum number of activation records on the stack during the execution of the program?
2
3
4
5
Consider the following Java program.
What is the maximum number of activation records on the stack during the execution of the program?
2
3
4
5
Consider the Java code given below.
Choose the correct option regarding the given code.
This code generates output:

This code generates output:

This code generates output:

This code generates a compilation error because the method cannot be overridden
Consider the Java code given below.
Choose the correct option.
The program generates output:

generates compilation error because a variable of type cannot refer to an object of type .
generates run time error because there is ambiguity in which method is being invoked.
The program generates output:

Sign in with Google — it is free — to see every question with its answer and explanation, practise it in learning mode, or take it as a timed mock test.
The IIT Madras BS Programming Concepts using Java (Java) Quiz 1 paper sat on 15 Mar 2026, in the January 2026 term: 15 questions for 100 marks in 120 minutes. The first 3 questions are below. Sign in with Google — it is free — to see the whole paper with its answers and explanations, in learning mode or as a timed mock test.
| Feature | Java Quiz 1 15 Mar 2026 at a glance |
|---|---|
| Term | January 2026 term |
| Subject | Programming Concepts using Java |
| Course code | BSCS2005 |
| Questions | 15 |
| Marks | 100 |
| Duration | 120 min |
| MCQ | 14 |
| MSQ | 1 |
| Official paper | Programming Concepts Using Java 15 Mar 26 |
| Negative marking | No negative marking. |
| Updated |