WorksheetsUnit 1 Review
Total questions: 10
Worksheet time: 5mins
Which of the following is NOT a real world example of abstraction?
Selecting C1 on a vending machine
Getting money out of the ATM
Pressing a TV remote button
Logging into Google Classroom
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.)
PROGRAM BikeHome:
ROTATE_RIGHT (1);
MOVE_FORWARD (5);
ROTATE_LEFT (1);
MOVE_FORWARD (3);
END.
PROGRAM BikeHome:
MOVE_FORWARD (2);
ROTATE_RIGHT (1);
MOVE_FORWARD (5);
ROTATE_LEFT (1);
MOVE_FORWARD (1);
END.
PROGRAM BikeHome:
MOVE_FORWARD (1);
ROTATE_RIGHT (1);
MOVE_FORWARD (2);
ROTATE_LEFT (1);
MOVE_FOWARD (2);
ROTATE_RIGHT (1);
MOVE_FORWARD (3);
END.
PROGRAM BikeHome:
ROTATE_RIGHT (1);
MOVE_FORWARD (5);
MOVE_FOWARD (3);
END.
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?
Processes
Flow Charts
Algorithms
Abstraction
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?
High-Level Programming Language
Low-Level Programming Language
Scratch X
Pseudocode
Which of the following are ways in which a programmer can use abstraction to manage the complexity of a program? Select two answers.
Replacing each instance of repeated code with a call to a procedure
Replacing longer variable names with shorter variable names to reduce typing errors
Replacing several lines of documentation with a single line of documentation
Replacing the string variables name1, name2, name3, and name4 with a list of strings called names
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?
Jordan: numberOfAbsences = 3, gradePointAverage = 3.5
LaTasha: numberOfAbsences = 5, gradePointAverage = 3.8
Kendra: numberOfAbsences = 6, gradePointAverage = 3.4
Keith: numberOfAbsences = 6, gradePointAverage = 3.6
What is the correct sequence to get the robot to the gray square?
Move Forward 2, Turn Left 1, Move Forward 3
Move Forward 3, Turn Right 1, Move Forward 2
Move Forward 2, Turn Left 3, Move Forward 4
Move Forward 2, Turn Left 2, Move Forward 2
This a placeholder to store a particular value or attribute such as x and y in an algebraic equation or calculation.
Placeholder
Algorithm
Variable
Iteration
Which of the following is NOT a part of the iterative development process?
Document
An idea
Create and Implement
Selection
An algorithm is a ________ or set of instructions to complete a task.
clue
process
rules
decisions
