wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Understanding Programming Concepts

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

What is an expression in programming?

a)

A named group of programming instructions.

b)

A combination of operators and values that evaluates to a single value.

c)

A data type that is either true or false.

d)

A command that executes the code within a function.

2.

Which of the following is an assignment operator?

a)

==

b)

!=

c)

=

d)

<=

3.

What is a variable in programming?

a)

A named reference to a value that can be used repeatedly throughout a program.

b)

A data type that is either true or false.

c)

An ordered sequence of characters.

d)

A command that executes the code within a function.

4.

Which of the following is a string?

a)

42

b)

true

c)

"Hello, World!"

d)

3.14

5.

What is a Boolean value?

a)

A named group of programming instructions.

b)

A data type that is either true or false.

c)

A combination of operators and values that evaluates to a single value.

d)

An ordered sequence of characters.

6.

Which of the following is a comparison operator?

a)

+

b)

*

c)

==

d)

/

7.

What is a logical operator?

a)

A named reference to a value that can be used repeatedly throughout a program.

b)

NOT, AND, and OR, which evaluate to a Boolean value.

c)

A command that executes the code within a function.

d)

A combination of operators and values that evaluates to a single value.

8.

What is a conditional statement?

a)

A named group of programming instructions.

b)

A command that executes the code within a function.

c)

Affects the sequential flow of control by executing different statements based on the value of a Boolean expression.

d)

An ordered sequence of characters.

9.

What is a function in programming?

a)

A named reference to a value that can be used repeatedly throughout a program.

b)

A named group of programming instructions. Also referred to as a “procedure”.

c)

A data type that is either true or false.

d)

A combination of operators and values that evaluates to a single value.

10.

What is a function call?

a)

A named reference to a value that can be used repeatedly throughout a program.

b)

A command that executes the code within a function.

c)

A data type that is either true or false.

d)

An ordered sequence of characters.