stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
C++ Programming Concepts MCB Flashcards | StudBud
Explore
/
C++ Programming Concepts MCB
C++ Programming Concepts MCB
25 terms
·
StudBud Administration
"Programming with C++ basic concepts
Flashcards
25 cards
F
Practice quiz
P
Host live
L
Questions
25
Answers
1
Identify the operand(s) in the expression: num+4;
num and 4
num
+
4
2
In ___________structures, the computer repeats particular statements a certain number of times
sequence
looping
branching
selection
3
found = true and num = 6, (!found) || (num > 6) is true.
False
True
4
What is the value of this expression: 23 % 5
0
4
3
4.6
5
In a for loop, which one is executed first?
for loop statement
update statement
intial statement
loop condition
6
Which of the following loops is guaranteed to execute at least once?
while
for
do...while
break
7
The value of the expression 7 + 8 <= 15 is true.
True
False
8
An example of a self-documenting variable name is ____________.
the name 'x' used to store person's height in cm is integer
the name 'age' used to store person's birth month as integer
the name 'age' used to store a person's age as an integer
the name 'num' used to store a person's middle initial
9
"Hello World!" could be stored in a variable of this data type.
textBox
text
double
String
10
If a double is represented in 8 bytes, a float is represented in ____________.
one byte
four bytes
sixteen bytes
eight bytes
11
The expression !(x > 10) is equivalent to the expression x < 10.
true
false
12
Double-precision real numbers are stored in variables with this data type.
double
char
bool
float
13
What is the value of this expression: 23 / 5
5
4.6
0
4
14
In C++, && has a higher precedence than ||.
False
True
15
__________________loops are called post-test loops
sentinel controlled while loop
do ...while
while
for
16
Which of these is a valid variable name?
middle initial
123OakSt
double
form1040
17
Algorithms are written in this language.
pseudocode
BASIC
English
Visual C++
18
Data is represented by binary digits called ___________.
bits
ASCII codes
bytes
pseudocode
19
__________________loops are called pre -test loops
do...while
break
while
sentinel controlled while loop
20
The string data type __________.
is used to store multiple characters
is a numeric type
is a primitive type
is the same as the char data type
21
Positive and negative whole numbers and 0 are stored in variables with this data type.
double
float
char
int
22
Single-precision real numbers are stored in variables with this data type.
float
char
double
int
23
Single characters (for example 'A') are stored in variables with this data type.
bool
int
double
char
24
The values true and false are stored in variables with this data type.
int
bool
double
char
25
The Boolean data type stores the values true or false.
False
True