wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Basic Programming and Algorithm Quiz

Total questions: 12

Worksheet time: 6mins

Name
Class
Date
1.

What is an algorithm?

a)

A type of software

b)

A series of steps to solve a problem

c)

A programming language

d)

A hardware component

2.

What are two common ways to represent an algorithm?

a)

Table and Graph

b)

Pseudocode and Flowchart

c)

Audio and Video

d)

Text and Voice

3.

What does a conditional statement do?

a)

Repeats a set of steps

b)

Starts the program

c)

Makes decisions in a program

d)

Displays output

4.

What is the purpose of a loop in programming?

a)

To repeat instructions

b)

To stop a program

c)

To delete variables

d)

To create diagrams

5.

What is the risk of an infinite loop?

a)

It ends the program quickly

b)

It fixes errors automatically

c)

It causes the program to crash

d)

It improves performance

6.

What is pseudocode?

a)

Programming code

b)

Computer software

c)

A plain language way of writing an algorithm

d)

Graphical symbol chart

7.

Which symbol represents a decision in a flowchart?

a)

Rectangle

b)

Oval

c)

Diamond

d)

Circle

8.

Why do we use Python in programming?

a)

For creating flowcharts

b)

To write and run programs easily

c)

To design websites

d)

For drawing only

9.

What is a variable in programming?

a)

A storage location for data

b)

A type of symbol

c)

A hardware tool

d)

A kind of loop

10.

What makes an algorithm efficient?

a)

Being long and detailed

b)

Having multiple loops

c)

Solving a task with minimum steps

d)

Using only graphics

11.

What is the starting symbol in a flowchart?

a)

Oval

b)

Rectangle

c)

Diamond

d)

Arrow

12.

Which of these is an example of a loop in Python?

a)

print()

b)

input()

c)

for i in range(5):

d)

def