What is a variable in programming?

C++ Variables, Literals, and Constants Quiz

Quiz
•
Computers
•
University
•
Easy
N M
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A keyword in C++
A fixed value that cannot change
A container to hold data
A type of data structure
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid variable name?
first name
first_name
first-name
1stVariable
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the 'const' keyword do in C++?
Declares a constant whose value cannot change
Declares a data type
Declares a variable that can change
Declares a function
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a type of literal in C++?
Dynamic literal
Integer literal
Floating-point literal
String literal
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the size of an 'int' data type in C++?
1 byte
4 bytes
2 bytes
8 bytes
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid escape sequence in C++?
'n'
\n
't'
\t
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the range of values that an 'int' can store in C++?
0 to 255
-2147483648 to 2147483647
-32768 to 32767
-128 to 127
Create a free account and access millions of resources
Similar Resources on Quizizz
12 questions
C Practice Test 1

Quiz
•
University
12 questions
C Basics

Quiz
•
University
11 questions
Quiz 2: C++ Basics

Quiz
•
University
10 questions
Java Static

Quiz
•
University
10 questions
OOPJ- Data Types-Java

Quiz
•
University
11 questions
C Language

Quiz
•
10th Grade - University
10 questions
Java Unit 1

Quiz
•
University
14 questions
Java Operators

Quiz
•
University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade