Search Header Logo

Unit 3 Booleans and Conditional Statements

Authored by Eric Schumacher

Computers

12th Grade

Used 1+ times

Unit 3 Booleans and Conditional Statements
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

25 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Media Image

What is the value of x after the code segment executes?

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is the output?

apple

orange

apple

pear

orange

pear

pear

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is printed as a result of executing the code segment?

false false false

false false true

true false false

true false true

true true true

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is the output of the code?

9

10

11

12

13

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is the output when the code is executed?

A

D

ABD

ABCD

ABCDE

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Assume grade is an int variable. Which of the following is equivalent to grade <= 95?

!(grade < 95)

!grade < !90

!grade <= !90

!(grade <= 95)

!(grade > 95)

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

The Boolean expression A <= B is equivalent to which of the following expressions?

!(B >= A)

!(A <= B)

!(A != B)

!(B < A)

B >= A

Access all questions and much more by creating a free account

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

Already have an account?