Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

CPT Practice

Total questions: 13

Worksheet time: 7mins

Name
Class
Date
1.

One of the three building blocks of programming. Sequencing refers to just sequential steps in a program is known as?

a)

Selection

b)

Iteration

c)

Sequencing

d)

Phishing

2.

What is the technical term for one of the three building blocks of programming which is another way of saying loops, or while/repeat until/for loops? For example:

For each x in item:

print(x)

a)

Incremental

b)

Alternative

c)

Iteration

d)

Algorithm

3.

What is a Boolean?

a)

A data type that can have one of two possible values: true or false.

b)

A data type that can have multiple values.

c)

A data type that can have one of three possible values: true, false, or maybe.

d)

A data type that can only have the value true.

4.

What is a conditional statement?

a)

A statement that is executed before the condition is checked

b)

A programming construct that allows the execution of different code blocks based on a specified condition.

c)

A statement that is executed only once

d)

A statement that is always executed regardless of the condition

5.

What is a variable?

a)

A mathematical equation

b)

A programming language

c)

A named storage location in a computer's memory that can hold a value.

d)

A type of computer virus

6.

What is a loop?

a)

A loop is a programming construct that allows a set of instructions to be repeated multiple times until a certain condition is met.

b)

A loop is a type of musical composition.

c)

A loop is a circular shape or path.

d)

A loop is a type of knot used in sailing.

7.

What is an algorithm?

a)

A musical instrument

b)

A set of instructions designed to perform a specific task.

c)

A type of food seasoning

d)

A type of computer virus

8.

Which are types of input? Select all that apply.

a)

Keyboard

b)

Mouse click

c)

Touch (tablet)

d)

None of these.

9.

What is debugging?

a)
b)

Testing your code for errors.

c)
d)

Ew, bugs.

10.

Which are types of output? Select all that apply.

a)

Audio

b)

Text

c)

Images and video

d)

Mouse Click

11.

The value that is assigned in any list is considered...

a)

Element

b)

Index

c)

String

d)

Integer

12.

Lists reference their values by using which of the following?

a)

Index

b)

Element

c)

Variables

d)

Loops

13.

finding and correcting errors in your program

a)

debugging

b)

getting good

c)

abstraction

d)

iteration