Search Header Logo

Java if Statements

Authored by Brian Burger

Computers

9th - 12th Grade

Used 46+ times

Java if Statements
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

2 mins • 1 pt

Media Image

Click ALL answers which result in an "X" printed.

a = 5, c = 5

a = 0, c = 0

a = 5, c = 4

a = 6, c = 9

a = 1, c = 0

2.

MULTIPLE SELECT QUESTION

2 mins • 1 pt

Given : a = 1, b = 2

if ( missing ) print "X"


Select ALL expressions which can be used for missing to result in an "X" being printed.

a < 2

a != b

a > b

b >= a

b == a

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

WHICH OF THE FOLLOWING IS THE RELATIONAL OPERATOR FOR NOT EQUAL TO?

>=
<>
\=
!=

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

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

1
2
3
4

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

Under
Over
Under the limit
Over the limit

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

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

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

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

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?