CodeHS 2.13 Short-Circuit Evaluation

CodeHS 2.13 Short-Circuit Evaluation

9th - 12th Grade

12 Qs

quiz-placeholder

Similar activities

Data Types and Mathematical Operators

Data Types and Mathematical Operators

9th - 11th Grade

16 Qs

Python - Operators and Conditional Statement

Python - Operators and Conditional Statement

3rd - 10th Grade

10 Qs

Variables,Operators and Data Types [OCR]

Variables,Operators and Data Types [OCR]

9th Grade

17 Qs

PYTHON PROGRAMMING FUNDAMENTALS

PYTHON PROGRAMMING FUNDAMENTALS

11th Grade

15 Qs

Python Operators

Python Operators

11th Grade

10 Qs

Operators in Python

Operators in Python

9th Grade - Professional Development

17 Qs

Operators in Java

Operators in Java

9th - 10th Grade

16 Qs

Operators in Java

Operators in Java

9th Grade

15 Qs

CodeHS 2.13 Short-Circuit Evaluation

CodeHS 2.13 Short-Circuit Evaluation

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Aaron Pavao

Used 12+ times

FREE Resource

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Is a boolean true or false?

true

false

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The operators ||, &&, and ! are what kind of operators?

logical

conditional

boolean

legal

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is short-circuit evaluation?

When Java ignores the right argument of a logical operator because the left argument is enough to get results

When Java ignores the left argument of a logical operator because the right argument is enough to get results

When logical operators are used in sequence from left to right to make an algorithm shorter

When logical operators are used in sequence from right to left to make an algorithm shorter

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

II short-circuits on a value of

true

false

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

&& short-circuits on a value of

true

false

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is printed to the screen?

The meaning of life is

other people

The meaning of life is

42

The meaning of life is

(Nothing: the program crashes when you try to divide by zero)

7.

MATCH QUESTION

1 min • 1 pt

Match the following

Equal to

>

Not equal to
<=

Greater than

!=

Less than or equal to

=

Greater than or equal to

>=

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?