Search Header Logo

J2 - Review for Exam- Loops and if Statements

Authored by Sonja Barrera

Computers

9th - 12th Grade

Used 27+ times

J2 - Review for Exam- Loops and if Statements
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

27 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Media Image

What is the output of the below Java program?

1 2 3 4

1 2 3

6

Compiler error

2.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

How many choices are possible when using a single if-else statement?

1
2
3
4

3.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Media Image

Under
Over
Under the limit
Over the limit

4.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Media Image

You lose the prize
You lose
You win
You win the prize

5.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Evaluate the following expression:
2 + 2 == 4

true
false
sometimes true
only true on sundays

6.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Which expression below would determine if a number was odd?

number % 2 ==0
number / 2 == 0
number % 2 == 1
number % 10 == number

7.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Media Image

Low bridge: 
Low bridge: proceed with caution.
Proceed with caution.
<nothing prints to the screen>

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?