Java if Statements

Java if Statements

9th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

General Python year 10

General Python year 10

9th Grade - University

20 Qs

Html&Css

Html&Css

9th Grade

20 Qs

Memory & Processor

Memory & Processor

10th - 11th Grade

20 Qs

HTML Colors

HTML Colors

9th - 12th Grade

15 Qs

If ... else

If ... else

4th Grade - University

15 Qs

Grade 12-Python selection&iteration

Grade 12-Python selection&iteration

11th - 12th Grade

15 Qs

JavaScript Knowledge & Skills

JavaScript Knowledge & Skills

9th - 12th Grade

15 Qs

CodeHS Functions in Python

CodeHS Functions in Python

9th - 12th Grade

15 Qs

Java if Statements

Java if Statements

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Brian Burger

Used 41+ times

FREE Resource

AI

Enhance your content

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

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

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?