Java 3 Test Review

Java 3 Test Review

51 Qs

quiz-placeholder

Similar activities

C# 1рк 1-50

C# 1рк 1-50

KG - University

50 Qs

Review: Checking and Savings

Review: Checking and Savings

KG - University

48 Qs

G3 Garage departments + Motor Vehicle G3 Quiz + G3

G3 Garage departments + Motor Vehicle G3 Quiz + G3

KG - University

55 Qs

Entrepreneurship Final Spring 2024

Entrepreneurship Final Spring 2024

KG - University

55 Qs

Entrepreneurship Spring 2024 Final Review

Entrepreneurship Spring 2024 Final Review

KG - University

55 Qs

RISE Up Retail Industry Fundamentals Practice Test

RISE Up Retail Industry Fundamentals Practice Test

12th Grade

55 Qs

C# 1рк 1-50

C# 1рк 1-50

KG - University

50 Qs

ПТ 150-200

ПТ 150-200

KG - University

50 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?