Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

EOS revision Quiz

Total questions: 66

Worksheet time: 33mins

Name
Class
Date
1.

What is an algorithm?

a)

A step-by-step set of instructions to solve a problem

b)

A picture of computer hardware

c)

A single command that runs automatically

d)

A database of saved user inputs

2.

In a flowchart, what does the circle/oval shape represent?

a)

Start/End

b)

Process

c)

Input/Output

d)

Decision

3.

In a flowchart, what does the rectangle represent?

a)

Process

b)

Start/End

c)

Decision

d)

Connector

4.

In a flowchart, what does the parallelogram represent?

a)

Input/Output

b)

Decision

c)

Start/End

d)

Process

5.

In a flowchart, what does the diamond represent?

a)

Decision

b)

Process

c)

Start/End

d)

Input/Output

6.

In a flowchart, what does the double-lined rectangle represent?

a)

Predefined process/subroutine

b)

Start/End

c)

Connector

d)

Input/Output

7.

Which is the only flowchart shape that has two arrows coming out of it?

a)

Diamond (decision)

b)

Rectangle (process)

c)

Parallelogram (input/output)

d)

Oval (start/end)

8.

Identify the best set of corrections for the shown flowchart (with Start, a = 5, and an output).

a)

Use an oval for Start, use a parallelogram for Output, ensure arrows point top-to-bottom

b)

Keep Start as a rectangle, change Output to a diamond, add three outgoing arrows

c)

Remove Start, use a rectangle for Output, reverse all arrows upward

d)

Use a circle for Output, add labels Yes/No to all arrows, remove the assignment

9.

For the code sequence that asks two numbers, computes average, and prints it, which expression correctly computes the average?

a)

(weight1 + weight2) / 2

b)

weight1 - weight2

c)

2 * (weight1 + weight2)

d)

(weight1 + weight2) * 2

10.

For the code that asks two numbers, computes average, and prints it, which flowchart step immediately follows reading the second number?

a)

Calculate the average using (weight1 + weight2) / 2

b)

Display the final message

c)

Go back to Start

d)

Stop the algorithm

11.

In the shown flowchart, choose the best set of corrections based on arrows, shapes, and labelling after an IF decision.

a)

Use a diamond for the IF test, label outgoing arrows Yes/No, and point arrows to the correct next steps

b)

Replace the IF diamond with a rectangle, remove labels, and add three outputs

c)

Add a second Start symbol after the IF, remove all arrowheads, and use circles for processes

d)

Use a parallelogram for decisions, keep arrows unlabeled, and connect both paths to Stop directly

12.

Given the algorithm that asks for two test scores, adds them, and displays 'Welldone' if the total is over 100, what is displayed when the total equals 95?

a)

Better luck next time

b)

Welldone

c)

Error

d)

Try again

13.

What do logic gates do in computers?

a)

They perform logical operations on inputs to produce a single output

b)

They store files permanently

c)

They display graphics on the screen

d)

They measure internet speed

14.

In Boolean logic, which number represents True/Yes?

a)

1

b)

0

c)

2

d)

-1

15.

In Boolean logic, which number represents False/No?

a)

0

b)

1

c)

2

d)

-1

16.

How many inputs does a basic AND gate have?

a)

Two

b)

One

c)

Three

d)

Four

17.

How many outputs do standard logic gates have?

a)

One

b)

Two

c)

Three

d)

It varies each time

18.

For an AND gate, what is the output when the inputs are 1 and 0?

a)

0

b)

1

c)

Undefined

d)

2

19.

For an OR gate, what is the output when the inputs are 0 and 0?

a)

0

b)

1

c)

Undefined

d)

2

20.

For a NOT gate, what is the output when the input is 1?

a)

0

b)

1

c)

Undefined

d)

2

21.

What do you call it when code or an algorithm has more than one potential path?

a)

Selection (branching/decision)

b)

Iteration (looping)

c)

Compilation

d)

Rendering

22.

What is a condition in programming or flowcharts?

a)

A test that evaluates to True or False to decide which path to follow

b)

A list of program steps to run in order

c)

A way to store text in memory

d)

A screen message shown at the end

23.

For the condition if colour == "green": print("GO") else: print("Wait"), what is printed when colour is "green"?

a)

GO

b)

Wait

c)

Error

d)

Stop

24.

For the algorithm shown in the hand-drawn flowchart with a = 10 and b = 25, which message is displayed when it runs?

a)

"Sigma"

b)

"Skibid"

c)

"Gyatt"

d)

"Hello"

25.

What is a subroutine?

a)

A named set of instructions that can be run when called

b)

A type of computer memory

c)

A hardware switch inside the CPU

d)

A file that stores user data

26.

A subroutine called Hello should do which of the following?

a)

Display "Hi"

b)

Display "Bye"

c)

Ask for a number

d)

Stop the program immediately

27.

For the algorithm that asks for the user's name, stores it in friend, runs subroutine Hello, and then displays "I like x" using friend, which final message is correct when the user types Alex?

a)

I like Alex

b)

Hello Alex

c)

Bye Alex

d)

Welcome, Alex

28.

In the shown flowchart with repeated calls to printDouble and a hint about when the algorithm should end/stop, which correction fixes the mistake?

a)

Call printDouble once, then output the doubled number and Stop

b)

Remove Stop entirely and keep calling printDouble forever

c)

Add a second Start after the first printDouble

d)

Replace printDouble with a decision diamond labelled Yes/No

29.

What is a comparison?

a)

A calculation that changes a number into a different base

b)

A check between two values that returns true or false

c)

A command that repeats a block of code a fixed number of times

d)

A way to store text inside a variable

30.

How do each of these operators work: <, >, <=, >=, ==, !=

a)

They compare two values and produce a Boolean result

b)

They assign new values to variables

c)

They convert numbers into strings automatically

d)

They read input from the keyboard

31.

What is the comparison operator for greater than or equal to

a)

>

b)

>=

c)

<=

d)

==

32.

What is the comparison operator for less than or equal to

a)

<=

b)

>=

c)

!=

d)

<

33.

What is the comparison operator for not equal to

a)

==

b)

!=

c)

<

d)

>

34.

What is the comparison operator for equal to

a)

=

b)

==

c)

>

d)

<=

35.

In programming, why do we not use one equal sign for checking if two things are equal to each other

a)

Because a single equals sign is used for assignment, not comparison

b)

Because one equals sign compares strings only

c)

Because one equals sign works only inside loops

d)

Because one equals sign is reserved for comments

36.

What is an integer? Give two examples.

a)

A whole number with no decimal part, for example 33 and −12-12

b)

A number with a decimal point, for example 3.53.5 and 0.10.1

c)

A piece of text, for example "cat" and "Hello"

d)

A truth value, for example true and false

37.

What is a real (or float)? Give two examples.

a)

A whole number, for example 77 and 00

b)

A decimal number, for example 2.752.75 and −0.5-0.5

c)

A single character, for example "a" and "Z"

d)

A list of values, for example [1,2,3][1,2,3]

38.

What is a string? Give two examples.

a)

A sequence of characters, for example "book" and "123"

b)

A decimal number, for example 4.24.2 and −1.0-1.0

c)

A whole number, for example 99 and −3-3

d)

A Boolean value, for example true and false

39.

What symbols do we always put around a string

a)

Parentheses ( )

b)

Square brackets [ ]

c)

Quotation marks " "

d)

Curly braces { }

40.

Fill in the gaps below, to convert the input into an integer: age = ___ input("Type your age") ___

a)

age = int(input("Type your age"))

b)

age = input(int "Type your age")

c)

age = int"Type your age"(input)

d)

age = input("Type your age")

41.

Write a program that asks the user to type their weight, converts what they type into a real (a float), and saves it to a variable called weight.

a)

weight = float(input("Type your weight"))

b)

weight = input("Type your weight")

c)

print(float(weight))

d)

weight = int(input("Type your weight"))

42.

What is an input in programming

a)

Data a program sends to the screen

b)

Data a program receives from a user or another source

c)

The name of a variable

d)

The process of repeating code

43.

What is an output

a)

Data a program stores in memory

b)

Data a program sends to the user or another system

c)

Data typed by the user

d)

A comment in the code

44.

How can you create a simple program that takes input and provides output

a)

Use input to read a value and print to display it, for example: name = input("Your name?"); print(name)

b)

Write only print statements

c)

Write only input statements

d)

Store a value in a variable without printing or reading anything

45.

What is a variable

a)

A fixed value that cannot change

b)

A named storage location that can hold a value

c)

A comment used to explain code

d)

A special symbol used only for math

46.

What symbol is used to create a variable in a program

a)

The plus sign +

b)

Parentheses ( )

c)

The equals sign = for assignment

d)

The hash symbol #

47.

Can you write code where you save a string "JC" to a variable called teacher

a)

teacher = "JC"

b)

teacher == "JC"

c)

"JC" = teacher

d)

print(teacher = "JC")

48.

How does each operator work: +, -, *, /

a)

They perform addition, subtraction, multiplication, and division respectively

b)

They compare values for equality and inequality

c)

They create and delete variables

d)

They read and write files

49.

In Python, how do you display the variable m multiplied by 2

a)

print(m * 2)

b)

print(m ** 2)

c)

print(m + 2)

d)

print(2 / m)

50.

In Python, how do you display the variable n divided by 3

a)

print(n / 3)

b)

print(n * 3)

c)

print(3 - n)

d)

print(n // 3)

51.

We need to test code to check it works. Why do we need to plan how we test the code?

a)

To know the inputs and expected outputs so tests are thorough and consistent

b)

To avoid writing comments in the program

c)

To make the code run faster without checking results

d)

To skip running the program entirely

52.

In a test plan, what is the expected outcome?

a)

The result you predict the program should produce for a given input

b)

The number of times you will run the program

c)

The list of variables used in the program

d)

The error messages the program prints during testing

53.

Complete the test plan for the code: num1 = int(input("Type the first number")) num2 = int(input("Type the second number")) total = num1 + num2 print("The sum is", total). For Test ID 1 with data entered num1 = 20 and num2 = 15, what is the expected outcome?

a)

total = 35

b)

total = 30

c)

total = 25

d)

total = 20

54.

Complete the test plan for the code: num1 = int(input("Type the first number")) num2 = int(input("Type the second number")) total = num1 + num2 print("The sum is", total). For Test ID 2 with data entered num1 = 19 and num2 = 34, what is the expected outcome?

a)

total = 53

b)

total = 45

c)

total = 34

d)

total = 19

55.

Complete the test plan for the code: num1 = int(input("Type the first number")) num2 = int(input("Type the second number")) total = num1 + num2 print("The sum is", total). For Test ID 3 with data entered num1 = 7 and num2 = 9, what is the expected outcome?

a)

total = 16

b)

total = 14

c)

total = 9

d)

total = 7

56.

Complete the test plan for the code: num1 = int(input("Type the first number")) num2 = int(input("Type the second number")) total = num1 + num2 print("The sum is", total). For Test ID 4 with data entered num1 = 12 and num2 = 12, what is the expected outcome?

a)

total = 24

b)

total = 12

c)

total = 20

d)

total = 30

57.

What does it mean if you debug a program?

a)

You find and fix errors in the code

b)

You add more features without testing

c)

You rewrite the program from scratch

d)

You remove all comments from the code

58.

Can you find 4 errors in the code below, and write the code correctly? Code shown: print("What is 1 plus 100?) print(1*100) print("What is 56 divided by 7, plus 23?" print(56-7+23). Which corrections are needed?

a)

Close the opening quote in the first print statement

b)

Use 1 + 100 instead of 1 * 100

c)

Add the missing closing parenthesis in the third print statement

d)

Compute 56 / 7 + 23 instead of 56 - 7 + 23

59.

Can you find 5 errors in the code below, and write the code correctly? Code shown: discount = 15 costPerCup = float(input("Enter the cost of each cup: ") numberBought = input("Enter the number of cups bought: ") total Cost = (costPerCup + numberBought) - discount print("The total cost is" totalCost). Which corrections are needed?

a)

Add the missing closing parenthesis to the costPerCup input line

b)

Convert numberBought to an integer

c)

Change total Cost to totalCost (no space)

d)

Use costPerCup * numberBought instead of costPerCup + numberBought

e)

Add a comma after the message in print and ensure totalCost is defined

60.

What is a pattern?

a)

A repeated or predictable arrangement that can be recognized

b)

A single random event that cannot be repeated

c)

A comment added to explain code

d)

A list of test cases for a program

61.

Why is pattern recognition useful when solving problems?

a)

It helps identify repeated structures to predict outcomes and choose efficient strategies

b)

It makes problems longer to solve by adding extra steps

c)

It only works for artistic designs, not algorithms

d)

It avoids testing by guessing answers

62.

What is a prototype?

a)

A preliminary model used to test ideas and gather feedback

b)

The final, fully released software product

c)

A list of reported bugs in the software

d)

A programming language used to write the software

63.

What does user feedback mean?

a)

Opinions and responses from users about the product

b)

Automatic updates installed by the system

c)

Internal notes written by developers

d)

Data backups saved after release

64.

What are two different types of prototypes that are used in software development?

a)

Low-fidelity prototypes such as paper sketches or simple mockups

b)

High-fidelity interactive digital prototypes

c)

Production releases used by all customers

d)

Data backups stored for disaster recovery

65.

What are the two most important reasons we create project plans?

a)

To organize tasks and timelines so the work stays on track

b)

To clarify the project’s scope and requirements before building

c)

To slow down development so fewer features are added

d)

To hide the true costs of the project from stakeholders

66.

Can you give 3 examples of information that should be in a project plan?

a)

Project goals and requirements

b)

Timeline with milestones

c)

Team roles and responsibilities

d)

Favorite snacks for meetings