Java 3 Test Review

Java 3 Test Review

51 Qs

quiz-placeholder

Similar activities

6th Grade Final

6th Grade Final

KG - University

48 Qs

Signals and Systems Quiz

Signals and Systems Quiz

University

50 Qs

Texas Republic, Annexation, Mexican American War, European Immigration Test

Texas Republic, Annexation, Mexican American War, European Immigration Test

KG - University

50 Qs

2025 Personal Finance Final Exam Review

2025 Personal Finance Final Exam Review

KG - University

50 Qs

Computational Thinking Quiz

Computational Thinking Quiz

University

56 Qs

Entrepreneurship Final Spring 2024

Entrepreneurship Final Spring 2024

KG - University

55 Qs

ALGO K-11

ALGO K-11

KG - University

52 Qs

Charlie and the Chocolate Factory Test

Charlie and the Chocolate Factory Test

KG - University

47 Qs

Java 3 Test Review

Java 3 Test Review

Assessment

Quiz

others

Medium

Created by

Emalie Eaton

Used 4+ times

FREE Resource

51 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 20 pts

What is the difference between the "==" and "=" operators?
"==" tests for equality, "=" is an assignment
"=" tests for equality, "==" is an assignment
"==" is used on strings, while  "=" is used on numbers

2.

MULTIPLE CHOICE QUESTION

30 sec • 20 pts

When using an if() statement, what must go within the parentheses?
A logical expression
A mathematical expression
A String
An else clause

3.

MULTIPLE CHOICE QUESTION

30 sec • 20 pts

What will be printed to the screen after the following statements execute?if (false) System.out.print("1"); System.out.print("2");
2
12
21
nothing

4.

MULTIPLE CHOICE QUESTION

30 sec • 20 pts

How many "else if ()" clauses can you have after an if() expression?
0, 1, or more
1 only
0
Up to 3

5.

MULTIPLE CHOICE QUESTION

30 sec • 20 pts

Which of the following expressions are valid?
if (6 + 3 > 5)
if (6 + 3)
if (6 + 3 = 5)
They are all valid if() expressions

6.

MULTIPLE CHOICE QUESTION

30 sec • 20 pts

What keyword would you use to halt the execution of a function immediately and transfer control back to the calling function?
return
break
exit
done

7.

MULTIPLE CHOICE QUESTION

30 sec • 20 pts

Which of the following for() loops will execute 10 times?
All of these will execute 10 times
for (int index = 0; index < 10; index++)
for (int index = 1; index <= 10; index++)
for (int index = 10; index < 20; index++)

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?