Java if Statements

Java if Statements

9th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

Variables- Conditional-Looping reviews

Variables- Conditional-Looping reviews

7th - 10th Grade

18 Qs

Python Basics (CodeHS)

Python Basics (CodeHS)

7th - 12th Grade

20 Qs

Python - тест

Python - тест

1st - 12th Grade

15 Qs

Python Programming

Python Programming

5th Grade - University

15 Qs

Python Recap

Python Recap

9th - 11th Grade

19 Qs

AP CSP Unit 5 Chapter 2

AP CSP Unit 5 Chapter 2

KG - University

15 Qs

Python Basics Review

Python Basics Review

10th Grade

18 Qs

Python Basics Review (TSK)

Python Basics Review (TSK)

9th - 12th Grade

20 Qs

Java if Statements

Java if Statements

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Brian Burger

Used 37+ times

FREE Resource

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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?