uiz Space

May 2026 term · Programming Concepts using Java · BSCS2005

Programming Concepts using Java End Term: 13 September 2026, Set 1 (May 2026 term)

The IIT Madras BS Programming Concepts using Java (Java) End Term paper sat on 13 Sept 2026, in the May 2026 term, set 1: 15 questions for 57 marks in 180 minutes. Every question is below with its answer. Take it as a timed mock test to be marked, or read it through first.

Questions
15
Marks
57
Duration
180 min
MCQ
14
MSQ
1

Updated

Official paper: Programming Concepts Using Java 13 Sep 26 (Session 2) · No negative marking.

Question 1

+4 marksOne correct option

Consider the Java code given below.

Immediately after the execution of Line 8, the activation record of which method is at the top of the stack of activation records?

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • B

Question 2

+4 marksOne correct option

Consider the code given below.

Choose the correct option regarding the code.

  1. A
  2. B
  3. C

    The code generates the output:

    (A figure from the original paper is missing from the source site.)

  4. D
Show answer

Correct answer

  • C

    The code generates the output:

    (A figure from the original paper is missing from the source site.)

Question 3

+4 marksOne correct option

Consider the Java code given below.

Choose the correct option.

  1. A
  2. B
  3. C
  4. D

    This program generates output:

    (A figure from the original paper is missing from the source site.)

Show answer

Correct answer

  • C

Question 4

+4 marksOne correct option

Consider the Java code given below.

What will the output be?

  1. A

    This program generates the output:

    (A figure from the original paper is missing from the source site.)

  2. B

    This program generates the output:

    (A figure from the original paper is missing from the source site.)

  3. C

    This program generates the output:

    (A figure from the original paper is missing from the source site.)

  4. D

    This program generates the output:

    (A figure from the original paper is missing from the source site.)

Show answer

Correct answer

  • A

    This program generates the output:

    (A figure from the original paper is missing from the source site.)

Question 5

+4 marksOne correct option

Consider the code given below.

What will the output be?

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • D

Question 6

+4 marksOne correct option

What will the output be?

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • B

Question 7

+4 marksOne correct option

Choose the correct option.

  1. A

    This program generates the output:

    (A figure from the original paper is missing from the source site.)

  2. B

    This program generates the output:

    (A figure from the original paper is missing from the source site.)

  3. C
  4. D

    (A figure from the original paper is missing from the source site.)

Show answer

Correct answer

  • B

    This program generates the output:

    (A figure from the original paper is missing from the source site.)

Question 8

+4 marksOne correct option

Consider the Java code given below.

Choose the correct option.

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • C

Question 9

+4 marksOne correct option
  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • C

Question 10

+4 marksOne correct option

Choose the correct option.

  1. A
  2. B

    This program generates the output:

    (A figure from the original paper is missing from the source site.)

  3. C

    This program generates the output:

    (A figure from the original paper is missing from the source site.)

  4. D

    This program generates the output:

    (A figure from the original paper is missing from the source site.)

Show answer

Correct answer

  • C

    This program generates the output:

    (A figure from the original paper is missing from the source site.)

Question 11

+5 marksOne correct option

Consider the Java code given below.

  1. A
  2. B
  3. C
  4. D

    All of these.

Show answer

Correct answer

  • C

Question 12

+5 marksOne correct option

If the specified key is not already associated with a value or is associated with null, associates it with the given non-null value. Otherwise, replaces the associated value with the results of the given remapping function, or removes if the result is null. Consider the code given below that uses the merge method to merge two maps, and answer the question that follows.

Choose the correct option regarding the code.

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • A

Question 13

+5 marksOne correct option

Consider the Java code given below.

Which of the following is NOT true about the given code?

  1. A
  2. B

    The program may generate the output:

    (A figure from the original paper is missing from the source site.)

  3. C

    The program may generate the output:

    (A figure from the original paper is missing from the source site.)

  4. D

    The program may generate the output:

    (A figure from the original paper is missing from the source site.)

Show answer

Correct answer

  • A

Question 14

+5 marksOne correct option

Consider the following Java code and choose the correct option.

  1. A
  2. B
  3. C

    This program generates output:

    (A figure from the original paper is missing from the source site.)

  4. D

    This program generates output:

    (A figure from the original paper is missing from the source site.)

Show answer

Correct answer

  • A

Question 15

+5 marksOne or more correct options

Consider the Java code given below.

Choose the correct option(s).

Select all that apply.

  1. A
  2. B
  3. C
  4. D

    The program may not generate any output.

Show answer

Correct answers

  • C
  • D

    The program may not generate any output.