Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Java Basics

Total questions: 6

Worksheet time: 3mins

Name
Class
Date
1.
What format do I use to print words in JAVA?
a)
System.out.println("Words");
b)
System.out.println(True);
c)
System.out.println(words);
d)
System.out.println('Character');
2.
How do I print out numbers on JAVA?
a)
System.out.println(#);
b)
System.out.println("#");
c)
System.out.println('#');
d)
System.out.println(false);
3.
What are booleans in JAVA?
a)
True or False statements
b)
A way to lean the coding to one side.
c)
A way to write numbers.
d)
They are the proper way of writing code.
4.
When I set a variable, all commands should end with what?
a)
?
b)
:
c)
;
d)
" "
5.
How do I insert a multi-line comment?
a)
/* Comment */
b)
? Comment ?
c)
Comment **
d)
-Java Comment-
6.
Does white-space effect the coding in JAVA?
a)
Yes
b)
No 
c)
Sometimes