NEW
Font size
WorksheetsUnderstanding Programming Concepts
Total questions: 10
Worksheet time: 5mins
What is an expression in programming?
A named group of programming instructions.
A combination of operators and values that evaluates to a single value.
A data type that is either true or false.
A command that executes the code within a function.
Which of the following is an assignment operator?
==
!=
=
<=
What is a variable in programming?
A named reference to a value that can be used repeatedly throughout a program.
A data type that is either true or false.
An ordered sequence of characters.
A command that executes the code within a function.
Which of the following is a string?
42
true
"Hello, World!"
3.14
What is a Boolean value?
A named group of programming instructions.
A data type that is either true or false.
A combination of operators and values that evaluates to a single value.
An ordered sequence of characters.
Which of the following is a comparison operator?
+
*
==
/
What is a logical operator?
A named reference to a value that can be used repeatedly throughout a program.
NOT, AND, and OR, which evaluate to a Boolean value.
A command that executes the code within a function.
A combination of operators and values that evaluates to a single value.
What is a conditional statement?
A named group of programming instructions.
A command that executes the code within a function.
Affects the sequential flow of control by executing different statements based on the value of a Boolean expression.
An ordered sequence of characters.
What is a function in programming?
A named reference to a value that can be used repeatedly throughout a program.
A named group of programming instructions. Also referred to as a “procedure”.
A data type that is either true or false.
A combination of operators and values that evaluates to a single value.
What is a function call?
A named reference to a value that can be used repeatedly throughout a program.
A command that executes the code within a function.
A data type that is either true or false.
An ordered sequence of characters.
