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.
Change Font Color : No
Change Background Color : No
Change Theme : No
Help Button : No
Show Reports : No
Show Progress Bar : No
Java
Section Id : 640653134289
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
Section Maximum Duration : 0
Section Minimum Duration : 0
Section Time In : Minutes
Maximum Instruction Time : 0
Sub-Section Number : 1
Sub-Section Id : 640653373497
Question Shuffling Allowed : No
Question Number : 1 Question Id : 6406532035143 Question Type : MCQ
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 :
6406536627040. Yes
6406536627041. No
Sub-Section Number : 2
Sub-Section Id : 640653373498
Question Shuffling Allowed : Yes
Question Number : 2 Question Id : 6406532035144 Question Type : MCQ
Correct Marks : 6
Question Label : Multiple Choice Question
Consider the Java code given below.
What will the output be?
Options :
6406536627042.
6406536627043.
6406536627044.
6406536627045.
Question Number : 3 Question Id : 6406532035146 Question Type : MCQ
Correct Marks : 6
Question Label : Multiple Choice Question
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.
Options :
6406536627050.
6406536627051.
6406536627052.
6406536627053.
Question Number : 4 Question Id : 6406532035148 Question Type : MCQ
Correct Marks : 6
Question Label : Multiple Choice Question
Consider the two Java files given below.
Choose the correct option.
Options :
6406536627058. and generate compilation errors.
6406536627059. Only
generates compilation error.
6406536627060. and generate compilation errors.
6406536627061. No compilation errors.
Question Number : 5 Question Id : 6406532035150 Question Type : MCQ
Correct Marks : 6
Question Label : Multiple Choice Question
Consider the Java code given below about controlling robot hardware values.
Choose the correct option.
Options :
6406536627066. and generate a compilation error because method
is already defined with the same signature.
6406536627067. and generate a compilation error because method
is already defined with the same signature.
6406536627068. Only generates a compilation error because method is
already defined with the same signature.
6406536627069. This program generates output:
Question Number : 6 Question Id : 6406532035156 Question Type : MCQ
Correct Marks : 6
Question Label : Multiple Choice Question
Consider the Java code given below.
Identify the appropriate option to fill in place of such that the output is:
Options :
6406536627090.
6406536627091.
6406536627092.
6406536627093.
Question Number : 7 Question Id : 6406532035157 Question Type : MCQ
Correct Marks : 6
Question Label : Multiple Choice Question
Consider the code given below.
Choose the correct option.
Options :
6406536627094. generates compilation error because method cannot be
invoked on .
6406536627095. This code generates the output followed by runtime Error at due to
ambiguity in .
6406536627096. This code generates the output:
6406536627097. This code generates the output:
Sub-Section Number : 3
Sub-Section Id : 640653373499
Question Shuffling Allowed : Yes
Question Number : 8 Question Id : 6406532035145 Question Type : MCQ
Correct Marks : 7
Question Label : Multiple Choice Question
Consider the Java code given below.
Choose the correct option to be filled in place of so that the output is:
Options :
6406536627046.
6406536627047.
6406536627048.
6406536627049.
Question Number : 9 Question Id : 6406532035147 Question Type : MCQ
Correct Marks : 7
Question Label : Multiple Choice Question
The function is defined as:
If the specified key is not already associated with a value or is associated with , 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 .
Consider the Java code given below.
Choose the correct option.
Options :
6406536627054. generates a compilation error due to duplicate keys.
6406536627055. The program generates the output:
6406536627056. The program generates the output:
6406536627057. The program generates the output:
Question Number : 10 Question Id : 6406532035149 Question Type : MCQ
Correct Marks : 7
Question Label : Multiple Choice Question
Consider the following Java code.
Choose the correct option when the class is executed as:
Options :
6406536627062. This code generates output:
6406536627063. This code generates AssertionError:
6406536627064. This code generates AssertionError:
6406536627065. This code generates AssertionError:
Question Number : 11 Question Id : 6406532035151 Question Type : MCQ
Correct Marks : 7
Question Label : Multiple Choice Question
Consider the following Java code.
What will the output be?
Options :
6406536627070.
6406536627071.
6406536627072.
6406536627073.
Question Number : 12 Question Id : 6406532035152 Question Type : MCQ
Correct Marks : 7
Question Label : Multiple Choice Question
Consider the Java code given below.
Choose the correct option to fill in place of so that the output is:
Please note the following methods from types and :
: Removes the object at the top of this stack and returns it.
: Retrieves and removes the head of this deque, or returns null if empty.
: Retrieves, but does not remove, the head of this deque, or returns null if empty.
Options :
6406536627074.
6406536627075.
6406536627076.
6406536627077.
Question Number : 13 Question Id : 6406532035153 Question Type : MCQ
Correct Marks : 7
Question Label : Multiple Choice Question
Consider the code given below about an aircraft maintenance record.
What will the output be?
Options :
6406536627078.
6406536627079.
6406536627080.
6406536627081.
Question Number : 14 Question Id : 6406532035155 Question Type : MCQ
Correct Marks : 7
Question Label : Multiple Choice Question
Consider the following Java code that uses chained exceptions in the context of a sports match
analysis system.
What can the output of this code be?
Options :
6406536627086.
6406536627087.
6406536627088.
6406536627089.
Sub-Section Number : 4
Sub-Section Id : 640653373500
Question Shuffling Allowed : Yes
Question Number : 15 Question Id : 6406532035154 Question Type : MSQ
Correct Marks : 8 Max. Selectable Options : 0
Question Label : Multiple Select Question
Consider the Java code given below that should print the names of individuals whose BMI is
between 18 and 25 (both inclusive).
Choose the correct option(s) to fill in place of to obtain the right answer.
Options :
6406536627082.
6406536627083.
6406536627084.
6406536627085.
Sub-Section Number : 5
Sub-Section Id : 640653373501
Question Shuffling Allowed : Yes
Question Number : 16 Question Id : 6406532035158 Question Type : MSQ
Correct Marks : 7 Max. Selectable Options : 0
Question Label : Multiple Select Question
Consider the code given below. maps each element of to its
frequency of occurrence in list.
Identify the appropriate option(s) to fill in the blank at , such that the output is:
Options :
6406536627098.
6406536627099.
6406536627100.
6406536627101.