Quiz Space

Java Quiz 2: 12 April 2026 (January 2026 term)

Question 1

+6 marksOne correct option

Consider the Java code given below.

What will the output be?

Consider the Java code given below.
  1. A
    Figure from the original question paper
  2. B
    Figure from the original question paper
  3. C
    Figure from the original question paper
  4. D
    Figure from the original question paper

Question 2

+6 marksOne correct option

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 Java code given below that prints the credit points of courses. From among the options, identify the approp
  1. A

    —

  2. B

    —

  3. C

    —

  4. D

    —

Question 3

+6 marksOne correct option

Consider the two Java files given below.

Choose the correct option.

Consider the two Java files given below.
Consider the two Java files given below.
  1. A

    and generate compilation errors.

  2. B

    Only generates compilation error.

  3. C

    and generate compilation errors.

  4. D

    No compilation errors.

12 more questions in this paper

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.

More on the Java Quiz 2 12 Apr 2026 paper

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.

FeatureJava Quiz 2 12 Apr 2026 at a glance
TermJanuary 2026 term
SubjectProgramming Concepts using Java
Course codeBSCS2005
Questions15
Marks100
Duration120 min
MCQ13
MSQ2
Official paperProgramming Concepts Using Java 06 Apr 26
Negative markingNo negative marking.
Updated

Same Quiz 2, other subjects

More Java