stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
C++ Fundamentals Flashcards | StudBud
Explore
/
C++ Fundamentals
C++ Fundamentals
24 terms
·
StudBud Administration
Test your knowledge on the basics of C++ programming language and concepts
Flashcards
24 cards
F
Practice quiz
P
Host live
L
Questions
24
Answers
1
What is variable scope?
Variable's lifetime
Variable's size
Variable's type
Variable's value
2
What does the const modifier do?
Allocates memory
Declares constants
Handles errors
Declares variables
3
What is the result of 3 / 4?
1
0
0.75
3
4
A byte consists of how many bits?
16
8
32
4
5
What is the result of 7 % 4?
3
4
1
2
6
What is a variable?
Named storage location
Operator
Memory address
Data type
7
What is the result of 3 + 5 * 7?
38
56
40
36
8
What is a single-line comment?
/* comment */
// comment
--
# comment
9
Which type stores real numbers?
double
int
bool
char
10
What is the result of 4 - 6?
-2
2
0
4
11
What is operator precedence?
Order of operations
Error handling
Variable declaration
Memory allocation
12
What does the >> operator do?
Extracts from stream
Multiplies values
Adds values
Divides values
13
What does type coercion do?
Handles errors
Allocates memory
Converts types automatically
Declares variables
14
Identifiers can start with a digit
True
False
15
What is a semantic error?
Memory error
Logic mistake
Spelling mistake
Runtime error
16
What does the 'auto' keyword do?
Memory allocation
Error handling
Declares constants
Automatic type detection
17
What is RAM used for?
Temporary storage
Data processing
Networking
Permanent storage
18
C++ has 84 keywords
True
False
19
Assignment operator is =
False
True
20
What is a logical error?
Spelling mistake
Logic mistake
Runtime error
Memory error
21
What does the const keyword do?
Allocates memory
Declares constants
Handles errors
Declares variables
22
What does the sizeof() operator do?
Declares variables
Returns memory size
Allocates memory
Handles errors
23
What is the result of 3.0 / 4.0?
3
1
0.75
0
24
What is a syntax error?
Memory error
Spelling/grammar mistake
Runtime error
Logic mistake