Skip to content
Exam 10 questions

Algorithms: Step by Step

Questions 10

The answer key is shown to signed-in teachers.

  1. Multiple choiceComputersalgorithmsproblem solvingcomputer science basics

    What is an algorithm?

    Which of these best describes an algorithm?

    1. A kind of computer screen

    2. A set of clear, step-by-step instructions for solving a problem

    3. A type of computer virus

    4. A random list of unrelated words


    Think about what a recipe or a set of directions has in common.
  2. Multiple choiceComputerssequencingmaking a sandwichprocedural order

    First step of a sandwich

    Which step should come FIRST when making a peanut butter sandwich?

    1. Eat the sandwich

    2. Put the sandwich on a plate

    3. Spread the peanut butter on the bread

    4. Take two slices of bread


    You need something to spread on before you can spread anything.
  3. Multiple choiceComputerssequencingorder of stepsalgorithm correctness

    Why order matters

    Why is the order of steps important in an algorithm?

    1. Because a computer only reads the last step

    2. Because the steps can be shuffled without changing anything

    3. Because doing the steps in a different order can give a different or wrong result

    4. Because every step must be exactly the same length


    Imagine putting on your shoes before your socks and compare it with the usual order.
  4. Multiple choiceComputersvariablesadditionsequential instructions

    Following addition steps

    A computer follows these instructions in order: Start with total = 0. Add 3 to total. Add 5 to total. Add 2 to total. What is the final value of total?

    1. 5

    2. 8

    3. 10

    4. 3


    Keep a running total and update it after each 'Add' instruction.
  5. Multiple choiceComputersrepetitionloopscounting

    Repeat instruction

    A set of instructions says: Repeat 4 times: clap your hands once. How many times do you clap in total?

    1. 4

    2. 5

    3. 3

    4. 8


    Count how many times the instruction tells you to repeat the action.
  6. Multiple choiceComputersdecisionsconditionsbranching

    Decision in an algorithm

    Which instruction shows a decision (a choice based on a condition) in an algorithm?

    1. Wait for one minute

    2. If the light is green, go; otherwise, stop

    3. Say hello

    4. Walk forward three steps


    Look for the instruction that checks something before deciding what to do.
  7. Multiple choiceComputersstep sequenceeveryday algorithmsordering steps

    Order of washing hands

    Which sequence of steps is in the correct order for washing hands?

    1. Turn on water, wet hands, add soap, rub hands together, rinse, dry hands

    2. Add soap, dry hands, rinse, turn on water, wet hands

    3. Rinse, dry hands, rub hands together, turn on water, add soap

    4. Dry hands, add soap, turn on water, rinse, rub hands together


    Think about what must happen first, such as water being on, before soap can be used.
  8. Multiple choiceComputersCoordinatesfollowing instructionsdirectionsgrid navigation

    Robot movement

    A robot starts at position (0, 0) on a grid, where the first number is how far right and the second is how far up. It follows these instructions in order: move 2 steps up, move 1 step right, move 1 step down. What is its final position?

    1. (1, 1)

    2. (2, 1)

    3. (1, 2)

    4. (0, 1)


    Track the robot's position after each move, starting from (0, 0).
  9. Multiple choiceComputersalgorithm propertiesfinite stepsclear instructions

    Properties of a good algorithm

    Which of these is NOT a property of a good algorithm?

    1. Each step is clear

    2. It is unclear what to do next

    3. It has a finite number of steps

    4. It ends with a result


    A good algorithm always tells you exactly what to do at every step.
  10. Multiple choiceComputersloopsconditionsfinding maximum

    Finding the biggest number

    A computer checks the numbers 4, 9, 2, 7 using these steps: Set biggest to the first number. For each number in the list, if it is bigger than biggest, set biggest to that number. What is the final value of biggest?

    1. 7

    2. 9

    3. 4

    4. 2


    Keep track of the largest number you have seen so far as you go through the list.

About

A simple quiz on giving and following step-by-step instructions, the basis of algorithms.
Subjects
Computers
Audience
Elementary School · Grades 1–2
Difficulty
2 out of 10
Language
English
Who can see it
Everyone
Completed by AI
What's marked with a sparkle was added by AI.
Written by AI
Claude Haiku 5.5
Created

Comments

  1. No comments yet.
© All Rights Reserved