
Variables, Values, and Constants Quiz

Quiz
•
Others
•
Professional Development
•
Hard
Yassmin Helaly
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
TA L3

Quiz
•
Professional Development
20 questions
Fundamental of mechanical VENTILATION

Quiz
•
Professional Development
10 questions
7.2 Quiz on Material Deterioration

Quiz
•
Professional Development
10 questions
Morning huddle -30 July

Quiz
•
Professional Development
15 questions
FARAP12A-Post Employment Benefits

Quiz
•
Professional Development
14 questions
Understanding Marketing Concepts

Quiz
•
Professional Development
16 questions
Data Presentation

Quiz
•
Professional Development
15 questions
Exam 2 Page 14

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade