Indian Institute of Technology, Madras - BS in Data Science and Applications
Notations :
[Link] shown in green color and with icon are correct.
[Link] shown in red color and with icon are incorrect.
IIT M DIPLOMA AN EXAM QDD2 15 Mar
Question Paper Name :
2026
Subject Name : 2026 Mar15: IIT M AN EXAM QDD2
Creation Date : 2026-03-04 18:18:35
Duration : 120
Total Marks : 710
Display Marks: Yes
Share Answer Key With Delivery Engine : Yes
Actual Answer Key : Yes
Calculator : Scientific
Magnifying Glass Required? : No
Ruler Required? : No
Eraser Required? : No
Scratch Pad Required? : No
Rough Sketch/Notepad Required? : No
Protractor Required? : No
Show Watermark on Console? : Yes
Highlighter : No
Auto Save on Console? Yes
Change Font Color : No
Change Background Color : No
Change Theme : No
Help Button : No
Show Reports : No
Show Progress Bar : No
Group I
Group Number : 1
Group Id : 64065332678
Group Maximum Duration : 0
Group Minimum Duration : 90
Show Attended Group? : No
Edit Attended Group? : No
Break time : 0
Group Marks : 710
Is this Group for Examiner? : No
Examiner permission : Cant View
Show Progress Bar? : No
Revisit allowed for group Instructions? : Yes
Maximum Instruction Time : 0
Minimum Instruction Time : 0
Group Time In : Minutes
Revisit Section : Yes
Action on Revisit Section : View and Edit
Navigate To Group Summary From Last Question? : No
Disable Submit Button During Assessment? : No
Section Selection Time? : 0
No of Optional sections to be attempted : 0
Java
Section Id : 640653129254
Section Number : 1
Section type : Online
Mandatory or Optional : Mandatory
Number of Questions : 16
Number of Questions to be attempted : 16
Section Marks : 100
Display Number Panel : Yes
Section Negative Marks : 0
Group All Questions : No
Enable Mark as Answered Mark for Review and
No
Clear Response :
Section Maximum Duration : 0
Section Minimum Duration : 0
Section Time In : Minutes
Maximum Instruction Time : 0
Sub-Section Number : 1
Sub-Section Id : 640653360288
Question Shuffling Allowed : No
Question Number : 1 Question Id : 6406531951399
Correct Marks : 0
Question Label : Multiple Choice Question
THIS IS QUESTION PAPER FOR THE SUBJECT "DIPLOMA LEVEL : PROGRAMMING CONCEPTS
USING JAVA (COMPUTER BASED EXAM)"
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS
REGISTERED BY YOU)
Options :
6406536344543. Yes
6406536344544. No
Sub-Section Number : 2
Sub-Section Id : 640653360289
Question Shuffling Allowed : Yes
Question Number : 2 Question Id : 6406531951400
Correct Marks : 6
Question Label : Multiple Choice Question
Consider the following Java program.
What is the maximum number of activation records on the stack during the execution of the
program?
Options :
6406536344545. 2
6406536344546. 3
6406536344547. 4
6406536344548. 5
Question Number : 3 Question Id : 6406531951403
Correct Marks : 6
Question Label : Multiple Choice Question
Consider the Java code given below.
Choose the correct option regarding the given code.
Options :
6406536344557. This code generates output:
6406536344558. This code generates output:
6406536344559. This code generates output:
6406536344560. This code generates a compilation error because the method
cannot be overridden
Question Number : 4 Question Id : 6406531951404
Correct Marks : 6
Question Label : Multiple Choice Question
Consider the Java code given below.
Choose the correct option.
Options :
6406536344561. The program generates output:
6406536344562. generates compilation error because a variable of type
cannot refer to an object of type .
6406536344563. generates run time error because there is ambiguity in which
method is being invoked.
6406536344564. The program generates output:
Question Number : 5 Question Id : 6406531951406
Correct Marks : 6
Question Label : Multiple Choice Question
Consider the Java code given below.
Choose the correct option to fill in place of and so that the output is:
Options :
6406536344569.
6406536344570.
6406536344571.
6406536344572.
Question Number : 6 Question Id : 6406531951407
Correct Marks : 6
Question Label : Multiple Choice Question
Consider the Java code given below.
What will the output be?
Options :
6406536344573.
6406536344574.
6406536344575.
6406536344576.
Question Number : 7 Question Id : 6406531951414
Correct Marks : 6
Question Label : Multiple Choice Question
Consider the Java code given below.
Identify the appropriate statements to fill in place of in order to correctly invoke method
inside the while loop.
Options :
6406536344601.
6406536344602.
6406536344603.
6406536344604. Method cannot be invoked from an outside class.
Sub-Section Number : 3
Sub-Section Id : 640653360290
Question Shuffling Allowed : Yes
Question Number : 8 Question Id : 6406531951401
Correct Marks : 7
Question Label : Multiple Choice Question
Consider the Java code given below.
Choose the correct option.
Options :
6406536344549. This program generates compiler error at
Reason: An interface reference cannot be passed as a constructor argument.
6406536344550. This program generates the output:
6406536344551. This program generates the output:
followed by runtime error
Reason: A method inside is invoking inside , whereas
is invoking another method in .
6406536344552. This program generates compiler error at
Reason: A method inside is invoking a method defined in an interface.
Question Number : 9 Question Id : 6406531951402
Correct Marks : 7
Question Label : Multiple Choice Question
Consider the Java code given below.
Choose the correct option.
Options :
6406536344553. Compilation error at because private variable
cannot be accessed without using an accessor method.
6406536344554. The program generates the output:
6406536344555. The program generates the output:
6406536344556. The program generates the output:
Question Number : 10 Question Id : 6406531951405
Correct Marks : 7
Question Label : Multiple Choice Question
Consider the following Java code.
Identify the lines which have errors.
Options :
6406536344565. Line 7 and Line 11
6406536344566. Line 4 and Line 5
6406536344567. Line 15 and Line 20
6406536344568. Line 1 and Line 2
Question Number : 11 Question Id : 6406531951409
Correct Marks : 7
Question Label : Multiple Choice Question
Consider the Java code given below.
Identify the correct option to fill in place of , such that the output is:
Options :
6406536344581.
6406536344582.
6406536344583.
6406536344584.
Question Number : 12 Question Id : 6406531951410
Correct Marks : 7
Question Label : Multiple Choice Question
Consider the Java code given below.
Choose the correct option.
Options :
6406536344585. This code generates the output:
6406536344586. This code generates the output:
6406536344587. generates compilation error because a variable of type
cannot refer to an object of type .
6406536344588. generates runtime error because there is ambiguity in which
method is being invoked.
Question Number : 13 Question Id : 6406531951411
Correct Marks : 7
Question Label : Multiple Choice Question
Consider the Java code given below.
What will the output be?
Options :
6406536344589.
6406536344590.
6406536344591.
6406536344592.
Question Number : 14 Question Id : 6406531951412
Correct Marks : 7
Question Label : Multiple Choice Question
Consider the code given below.
Choose the correct option to fill in place of so that the output is:
Options :
6406536344593.
6406536344594.
6406536344595.
6406536344596.
Question Number : 15 Question Id : 6406531951413
Correct Marks : 7
Question Label : Multiple Choice Question
Consider the Java code given below.
Choose the correct option regarding the above code.
Options :
6406536344597. generates compilation error because the method
is not abstract.
6406536344598. generates compilation error because class
cannot implement two interfaces.
6406536344599. generates compilation error because class is
not declared as abstract.
6406536344600. , and generate compilation errors because the
methods , and are not abstract.
Sub-Section Number : 4
Sub-Section Id : 640653360291
Question Shuffling Allowed : Yes
Question Number : 16 Question Id : 6406531951408
Correct Marks : 8 Max. Selectable Options : 0
Question Label : Multiple Select Question
Consider the Java program below.
Identify the correct option(s) to fill in the blank at , such that the output is:
Options :
6406536344577.
6406536344578.
6406536344579.
6406536344580.