Go back to browse: Free exams and quizzes

Free Exam: Prog 1 - Chapter 2

Number of Questions in Test: 11
Number of Questions in Preview: 5
Register to view all questions.

Note: Answers are not shown below but will be copied with this test.

Copy this test to my quiz maker account

Register with ClassMarker to copy free tests to give to your Test takers.

Register now
Question 1
In our "HelloWorld.java" program, we wrote _______ code, which we then ___________. Then we ________ the program.
Type: Multiple choice
Points: 1
Randomize answers: Yes
Question 2
Our code for "HelloWorld.java" wrote to the screen some code.  What does the the following code look like when we execute it?





System.out.print("SpongeBob ");

System.out.print("SquarePants is "):

System.out.println("Crazy!");
Type: Multiple choice
Points: 1
Randomize answers: Yes
Question 3
Compile Time errors are:
Type: Multiple choice
Points: 1
Randomize answers: No
Question 4
The following statement occurs before the first line of the program:



[b]import TerminalIO.KeyboardReader;[/b]



What does it do?
Type: Multiple choice
Points: 1
Randomize answers: No
Question 5
An "assignment" statement allows us to set one value or expression or value equal to another.  Which of the following is done with correct syntax?
Type: Multiple choice
Points: 1
Randomize answers: Yes
Register free

and create your first custom exams today - no credit card required.

Forgot password? / Register free