Question 1
Consider the Java code given below.
What will the output be?
Consider the Java code given below.
What will the output be?




Consider the Java code given below that prints the credit points of courses. From among the options, identify the appropriate function header for the function that takes as input a list of courses and prints their credit points.
Choose the correct option.
—
—
—
—
Consider the two Java files given below.
Choose the correct option.
and generate compilation errors.
Only generates compilation error.
and generate compilation errors.
No compilation errors.
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 2 paper sat on 12 Apr 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 2 12 Apr 2026 at a glance |
|---|---|
| Term | January 2026 term |
| Subject | Programming Concepts using Java |
| Course code | BSCS2005 |
| Questions | 15 |
| Marks | 100 |
| Duration | 120 min |
| MCQ | 13 |
| MSQ | 2 |
| Official paper | Programming Concepts Using Java 06 Apr 26 |
| Negative marking | No negative marking. |
| Updated |