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