
Algorithm and Developing Programs
Authored by Joanna Stevens
9th Grade
Used 8+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Daniel and Derek are pair programming partners in an introductory computer science course. While creating their Guess My Number game in which the computer tries to guess a number that the human player is thinking of between 1 and 100, Derek pointed out that the reason
their program wasn’t working as expected was because the program generated its next guess before checking with the player to see if the computer generated guess was correct. This is an example of a problem with the use of which programming construct?
Selection
Sequencing
Iteration
Recursion
2.
MULTIPLE SELECT QUESTION
2 mins • 1 pt
A particular algorithm that sorts a list of numbers takes longer to run for long lists than it does for short lists. As the length of the list grows, the amount of time increases exponentially. Which of these could describe the algorithm’s performance? (pick two)
Linear
Constant
Square
Cube
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Consider a robot which can move forward, turn left, turn right, and look ahead within the provided grid. Robots must not share a space with pedestrians, marked with P’s here. Pedestrians move around the grid at random. At a minimum, a robot must use which of the following programming constructs to safely navigate to its charging station, marked C?
Sequencing and Iteration
Iteration and Selection
Sequencing and Selection
Sequencing, Selection, and Iteration
4.
MULTIPLE SELECT QUESTION
2 mins • 1 pt
Consider a robot which within the provided grid, can move forward, turn, and check to see if there’s a wall or charging station in front of it. Consider the proposed algorithm to get the robot to its charging station, marked C.
Step 1: Move Forward
Step 2: If Charging Station Ahead
Step 2a: Move Forward
Step 2b: Turn Right
Step 3: If Wall Ahead
Step 3a: Stop
Step 4: Repeat From Step 1
Which two of the steps in the proposed algorithm must be swapped for the robot to successfully find its charging station without running into the wall?
1
2b
3a
4
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
While running for president, Barack Obama was interviewed by Google’s chairman Eric Schmidt. Schmidt asked Obama, “What is the most efficient way to sort a million 32-bit integers?” Obama’s response was, “I think the bubble sort would be the wrong way to go.” Which of these sorts would be a better choice?
Binary Sort
Insertion Sort
Quick Sort
Selection Sort
6.
MULTIPLE SELECT QUESTION
2 mins • 1 pt
After discussing strategies for searching an unordered list, your class broke up into groups to create posters to explain the linear search algorithm. One group made a flowchart. Another group listed the steps in pseudocode. Some posters also showed blocks-based code in Scratch or text-based code in JavaScript. The teacher determined that all posters correctly represented the linear search algorithm. Which of the posters list solutions that could be executed on a computer as written? (pick two)
Flowchart
Scratch
Pseudocode
Javascript
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Algorithms can be expressed in a number of languages, including
I. Text-based languages
II. Blocks-based languages
III. Natural languages such as English
IV. Flowcharts
V. Pseudocode
I and II only
I, II, and IV only
IV and V only
I, II, III, IV, and V
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?
Similar Resources on Wayground
11 questions
Robotica 2018
Quiz
•
5th - 9th Grade
15 questions
Le figure retoriche
Quiz
•
KG - 10th Grade
10 questions
How well do you know your friend?
Quiz
•
1st - 12th Grade
15 questions
Pop Science: DNA
Quiz
•
8th - 12th Grade
12 questions
Quiz sobre Água
Quiz
•
9th - 12th Grade
10 questions
Functions of a Sentence
Quiz
•
6th - 12th Grade
15 questions
Radicales 3º ESO
Quiz
•
9th Grade
15 questions
Intro to Simple Machines
Quiz
•
7th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for
20 questions
El Verbo IR Practice
Quiz
•
9th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
15 questions
Main Idea and Supporting Details.
Quiz
•
4th - 11th Grade
10 questions
Theme
Quiz
•
9th Grade
12 questions
Exponential Growth and Decay
Quiz
•
9th Grade
20 questions
Exponent Rules Review
Quiz
•
8th - 9th Grade
25 questions
Complementary and Supplementary Angles
Quiz
•
7th - 10th Grade