Font size
WorksheetsFun with Java!!
Total questions: 15
Worksheet time: 7mins
Statement used to check multiple conditions in Java.
if-else
if-else-if ladder
switch case
if statement
Statements which allow the control to jump to a specific location in Java depending upon the condition
Selection statements
Jumping statements
Looping statements
None of the above
The logical statement where either of the two situations are executed
if
if-else-if
switch case
if-else
Technique of binding of data and functions is called ...
Abstraction
Polymorphism
Class
Encapsulation
________ are the special symbols used to perform calculations or oerations
Expressions
Operator
Operand
Data type
The reserved words of java are called_____
Token
Data Type
Keyword
Constants
Data type used to store single character constant in java
String
string
int
char
The process by which objects of one class acquire property of another class is called ___________
Abstraction
Encapsulation
Inheritance
Polymorphism
While comparing two values their data type should be different
True
False
The messages to be printed as output Java should be in ________ in the program
:
;
+
" "
If you want to increase the value of variable a after evaluation of equation. The correct way of writing variable a is-
++ a
--a
a++
a--
To check whether the value of variable b is greater than 10 or not, the equation can be written
if(!(b>10)
True
False
To Check whether a number n is divisible by 3 or not.
The equation can be written as
if(X/3)
if(x%3)
if(x/3==0)
if(x%3==0)
To find the average of three numbers in Java which statement is correct
a+b+c/3
(a+b+c)/3
Both a and b
Only b
A java program is compiled into an intermediate code called Byte code using
Java Compiler Machine
Java Source Machine
Java Virtual Machine
Java Interpreer Machine
