0% found this document useful (0 votes)
2 views22 pages

Java

The document outlines an online exam structure for a Diploma Level Programming Concepts using Java course at the Indian Institute of Technology, Madras. It includes details such as the number of questions, types of questions (MCQ and MSQ), and instructions for the exam. Each question has specific options and marks associated with it, along with guidelines for confirming the subject on the hall ticket.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views22 pages

Java

The document outlines an online exam structure for a Diploma Level Programming Concepts using Java course at the Indian Institute of Technology, Madras. It includes details such as the number of questions, types of questions (MCQ and MSQ), and instructions for the exam. Each question has specific options and marks associated with it, along with guidelines for confirming the subject on the hall ticket.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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 : 640653140999
Section Number : 1
Section type : Online
Mandatory or Optional : Mandatory
Number of Questions : 16
Number of Questions to be attempted : 16
Section Marks : 50
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 : 640653396260
Question Shuffling Allowed : No

Question Number : 1 Question Id : 6406532158900 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 :
6406537022706. Yes
6406537022707. No
Sub-Section Number : 2
Sub-Section Id : 640653396261
Question Shuffling Allowed : Yes

Question Number : 2 Question Id : 6406532158901 Question Type : MSQ


Correct Marks : 4 Max. Selectable Options : 0
Question Label : Multiple Select Question
Which of the following statement(s) is/are true regarding activation records used during function
calls?
Options :
6406537022708. An activation record is removed from the stack immediately after a local
variable is declared.
6406537022709. Local variables of a function are typically stored inside its activation record.
6406537022710. A return address is stored in the activation record so that control can return to
the caller after the execution of the called function.
6406537022711. All activation records in the stack correspond only to recursive function calls.
6406537022712. When a function calls another function, the control link in the callee's
activation record points to the activation record of the caller.
Sub-Section Number : 3
Sub-Section Id : 640653396262
Question Shuffling Allowed : Yes

Question Number : 3 Question Id : 6406532158902 Question Type : MCQ


Correct Marks : 3
Question Label : Multiple Choice Question
Consider the Java code given below.
Choose the correct option to fill in the so that the output is:

Options :

6406537022713.

6406537022714.

6406537022715.
6406537022716.

Question Number : 4 Question Id : 6406532158904 Question Type : MCQ


Correct Marks : 3
Question Label : Multiple Choice Question
Consider the Java code given below.

Which of the following statements is FALSE?


Options :

6406537022721. generates compilation error because the method


cannot be overridden.

6406537022722. generates compilation error because variable

cannot be accessed in class .

6406537022723. generates compilation error because a variable of type

cannot refer to an object of type .

6406537022724. generates compilation error because a variable of type

cannot refer to an object of type .

Question Number : 5 Question Id : 6406532158906 Question Type : MCQ


Correct Marks : 3
Question Label : Multiple Choice Question
Consider the Java code given below.
Choose the correct option.
Options :

6406537022729. generates compilation error because the class is not


declared as abstract.

6406537022730. generates compilation error because of type cannot

invoke method .

6406537022731. This code generates the output:

6406537022732. This code generates the output:

Question Number : 6 Question Id : 6406532158907 Question Type : MCQ


Correct Marks : 3
Question Label : Multiple Choice Question
Consider the Java code given below.

Choose the correct option regarding the output produced by the code.
Options :

6406537022733.

6406537022734.

6406537022735.

6406537022736.

Question Number : 7 Question Id : 6406532158908 Question Type : MCQ


Correct Marks : 3
Question Label : Multiple Choice Question
What is the output of the following code?
Options :
6406537022737. 12
6406537022738. 18
6406537022739. 9
6406537022740. 15

Question Number : 8 Question Id : 6406532158910 Question Type : MCQ


Correct Marks : 3
Question Label : Multiple Choice Question
Consider the Java program below.
Choose the correct option regarding the output of the code.
Options :

6406537022745. This code generates output:

6406537022746. This code generates output:

6406537022747. This code generates output:

6406537022748. This code generates a compile time error.

Question Number : 9 Question Id : 6406532158911 Question Type : MCQ


Correct Marks : 3
Question Label : Multiple Choice Question
Consider the following Java code.
Identify the correct option for the code given above.
Options :
6406537022749. This code generates output:

6406537022750. This code generates output:


6406537022751. This code generates a compile time error, since the implementations of

from and are in conflict with each other.

6406537022752. This code generates a compile time error since is not implemented in

class

Question Number : 10 Question Id : 6406532158912 Question Type : MCQ


Correct Marks : 3
Question Label : Multiple Choice Question
Consider the following Java code.

What will the output be?


Options :
6406537022753.
6406537022754.

6406537022755.

6406537022756.

Question Number : 11 Question Id : 6406532158913 Question Type : MCQ


Correct Marks : 3
Question Label : Multiple Choice Question
Consider the Java code given below.
Choose the correct option.
Options :

6406537022757. This program generates compiler error at

Reason: An object of cannot be created inside method because it uses an

object of in its constructor.

6406537022758. This program generates the output:

followed by runtime error

Reason: A method inside class is invoking method inside class ,

whereas is invoking another method in class .


6406537022759. This program generates compiler error at

Reason: A method inside class is invoking method inside class ,

whereas is invoking another method in class .

6406537022760. This program generates the output:

Sub-Section Number : 4
Sub-Section Id : 640653396263
Question Shuffling Allowed : Yes

Question Number : 12 Question Id : 6406532158903 Question Type : MCQ


Correct Marks : 4
Question Label : Multiple Choice Question
Consider the code given below.
Choose the correct option.
Options :

6406537022717. generates compilation error because a variable of type

cannot refer to an object of type .

6406537022718. This code generates the below output followed by runtime error at

because there is ambiguity in which method is being invoked.

6406537022719. This code generates the output:

6406537022720. This code generates the output:

Question Number : 13 Question Id : 6406532158905 Question Type : MCQ


Correct Marks : 4
Question Label : Multiple Choice Question
Consider the code given below that checks whether two software modules are the same. Method

is overridden to compare two objects as follows.

If two modules have the same and , then they are considered the same.
Choose the correct option to fill in place of so that the output is:

Options :

6406537022725.

6406537022726.

6406537022727.
6406537022728.

Question Number : 14 Question Id : 6406532158914 Question Type : MCQ


Correct Marks : 4
Question Label : Multiple Choice Question
Consider the code given below.
Identify the appropriate statement to fill in the blank at , such that the output is:
Options :

6406537022761.

6406537022762.

6406537022763.

6406537022764.

Question Number : 15 Question Id : 6406532158915 Question Type : MCQ


Correct Marks : 4
Question Label : Multiple Choice Question
Consider the Java code given below.
Identify the appropriate option to fill in the blank at line:1 such that output of the code will be:

Options :

6406537022765.

6406537022766.
6406537022767.

6406537022768.

Sub-Section Number : 5
Sub-Section Id : 640653396264
Question Shuffling Allowed : Yes

Question Number : 16 Question Id : 6406532158909 Question Type : MSQ


Correct Marks : 3 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 :

6406537022741.

6406537022742.

6406537022743.

6406537022744.

You might also like