Java 3 Test Review

Java 3 Test Review

51 Qs

quiz-placeholder

Similar activities

Final Exam Review Semester 1 - 8

Final Exam Review Semester 1 - 8

8th Grade

50 Qs

12-16 Physical/Chemical Change Test

12-16 Physical/Chemical Change Test

6th - 8th Grade

49 Qs

States of Matter TEST

States of Matter TEST

6th - 8th Grade

56 Qs

C56-SE1908

C56-SE1908

KG - University

52 Qs

Ch 19 Chemical Reactions Review

Ch 19 Chemical Reactions Review

9th Grade

50 Qs

E7 - UNIT 1 - REVISION

E7 - UNIT 1 - REVISION

7th Grade

50 Qs

Prof Comm: FINAL EXAM

Prof Comm: FINAL EXAM

11th Grade

50 Qs

Java 3 Test Review

Java 3 Test Review

Assessment

Quiz

others

Practice Problem

Medium

Created by

Emalie Eaton

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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++)

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?