Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Unit 1 Review

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Which of the following is NOT a real world example of abstraction?

a)

Selecting C1 on a vending machine

b)

Getting money out of the ATM

c)

Pressing a TV remote button

d)

Logging into Google Classroom

2.

Which set of directions below will successfully get the biker to his house and uses in the fewest lines of text pseudocode? (The Black squares are impassable by bike and cannot be ridden on.)

a)

PROGRAM BikeHome:

ROTATE_RIGHT (1);

MOVE_FORWARD (5);

ROTATE_LEFT (1);

MOVE_FORWARD (3);

END.

b)

PROGRAM BikeHome:

MOVE_FORWARD (2);

ROTATE_RIGHT (1);

MOVE_FORWARD (5);

ROTATE_LEFT (1);

MOVE_FORWARD (1);

END.

c)

PROGRAM BikeHome:

MOVE_FORWARD (1);

ROTATE_RIGHT (1);

MOVE_FORWARD (2);

ROTATE_LEFT (1);

MOVE_FOWARD (2);

ROTATE_RIGHT (1);

MOVE_FORWARD (3);

END.

d)

PROGRAM BikeHome:

ROTATE_RIGHT (1);

MOVE_FORWARD (5);

MOVE_FOWARD (3);

END.

3.

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?

a)

Processes

b)

Flow Charts

c)

Algorithms

d)

Abstraction

4.

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?

a)

High-Level Programming Language

b)

Low-Level Programming Language

c)

Scratch X

d)

Pseudocode

5.

Which of the following are ways in which a programmer can use abstraction to manage the complexity of a program? Select two answers.

a)

Replacing each instance of repeated code with a call to a procedure

b)

Replacing longer variable names with shorter variable names to reduce typing errors

c)

Replacing several lines of documentation with a single line of documentation

d)

Replacing the string variables name1, name2, name3, and name4 with a list of strings called names

6.

Central High School keeps a database of information about each student, including the numeric variables numberOfAbsences and gradePointAverage. The expression below is used to determine whether a student is eligible to receive an academic award. (numberOfAbsences ≤ 5) AND (gradePointAverage >3.5). Which of the following students below would be eligible for the award?

a)

Jordan: numberOfAbsences = 3, gradePointAverage = 3.5

b)

LaTasha: numberOfAbsences = 5, gradePointAverage = 3.8

c)

Kendra: numberOfAbsences = 6, gradePointAverage = 3.4

d)

Keith: numberOfAbsences = 6, gradePointAverage = 3.6

7.

What is the correct sequence to get the robot to the gray square?

a)

Move Forward 2, Turn Left 1, Move Forward 3

b)

Move Forward 3, Turn Right 1, Move Forward 2

c)

Move Forward 2, Turn Left 3, Move Forward 4

d)

Move Forward 2, Turn Left 2, Move Forward 2

8.

This a placeholder to store a particular value or attribute such as x and y in an algebraic equation or calculation.

a)

Placeholder

b)

Algorithm

c)

Variable

d)

Iteration

9.

Which of the following is NOT a part of the iterative development process?

a)

Document

b)

An idea

c)

Create and Implement

d)

Selection

10.

An algorithm is a ________ or set of instructions to complete a task.

a)

clue

b)

process

c)

rules

d)

decisions