NEW
Font size
S
M
L
XL
WorksheetsINTRODUCTION TO OOP
Total questions: 10
Worksheet time: 5mins
Name
Class
Date
1.
Which one IS NOT features of Java?
a)
Object Oriented
b)
Distributed
c)
Static
d)
Portable
2.
Used to convert source code into binary program that consists of byte code.
a)
Java Builder
b)
Java Compiler
c)
Java Linker
d)
Java Virtual Machine
3.
Which one IS NOT the keyword in Java?
a)
public
b)
static
c)
String
d)
static
4.
Semantic error also known as
a)
Syntax Error
b)
Runtime Error
c)
Compiletime Error
d)
Logical Error
5.
Which one is the CORRECT variable name?
a)
_1name
b)
1name
c)
1name_
d)
1 name_
6.
Select the primitive data type.
a)
Interfaces
b)
Character
c)
String
d)
Arrays
7.
A variable that is declared inside the class but outside the method is called
a)
Static Variable
b)
Local Variable
c)
Instance Variable
d)
Global Variable
8.
A variable that is declared inside the method is called
a)
Static Variable
b)
Local Variable
c)
Instance Variable
d)
Global Variable
9.
Constants are declared using keyword
a)
static
b)
public
c)
new
d)
final
10.
float x; // Size is 8 bytes
int y=2; // Size is 4 bytes
x=y;
int y=2; // Size is 4 bytes
x=y;
a)
Implicit conversion
b)
Explicit conversion
Reset
