AP CSP Boolean Logic 6

AP CSP Boolean Logic 6

9th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

Начала программирования на языке Паскаль

Начала программирования на языке Паскаль

8th - 11th Grade

15 Qs

RAM&HDD/SSD

RAM&HDD/SSD

10th - 12th Grade

13 Qs

KT 15 PHUT

KT 15 PHUT

10th Grade

10 Qs

Nhập môn HTML

Nhập môn HTML

6th - 9th Grade

13 Qs

Server Administration- Quiz 1

Server Administration- Quiz 1

12th Grade - University

10 Qs

10mo Evaluación

10mo Evaluación

10th Grade

10 Qs

Databases

Databases

11th Grade

15 Qs

PEMOGRAMAN DASAR X KJ 1

PEMOGRAMAN DASAR X KJ 1

10th Grade

10 Qs

AP CSP Boolean Logic 6

AP CSP Boolean Logic 6

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Hard

Created by

Michael Toepper

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

1 min • 1 pt

Media Image

Trace the code and plot the movements of the robot for the 3 scenarios.

If the robot is directed to move onto a black square, it “crashes” and the program ends.


Choose the scenario(s) that results in a "crash."

Note that there may be multiple answers to this question.

Choose all answers that apply:

Media Image
Media Image
Media Image

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

A game programmer uses this nested conditional in their online Four Square game.


When mouseX is 173 and mouseY is 199, what will be the value of currentSquare?

1

2

3

4

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Trace the code and plot the movements of the robot for the 3 scenarios.

If the robot is directed to move onto a black square, it “crashes” and the program ends.


Choose the scenario that results in a "crash."

Media Image
Media Image
Media Image

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

In the program below, the initial value of x is 0 and the initial value of y is -2.


What is displayed as a result of running the program?

Foxtrot

Hotel

November

Yankee

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Given the above procedure:

What will be displayed after the following statement is executed?

DISPLAY ( adjustCount (11) + adjustCount (16) )

28

32

33

35

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

One way to understand Boolean operations is to make a truth table of all the possible inputs and outputs.


Select the Logic Gate that matches the truth table.

AND

OR

NAND

NOR

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

The following circuit takes two inputs, sends each input through a NOT gate, and then sends those outputs through an AND gate. This circuit is logically equivalent to the NOR logic gate, a common gate in computers.


Select the output column that correctly completes out the truth table for the circuit:

0

0

1

0

0

1

0

0

1

0

0

0

0

0

0

1

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?