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 given below.

What will the output be?
What will the output be?
Solution
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.
Choose the correct option.
Solution
Consider the two Java files given below.




Choose the correct option.
Choose the correct option.
Solution
Consider the Java code given below about controlling robot hardware values.

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 code given below.

Choose the correct option.
Choose the correct option.
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
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.
If the specified key is not already associated with a value or is associated with
Consider the Java code given below.
Choose the correct option.
Solution
Consider the following Java code.

Choose the correct option when the class is executed as:

Choose the correct option when the class is executed as:
Solution
Consider the following Java code.

What will the output be?
What will the output be?
Solution
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.
Choose the correct option to fill in place of
Please note the following methods from types
Solution
Consider the code given below about an aircraft maintenance record.

What will the output be?
What will the output be?
Solution
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?
What can the output of this code be?
Solution
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.
Choose the correct option(s) to fill in place of
Solution
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:

Identify the appropriate option(s) to fill in the blank at
Solution
Shape
Thickness [ / ]
3
All colors