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
Which one will returns the absolute value of a
Options
A : rint(a)
B : log(a)
C : abs(a)
D : exp(a)
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
Built-in multiway decision statement in Java is known as
Options
A : Switch
B : Oprator
C : Break
D : Continue
Case and break are used in __
Options
A : Jump
B : if-else
C : nested-if
D : Switch
Which one jump statement is not supported in Java
Options
A : Else
B : Break
C : Return
D : Continue
__ leaves a loop, __ jumps to the next iteration
Options
A : break,continue
B : continue,break
C : switch,break
D : break,switch
In Java, the functions are called
Options
A : Fields
B : Methods
C : Operator
D : Class
Header should always be declared independently separated by
Options
A : Dot
B : Slash
C : Commas
D : Pipe
Which one enables an object to initialize itself when it is created
Options
A : Validator
B : Arguments
C : Parameters
D : Constructor