Java - Part 2 Online Exam Quiz

Java - Part 2 GK Quiz. Question and Answers related to Java - Part 2. MCQ (Multiple Choice Questions with answers about Java - Part 2

What is the action of rint() in Java

Options

A : Returns the absolute value of the argument

B : Returns the smallest of the two arguments

C : Returns the double value that is closest in value to the argument

D : Returns the largest integer that is less than or equal to the argument

View Answer

Which one will returns the absolute value of a

Options

A : rint(a)

B : log(a)

C : abs(a)

D : exp(a)

View Answer

One if or else if statement inside another if or else if statement is

Options

A : if statement

B : if-else statement

C : if-else-if ladder

D : nested if statement

View Answer

Built-in multiway decision statement in Java is known as

Options

A : Switch

B : Oprator

C : Break

D : Continue

View Answer

Case and break are used in __

Options

A : Jump

B : if-else

C : nested-if

D : Switch

View Answer

Which one jump statement is not supported in Java

Options

A : Else

B : Break

C : Return

D : Continue

View Answer

__ leaves a loop, __ jumps to the next iteration

Options

A : break,continue

B : continue,break

C : switch,break

D : break,switch

View Answer

In Java, the functions are called

Options

A : Fields

B : Methods

C : Operator

D : Class

View Answer

Header should always be declared independently separated by

Options

A : Dot

B : Slash

C : Commas

D : Pipe

View Answer

Which one enables an object to initialize itself when it is created

Options

A : Validator

B : Arguments

C : Parameters

D : Constructor

View Answer

Data Mining more Online Exam Quiz

Geography - Part 1

Physics - Part 1

Political Science - Part 1

Sociology - Part 1

Computer Basic - Part 2

Antonyms - Part 2

Sentence Formation - Part 2

One Word Substitution - Part 2

Synonyms - Part 2

Andhra Pradesh - Part 2