Unit 6:  Algorithms (APCSP '20-'21 code.org)

Unit 6: Algorithms (APCSP '20-'21 code.org)

Assessment

Quiz

Computers

9th - 12th Grade

Medium

CCSS
3.OA.D.8, 6.EE.B.6, 4.OA.A.3

+1

Standards-aligned

Created by

Harrison Palzewicz

Used 13+ times

FREE Resource

Student preview

quiz-placeholder

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

Media Image

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?

 
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.

Sequence
Iterate
Select

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 ______.

Iteration
Selection
Sequencing

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?