Unit 6: Algorithms (APCSP '20-'21 code.org)
Quiz
•
Computers
•
9th - 12th Grade
•
Medium
+1
Standards-aligned
Harrison Palzewicz
Used 13+ times
FREE Resource
Student preview

38 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
This is known as a precise sequence of instructions for processes that can be executed by a computer and are implemented using programming languages.
Function
Parameter
Algorithm
Command
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is FALSE regarding algorithms?
Option 1: Different algorithms can be developed to solve the same problem
Option 2: Different code can never be written to implement the same algorithm
Both Option 1 and 2 are true
Both Option 1 and 2 are false
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
________________ is a sequence of instructions (or algorithm) written in a language or code that a computer can understand and put into action. Must be accurate to be correct.
Procedure
Algorithm
Program
Loop/ Repeat
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
A student wants to create an algorithm that can determine, given any program and program input, whether or not the program will go into an infinite loop for that input. The problem the student is attempting to solve is considered an undecidable problem. Which of the following is true?
It is possible to create an algorithm that will solve the problem for all programs and inputs, but the
algorithm can only be implemented in a low-level programming language.
It is possible to create an algorithm that will solve the problem for all programs and inputs, but the
algorithm requires simultaneous execution on multiple CPUs.
It is possible to create an algorithm that will solve the problem for all programs and inputs, but the
algorithm will not run in reasonable time.
It is not possible to create an algorithm that will solve the problem for all programs and inputs.
5.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
A red triangle is pictured below in a grid of squares. It is currently facing upward, and can only move using the MoveTriangle procedure, shown below. The triangle can move onto white and gray squares, but not onto the black squares.
PROCEDURE MoveTriangle (numMoves, numTurns)
{
REPEAT numMoves TIMES
{
MOVE_FORWARD()
}
REPEAT numTurns TIMES
{
TURN_RIGHT()
}
}
Which of the following instructions will get the red triangle to the gray square?
{
REPEAT numMoves TIMES
{
MOVE_FORWARD()
}
REPEAT numTurns TIMES
{
TURN_RIGHT()
}
}
MoveTriangle (1, 1) MoveTriangle (1, 1) MoveTriangle (3, 1) MoveTriangle (3, 0)
MoveTriangle (4, 1)
MoveTriangle (4, 0)
MoveTriangle (1, 1)
MoveTriangle (1, 3)
MoveTriangle (3, 1)
MoveTriangle (3, 0)
MoveTriangle (1, 1)
MoveTriangle (1, 3)
MoveTriangle (3, 3)
MoveTriangle (3, 0)
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
__________ means to repeat in order to achieve, or get closer to, a desired goal.
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
A generic term for a type of programming statement (usually an if-statement) that uses a Boolean condition to determine, or select, whether or not to run a certain block of statements is ______.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade