
Variables, Values, and Constants Quiz
Authored by Yassmin Helaly
Others
Professional Development

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a variable in programming?
A constant value that cannot be changed
A predefined keyword in C++
A value stored in a program's execution
A memory location with a name and a type
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the contents of a variable referred to as?
Value
Identifier
Type
Keyword
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the assignment operator in C++ do?
Deletes a variable
Copies the value of a variable
Declares a new variable
Increments a variable
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a constant in programming?
A keyword in C++
A variable that changes its value
A storage entity whose value cannot be changed
A temporary value in a program
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the components of a C++ program?
Values and literals
Source code and tokens
Comments and keywords
Variables and constants
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of an identifier in C++?
To store a value
To declare a variable
To define a constant
To name an entity
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the size of a bool data type in C++?
4 bytes
2 bytes
8 bytes
1 byte
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?