NEW
Font size
Worksheetsjava
Total questions: 19
Worksheet time: 11mins
_________ operator returns the remainder after division
+
/
%
*
What is JVM ?
JVM is the confined memory area
All java programs run inside JVM memory
JVM provides security to the computer by giving controlled access to Files and Memory on a computer
All the above
What are the main Distribution types of Java Software?
Java SE (Java Standard Edition)
Java EE (Java Enterprise Edition)
Java ME (Java Micro Edition)
All the above
Which of the following for loop declaration is not valid?
for ( int i = 99; i >= 0; i / 9 )
for ( int i = 7; i <= 77; i += 7 )
for ( int i = 20; i >= 2; - -i )
for ( int i = 2; i <= 20; i = 2* i )
Evaluate the following Java expression, if x=3, y=5, and z=10:
++z + y - y + z + x++
24
23
20
25
What is the value stored in x in following lines of code?
int x, y, z;
x = 0;
y = 1;
x = y = z = 8;
1
9
8
0
Which of these are selection statements in Java?
break
continue
for()
if()
Which of the following is not an OOPS concept in Java?
Polymorphism
Compilation
Inheritance
Encapsulation
Which component is used to compile, debug and execute the java programs?
JRE
JIT
JDK
JVM
Which of these cannot be used for a variable name in Java?
identifier & keyword
identifier
keyword
none of the mentioned
Java is
Machine dependent language
Machine independent language
JRE stands for
Java Run Environment
Java Run Execution
Java Runtime Environment
Java Ready Execution
JDK stands for
Java Developer Kit
Java Development Kit
Java Design Kit
Java Debugging Kit
Command to run a Java program
javaa
java
jaava
jaavaa
Command to compile Java program
javax
javay
javac
Java
A ___________ file is created after successful compilation of a Java program.
Object file
Array file
Class file
String file
Java program does not run without below function
user()
system()
main()
void()
Java program is
Interpreted
Compiled
The name of the following should be the file name in Java
Object Name
Variable Nam
Class Name
Array Name
