stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
C++ Programming Concepts Ch 2 BASICS Flashcards | StudBud
Explore
/
C++ Programming Concepts Ch 2 BASICS
C++ Programming Concepts Ch 2 BASICS
15 terms
·
StudBud Administration
·
85 plays
"Programming with C++ basic concepts #computer #programming #c #coding #visual #studio
Flashcards
15 cards
F
Practice quiz
P
Host live
L
Questions
15
Answers
1
Positive and negative whole numbers and 0 are stored in variables with this data type.
char
float
int
double
2
The values true and false are stored in variables with this data type.
char
int
double
bool
3
An example of a self-documenting variable name is ____________.
the name 'age' used to store person's birth month as integer
the name 'num' used to store a person's middle initial
the name 'age' used to store a person's age as an integer
the name 'x' used to store person's height in cm is integer
4
In ___________structures, the computer repeats particular statements a certain number of times
branching
sequence
selection
looping
5
Identify the operand(s) in the expression: num+4;
+
num
4
num and 4
6
Real numbers are stored in variables with this data type.
char
bool
double
string
7
What is the value of this expression: 23 / 5
5
4
4.6
0
8
The Boolean data type stores the values true or false.
True
False
9
What is the value of this expression: 23 % 5
0
3
4.6
4
10
Algorithms are written in this language.
BASIC
pseudocode
Visual C++
English
11
Data is represented by binary digits called ___________.
bits
bytes
ASCII codes
pseudocode
12
Which of these is a valid variable name?
middle initial
form1040
123OakSt
double
13
Single characters (for example 'A') are stored in variables with this data type.
bool
int
char
double
14
"Hello World!" could be stored in a variable of this data type.
String
textBox
double
text
15
The string data type __________.
is a primitive type
is the same as the char data type
is a numeric type
is used to store multiple characters