Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Java

Total questions: 9

Worksheet time: 5mins

Name
Class
Date
1.

Who invented Java?

a)

James Gosling

b)

Sergey Brin

c)

Steve Jobs

d)

Bill Gates

e)

Tim Berners-Lee

2.
Which type of data is used to enter the value ("Welcome")?
a)
Text
b)
Characters
c)
String
d)
Boolean
3.
Which type of data is used to enter the value (1234.5)?
a)
Integer
b)
Double 
c)
Char
d)
Void
4.
Which type of data is used to enter the value (True)?
a)
Float
b)
Boolean
c)
Check box
d)
ٍString
5.
When we want to print in Java, we use the code ......
a)
system.out.print();
b)
System.out.println();
c)
System.Out.Printf();
d)
System.out.show();
6.
A variable that holds a whole number
a)
String
b)
boolean
c)
int
d)
float
7.
A variable that holds words
a)
String
b)
boolean
c)
int
d)
float
8.
A variable that holds a character
a)
String
b)
boolean
c)
int
d)
char
9.
What is at the end of a line of code?
a)
#
b)
;
c)
)
d)
>