Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Computer Programming Quiz

Total questions: 25

Worksheet time: 13mins

Name
Class
Date
1.

What is an ALGORITHM?

a)

It is a computer

b)

A set of step by step instructions for problem solving.

c)

It's a math idea

2.

Why will this code not run?

a)

there has to be a number in the variable

b)

there are supposed to be no spaces in the variable label

c)

there are no caps in variables

3.

What does this code do?

a)

Moves forward 1 time

b)

Moves forward forever

c)

Moves forward 5 times

d)

Moves left

4.

The action of doing something over and over again.

a)

Looping

b)

Bugging

c)

Programming

5.

What is a function in programming?

a)

A block of code that performs a specific task

b)

A type of variable

c)

A syntax error

d)

A data type

6.

What is error handling or debugging in programming?

a)

The process of writing code

b)

The process of finding and fixing errors

c)

The process of defining variables

d)

The process of creating functions

7.

What is the purpose of the "if" statement in programming?

a)

To repeat a block of code

b)

To handle errors

c)

To make decisions based on conditions

d)

To define a function

8.

Which of the following is a syntax error?

a)

Dividing by zero

b)

Misspelling a keyword

c)

Using a variable before declaring it

d)

Infinite loop

9.

Allow functions to perform tasks with specific input values.

a)

velocity

b)

string

c)

parameters

d)

output

10.

A data type that represents a logical value that can only be true or false.

a)

if/then statements

b)

logical operators

c)

counter pattern

d)

boolean

11.

A data type that represents a sequence of characters, words, or symbols.

a)

pseudocode

b)

string

c)

loops

d)

programming

12.

The process of converting human-readable code into machine-readable code.

a)

compile

b)

programming

c)

velocity

d)

conditional

13.

A detailed yet readable description of what a computer program or algorithm should do.

a)

properties

b)

code

c)

pseudocode

d)

flowchart

14.

In programming is a symbol used to combine multiple Boolean expressions (true/false values) and produce a single Boolean result based on rules like "AND", "OR", and "NOT"

a)

logical operators

b)

variable

c)

sprite

d)

properties

15.

A characteristic or attribute of an object that allows you to interact with the object's state without directly accessing its variables.

a)

keyboard

b)

properties

c)

sprite

d)

conditional

16.
Which Data Type represents a whole number?
a)
String
b)
Float
c)
Boolean
d)
Integer
17.
A syntax error means your code has a 'grammar' mistake or you used symbols/operations incorrectly
a)
True
b)
False
18.

What is a function in programming?

a)

A block of code that performs a specific task

b)

A type of variable

c)

A loop that runs indefinitely

d)

A conditional statement

19.

Series of step by step instructions for your computer to follow

a)

IP Address

b)

Coding

c)

Bits

d)

Firewalls

20.

Define Program

a)
A program is a collection of data stored in a computer
b)
A program is a type of computer hardware
c)
A program is a physical device used for computing tasks
d)
A program is a set of instructions that tells a computer what to do.
21.

A programming construct that allows a program to execute specific instructions based on whether a certain condition is true or false

a)

flowchart

b)

boolean

c)

conditional statement

d)

velocity

22.

The rate at which a developer can write code.

a)

Words per minute

b)

acceleration

c)

speed

d)

velocity

23.
A function;
a)
Expresses a true false statement
b)
can contain letters, numbers, spaces, and symbols.
c)
takes in an input, does something with it, and then returns an output.
d)
Runs a boolean (true/false) statement based on data entered
24.

A common programming technique where a variable is used to keep track of a count by incrementing or decrementing its value within a loop or event.

a)

compile

b)

counter pattern

c)

for loops

d)

boolean

25.

A graphic object that can be programmed to move, interact, and respond to events in a game, animation, or story.

a)

input

b)

character

c)

sprite

d)

variable