CodeHS 2.13 Short-Circuit Evaluation

CodeHS 2.13 Short-Circuit Evaluation

9th - 12th Grade

12 Qs

quiz-placeholder

Similar activities

Lesson 1 Introduction to Database System

Lesson 1 Introduction to Database System

10th Grade

10 Qs

Cyber Security KS4

Cyber Security KS4

8th - 12th Grade

15 Qs

College Football

College Football

5th - 12th Grade

11 Qs

CSS9_Q3M2L1_QUIZ3

CSS9_Q3M2L1_QUIZ3

9th Grade

10 Qs

WJEC GCSE ICT Unit 1 E-Mail

WJEC GCSE ICT Unit 1 E-Mail

9th - 10th Grade

13 Qs

Scratch

Scratch

KG - Professional Development

10 Qs

Aplikasi Perkantoran

Aplikasi Perkantoran

10th Grade

15 Qs

Java: repetition control structure for & while

Java: repetition control structure for & while

10th - 12th Grade

10 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 or equal to

>=

Less than or equal to

=

Greater than

>

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?

Discover more resources for Computers