Search Header Logo

Computational Thinking Unit 1

Authored by Jennie Phipps

Computers

10th - 12th Grade

Used 56+ times

Computational Thinking Unit 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an important step to take before beginning to write the code for a program?

Randomly generate the variable names to be used in the program

Write on paper or a whiteboard all the code you intend to type

Plan the logic and anticipated input/output of the code

Plan an update and maintenance schedule for the program

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following could be considered part of the beginning “state” of a Scratch program?

Visibility of sprites

The background image

The value of a variable

All of the above

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

As part of the lifecycle of a program, after a computer programmer writes the code, it is then compiled and usually used to create an executable file to be run on the CPU. The code that is run through the compiler is known as what?

Machine Code

Source Code

Source Code (C) Binary Code

RAM

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The following two algorithms are designed to find the minimum value in a list of integers.

Algorithm I: Create a variable min, and set this to the first value in the list. Compare each subsequent value in the list against the value of min, and if it is smaller than or equal to the current value, set min to this value. When the end of the list is reached, display the value of min.

Algorithm II: Create a variable min, and set this to 0. Compare each value in the list against the value of min, and if it is smaller than the current value, set min to this value. When the end of the list is reached, display the value of min.

Which of the following statements correctly demonstrates that the two algorithms are NOT equivalent?

Both algorithms will correctly display the minimum value of the list [-1, 3, -4, 8]

Neither algorithm will correctly display the minimum value of the list [0, 5, 6, 2]

Algorithm I will correctly display the minimum value of the list [4, 10, 6, 1], but Algorithm II will not

Algorithm II will correctly display the minimum value of the list [-4, 2, 3, 2], but Algorithm I will not

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Many tasks, large and small, can be solved by performing a specific set of actions and making a particular set of decisions in very precise ways. These sets of actions and decisions are known as what?

Abstraction

Algorithms

Building Blocks

Processes

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

An office building has two floors. A computer program is used to control an elevator that travels between the two floors. Physical sensors are used to set the following Boolean variables.

Variable 1: onFloor1 Description: Set to true if the elevator is stopped on floor 1; otherwise set to false

Variable 2: onFloor2 Description: Set to true if the elevator is stopped on floor 2; otherwise set to false

Variable 3: callTo1 Description: Set to true if the elevator is called to floor 1; otherwise set to false

Variable 4: callTo2 Description: Set to true if the elevator is called to floor 2; otherwise set to false


The elevator moves when the door is closed and the elevator is called to the floor that it is not currently on. Which of the following Boolean expressions can be used in a selection statement to cause the elevator to move?

(onFloor1 AND callTo2) AND (onFloor2 AND callTo1)

(onFloor1 AND callTo2) OR (onFloor2 AND callTo1)

(onFloor1 OR callTo2) AND (onFloor2 OR callTo1)

(onFloor1 OR callTo2) OR (onFloor2 OR callTo1)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following types of languages is optimized for machine processing and may be written and expressed as a series of binary digits (e.g., ones and zeros), making it difficult for humans to read and write?

Natural language

Pseudocode

High-level programming language

Low-level programming language

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?