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