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


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


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


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


A : Switch

B : Oprator

C : Break

D : Continue

View Answer

Case and break are used in __


A : Jump

B : if-else

C : nested-if

D : Switch

View Answer

Which one jump statement is not supported in Java


A : Else

B : Break

C : Return

D : Continue

View Answer

__ leaves a loop, __ jumps to the next iteration


A : break,continue

B : continue,break

C : switch,break

D : break,switch

View Answer

In Java, the functions are called


A : Fields

B : Methods

C : Operator

D : Class

View Answer

Header should always be declared independently separated by


A : Dot

B : Slash

C : Commas

D : Pipe

View Answer

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


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