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
From among the options, identify the appropriate function header(s) for function
that takes as input an array of
objects and prints the highest marks among them.

Choose the correct option(s).
Choose the correct option(s).
Solution
Consider the Java code given below.

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


Identify the appropriate statement to fill in the blank at
, such that the output is:

Identify the appropriate statement to fill in the blank at
Solution
Consider the following block of code.

Which among the following code blocks can replace the given code in order to generatea customized assertion erroras shown below?

Which among the following code blocks can replace the given code in order to generatea customized assertion erroras shown below?
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 to fill in place of
so that the output is:

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

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

Which of the following is NOT true about the given code?
Which of the following is NOT true about the given code?
Solution
Consider the Java code given below.

Choose the correct option to fill in the blank at
such that the program generates the following output.

Choose the correct option to fill in the blank at
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 code given below. Assume that the file
contains the following lines of text in it.


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

What will the output be?
What will the output be?
Solution
Consider the following code which has 4 user-defined threads, two threads would work as data adders to a dataset (object) and the other two work as data removers from the same dataset.


Choose all the options that would NEVER occur as a result of execution of this code.
Choose all the options that would NEVER occur as a result of execution of this code.
Solution
Consider the code given below that checks whether two circles are identical. Method
is overridden to compare two
objects as follows. If two circles have the same radius and center, then both are considered identical. Based on the given information, answer the question that follows.

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

Choose the correct option to fill in place of
Solution
Consider the following Java code that uses chained exceptions.

What can be the output of this code?
What can be the output of this code?
Solution
Method
returns an infinite sequential ordered
produced by iterative application of a function
to an initial element
, producing a
consisting of
,
,
, etc. Based on the above information, consider the code given below, and answer the question that follows.

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

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

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

What will the output be?
What will the output be?
Solution
Method
returns an
that describes the specific value, if non-null; otherwise returns an
.
Based on this description, consider the code given below, and answer the question that follows.

Choose the correct option.
Based on this description, consider the code given below, and answer the question that follows.
Choose the correct option.
Solution
Consider the Java code given below.


Choose the correct option to be filled in place of
such that the above program produces the GUI with rows input at the top, columns input in the center, and the button at the bottom.
Choose the correct option to be filled in place of
Solution
Shape
Thickness [ / ]
3
All colors