Question 1 | MCQ
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)
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)
Solution
Consider the Java code below.

Choose the correct option.
Choose the correct option.
Solution
Consider the following Java code.

Choose the correct option.
Choose the correct option.
Solution
Consider the Java code given below.

Identify the appropriate option to fill in place of
such that the output is:

Identify the appropriate option to fill in place of
Solution
Consider the Java code given below that checks whether a necklace has a mirror pattern of beads (i.e., the sequence of bead colors is the same when viewed from both ends).

Choose the correct option to fill in place of
so that the output is:

You may make use of the descriptions of the methods given below. These are methods inside type
.
: Retrieves and removes the last element of this deque, or returns
if this deque is empty.
: Retrieves and removes the head of this deque, or returns
if this deque is empty.
Choose the correct option to fill in place of
You may make use of the descriptions of the methods given below. These are methods inside type
Solution
Consider the Java code given below.

Choose the correct option to be filled in place of
so that the output is:

Choose the correct option to be filled in place of
Solution
Consider the Java code given below.

Choose the correct option to be filled in place of
such that the output is:

Choose the correct option to be filled in place of
Solution
Consider two Java files located in two different packages as shown below.

Choose the correct option.
Choose the correct option.
Solution
Consider the Java code given below.

Identify the
statement that throws the
when the class is executed as:

Identify the
Solution
Consider the Java code given below.

What will the output be?
What will the output be?
Solution
Consider the Java code given below.

Choose the correct option.
Choose the correct option.
Solution
Consider the Java code given below.

After type erasure, which of the following correctly represents the
class?
After type erasure, which of the following correctly represents the
Solution
Consider the Java code given below.

Choose the correct option.
Choose the correct option.
Solution
Consider the Java code given below.

Choose the correct option.
Choose the correct option.
Solution
Consider the Java code given below that prints the highest-rated movie among a set of given
objects. From among the options, identify the appropriate function header for the function
that takes as input an array of
objects and prints the highest rating.

Choose the correct option(s) for the function header in
.
Choose the correct option(s) for the function header in
Solution
Consider the Java code given below that prints the names of trees whose height is between 2 and 5 meters (both inclusive).

Choose the correct option(s) to fill in place of
to obtain the right answer.
Choose the correct option(s) to fill in place of
Solution
Shape
Thickness [ / ]
3
All colors