wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Java Quiz

Total questions: 24

Worksheet time: 12mins

Name
Class
Date
1.
Never put a semicolon before an open brace.
a)
True
b)
False
2.
if the int x = 128, output will be 127.
a)
true
b)
false
3.
A reference variable stores the memories address of an object.
a)
true
b)
false
4.
A variable is a storage location of a specified type of object.
a)
true
b)
false
5.
a identifier is used to identify something.
a)
true
b)
false
6.
Joe is equal to joe.
a)
true
b)
false
7.
char is used to store letters.
a)
true
b)
false
8.
char and short are both 16 bit.
a)
true
b)
false
9.
long and double are both 32 bit.
a)
true
b)
false
10.
system.out.print( "two" )  is output two.
a)
true
b)
false
11.
system.out.print( 5 + 6+ " " + 8)
output is 11 8
a)
true
b)
false
12.
system.out.print( " t\two " )
output is ttwo
a)
true
b)
false
13.
what is the tab character?
a)
\t
b)
\tt
c)
\n
d)
\o
14.
Name all with 64 bit data type.
a)
long
b)
doublle
c)
short
d)
bite
15.
which of the following is 0 ?
a)
1
b)
69
c)
97
d)
74
16.
who created Java?
a)
James gosling
b)
james avery
c)
james bond
d)
james franco
17.
When was Java developed?
a)
1983
b)
1991
c)
5000
d)
2000
18.
what is the name of java before it was renamed?
a)
Oak
b)
javas
c)
hava
d)
kava
19.
what does long hold?
a)
-big to big
b)
-long to long
c)
short to long
d)
1 to 100
20.
what does reference hold?
a)
-big to big
b)
nothin
c)
0 to 65535
d)
-128 to 127
21.
which of the following has the smallest size?
a)
byte
b)
long 
c)
short 
d)
ink
22.
what holds -128 to 127?
a)
bit
b)
byte
c)
mb
d)
gb
23.
what are prompts for?
a)
tell you what it want.
b)
tell the user what you want.
c)
nothin
d)
prompt
24.
which of the following is real  number data type?
a)
char
b)
byte
c)
long
d)
double