Algorithm Error Identification Quiz

Algorithm Error Identification Quiz

Professional Development

10 Qs

quiz-placeholder

Similar activities

RamadanQuiz

RamadanQuiz

Professional Development

12 Qs

DSA 1

DSA 1

Professional Development

10 Qs

Sort

Sort

University - Professional Development

15 Qs

Cryptography Chap-1

Cryptography Chap-1

9th Grade - Professional Development

15 Qs

Training 2 - Ethernet

Training 2 - Ethernet

Professional Development

8 Qs

Lets see what you know

Lets see what you know

1st Grade - Professional Development

14 Qs

Security+ Lesson7

Security+ Lesson7

Professional Development

10 Qs

Text Analysis Introduction Quiz

Text Analysis Introduction Quiz

Professional Development

10 Qs

Algorithm Error Identification Quiz

Algorithm Error Identification Quiz

Assessment

Quiz

Computers

Professional Development

Medium

Created by

Pravin Sharma

Used 1+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?