Search Header Logo

Algorithm Error Identification Quiz

Authored by Pravin Sharma

Computers

Professional Development

Used 1+ times

Algorithm Error Identification Quiz
AI

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

30 sec • 1 pt

An algorithm to withdraw money from an ATM lacks a step to ask for the user's PIN before dispensing cash. Input: Card inserted Output: Select amount of money Dispense money What is the error?

Missing step

Infinite loop

Unclear output

Redundant step

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A sorting algorithm for a list of numbers keeps comparing the same numbers repeatedly, even though they are already sorted. Compare two numbers Swap if needed Repeat from step 1 What is the error?

Redundant step

Unclear input

Infinite loop

Missing output

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

An algorithm is supposed to calculate the average grade of students in a class but doesn't include how to divide the total score by the number of students. Input: List of student grades Sum all grades Output: Total score What is the error?

Missing step

Redundant step

Infinite loop

Unclear instructions

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A recipe algorithm for making pancakes starts with heating the pan but doesn't say when to add the ingredients. Heat the pan Cook until golden brown Serve What is the error?

Infinite loop

Redundant step

Missing step

Unclear output

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A robot navigation algorithm instructs the robot to move forward but doesn't specify when to stop. Input: Move forward Repeat step 1 What is the error?

Redundant step

Infinite loop

Missing input

Unclear output

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

An algorithm designed to calculate the square of a number doesn’t specify how the number is input. Multiply the number by itself Output the result What is the error?

Missing step

Unclear input

Redundant step

Infinite loop

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

An algorithm designed to sort a list of names begins by sorting the first two names but stops without completing the rest of the list. Compare first two names Swap if necessary Output sorted list What is the error?

Redundant step

Infinite loop

Missing step

Unclear output

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?