Quiz 07 - If Statements

Quiz 07 - If Statements

11th Grade

10 Qs

quiz-placeholder

Similar activities

GCSE Computing: Computational Logic 2.4

GCSE Computing: Computational Logic 2.4

11th - 12th Grade

15 Qs

Python Fundamentals

Python Fundamentals

11th - 12th Grade

12 Qs

AQA - Section 4 - Boolean Expressions

AQA - Section 4 - Boolean Expressions

11th Grade

10 Qs

J277 - 2.2 - Understanding Data Types in Programming

J277 - 2.2 - Understanding Data Types in Programming

10th Grade - University

10 Qs

Python Booleans

Python Booleans

11th Grade

10 Qs

String Manipulation

String Manipulation

9th - 11th Grade

13 Qs

Pre-Test Operator Javascript

Pre-Test Operator Javascript

11th Grade

15 Qs

Interactive Animations and Games from code.org

Interactive Animations and Games from code.org

7th - 12th Grade

14 Qs

Quiz 07 - If Statements

Quiz 07 - If Statements

Assessment

Quiz

Computers

11th Grade

Medium

Created by

Casey Devet

Used 14+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Which of the following is a valid boolean value in Java?

True

FALSE

true

false

2.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Which Java type can be used to store a true or false value?

boolean

bool

Boolean

Bool

3.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Which comparison will NOT evaluate to true?

5 < 18

5 != 18

5 >= 18

5 <= 18

4.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Which comparison operator will return true only if the values on its left and right do NOT have the same value.

==

!

!=

<=

5.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Which operator will evaluate to true if either value to the left or right is true?

&&

||

==

!

6.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

In the expression below, which operation will be evaluated first?

7 * 5 + (2 - 35 % 5)

*

+

-

%

7.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Which keyword is used to create a set of instructions to be executed if the "if" condition above it is false?

otherwise

if

else

elif

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?