WorksheetsJAVA 1/7
Total questions: 6
Worksheet time: 18mins
Name
Class
Date
1.
Which type of data is used to enter the value ("Welcome")?
a)
Text
b)
Characters
c)
String
d)
Boolean
2.
Which type of data is used to enter the value (1234.5)?
a)
Integer
b)
Double
c)
Char
d)
Void
3.
We are use Scanner Library in java for...
a)
Give permissions to the user
b)
Correcting software errors
c)
Allows user to read data
d)
Allows the user to enter data
4.
We are use Random Library in java for...
a)
Choose a set of random numbers
b)
Deploy the program randomly
c)
Store a set of information at random
d)
All answers are correct
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.
What value is stored in result if:
int result = 13 - 3 * 6 / 4 % 3;
a)
-5
b)
0
c)
13
d)
-1
e)
12
100 %
