wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

COM7E2 - DNA

Total questions: 22

Worksheet time: 15mins

Name
Class
Date
1.
What is an Algorithm?
a)
A chart showing the flow of a series of events
b)
Step-by-step instructions used to solve a problem
c)
A decision arrived at by following instructions
d)
A computer program that follows a chart
2.

Muhammad, Poppy, and Noah are on a field trip and they need to find the Post Office in the city. What algorithm do they use?

a)

A set of directions

b)

A recipe

c)

A list of instructions

3.

Benjamin is working on a project and he needs to use an Algorithm. What would be the main purpose of using an Algorithm in his project?

a)

To make his computer run faster

b)

To solve a problem or accomplish a task in his project

c)

To create a chart for his project

d)

To write a computer program for his project

4.

An algorithm is a set of ​ (a)   , carried out in a specified ​ (b)   to solve a problem or complete a task.​ ​

Choose from the below words
instructions
order
binary
journey
5.

Kiara is learning about algorithms. She understands that an algorithm can be expressed in ​ (a)   . For instance, it could be plain English, or a programming language like ​ (b)   , which Mira and Poppy are currently studying.

Choose from the below words

any language

binary

Spanish

python

denary

6.

A ​ (a)   is a set of precise instructions, expressed in a programming language.

Choose from the below words
program
recipe
algorithm
7.

What is the primary function of an Algorithm in computer science?

a)

To increase the speed of the computer

b)

To solve a specific problem or perform a specific task

c)

To design the interface of a software

d)

To manage the hardware of the computer

8.

Anaya, Poppy, and Leo are learning to code. They are discussing the role of an Algorithm in their coding journey. According to you, what is the role of an Algorithm in their learning process?

a)

To provide a graphical representation of the data they are working with

b)

To write the code for Anaya, Poppy, and Leo

c)

To provide a step-by-step procedure for solving the problems they encounter

d)

To debug the errors in the code they write

9.

What algorithm would you use to find a book in a library?

a)

A list of ingredients for a recipe

b)

A set of instructions or directions

c)

A flowchart of a process

d)

A map of the city

10.

Which of these is a commonly used programming langauage

a)

python

b)

cobra

c)

serpent

11.

Which python program would print "Hello " 3 times?

a)

print("Hello " * 3)

b)

printHello3Times

c)

#Hellox3

12.

Daniel, Anaya, and Oliver are working on a computer project. What is the main purpose of the programming language they are using?

a)

To instruct the computer to perform specific tasks, such as creating a website or a game

b)

To increase the speed of the computer they are using

13.

Lily is learning Python programming. She wrote a program and asked Samuel and Isabelle to guess its output:

print("Computing is the best")

a)

Nothing

b)

It would output "Computing is the best"

c)

multiply two numbers together

14.

Alexander is learning Python programming. He wrote a program to calculate the product of 4 and 6. He used the following code:

print(4*6)

What would be the output of Alexander's program?

a)

Nothing

b)

"Computing is the best"

c)

24

d)

4

e)

**** 6

15.

Jacob, Aarav, and Mira are participating in a coding competition. They are asked to write the shortest possible Python program. What is the minimum number of lines their program must have?

(a)  

16.

Arthur, Matilda, and Sophia are learning Python. They want to create a program that prints out "Boo!" when a ghost is detected in their ghost detector game. Fill in the blank in the Python code below to help them:

  • - - - - - ("Boo!")



(a)  

17.

What is the output of the following Python code?

print(5 + 3 * 2)

a)

16

b)

11

c)

13

d)

10

18.

What is the output of the following Python code?

print(10 - 3 * 2)

a)

14

b)

4

c)

7

d)

6

19.

What is the role of a programming language in computer science?

a)

To provide a graphical representation of data

b)

To write the code for the programmer

c)

To provide a way for humans to instruct computers

d)

To debug the errors in the code

20.

What is the code written in?

a)

python

b)

Plain English

c)

Binary

21.

What is the code written in?

a)

python

b)

Plain English

c)

Binary

d)

Scratch

22.

Python is a

a)

text based coding language.

b)

block based coding language.