Deck 2: Basic Elements of C++

Full screen (f)
exit full mode
Question
What is an enumeration type?
Use Space or
up arrow
down arrow
to flip the card.
Question
The data type ____________________ has only two values: true and false.
Question
The ____________________ data type, the smallest integral data type, is used to represent characters.
Question
A(n) ____________________ operator has only one operand.
Question
You can use ____________________ to override the order of precedence rules.
Question
Describe the associativity of arithmetic operators.
Question
An expression that has operands of different data types is called a(n) ____________________.
Question
What is a named constant?
Question
What is the syntax for declaring single or multiple variables?
Question
If you refer to an identifier without declaring it, the compiler will generate an error message.
Question
A variable is said to be ____________________ the first time a value is placed in it.
Question
The semantic rules of a language tell you what is legal and what is not legal.
Question
The semicolon is also called the ____________________.
Question
How can you make run-together words easier to understand?
Question
Why are comments important in a program?
Question
What does these terms refer to:

- \gg Arithmetic expression:
Question
What does these terms refer to:

- \gg Assignment operator:
Question
What does these terms refer to:

- \gg Associativity:
Question
What does these terms refer to:

- \gg Binary operator:
Question
What does these terms refer to:

- \gg Cast operator (type conversion, type casting):
Question
What does these terms refer to:

- \gg Character arithmetic:
Question
What does these terms refer to:

- \gg Collating sequence:
Question
What does these terms refer to:

- \gg Compound assignment statement:
Question
What does these terms refer to:

- \gg Computer program:
Question
What does these terms refer to:

- \gg Data type:
Question
What does these terms refer to:

- \gg Declaration statements:
Question
What does these terms refer to:

- \gg Decrement operator:
Question
What does these terms refer to:

- \gg Double precision:
Question
What does these terms refer to:

- \gg Enumeration:
Question
What does these terms refer to:

- \gg Executable statements:
Question
What does these terms refer to:

- \gg Floating-point:
Question
What does these terms refer to:

- \gg Floating-point (decimal) expression:
Question
What does these terms refer to:

- \gg Floating-point notation:
Question
What does these terms refer to:

- \gg Function (subprogram):
Question
What does these terms refer to:

- \gg Identifier:
Question
What does these terms refer to:

- \gg Implicit type coercion:
Question
What does these terms refer to:

- \gg Increment operator:
Question
What does these terms refer to:

- \gg Initialized:
Question
What does these terms refer to:

- \gg Input (read) statement:
Question
What does these terms refer to:

- \gg Integral:
Question
What does these terms refer to:

- \gg Integral expression:
Question
What does these terms refer to:

- \gg Keyword:
Question
What does these terms refer to:

- \gg Mixed expression:
Question
What does these terms refer to:

- \gg Named constant:
Question
What does these terms refer to:

- \gg Null (empty) string:
Question
What does these terms refer to:

- \gg Operands:
Question
What does these terms refer to:

- \gg Output statement:
Question
What does these terms refer to:

- \gg Post-decrement:
Question
What does these terms refer to:

- \gg Post-increment:
Question
What does these terms refer to:

- \gg Precision:
Question
What does these terms refer to:

- \gg Pre-decrement:
Question
What does these terms refer to:

- \gg Predefined (standard) function:
Question
What does these terms refer to:

- \gg Pre-increment:
Question
What does these terms refer to:

- \gg Preprocessor:
Question
What does these terms refer to:

- \gg Programming:
Question
What does these terms refer to:

- \gg Programming language:
Question
What does these terms refer to:

- \gg Prompt lines:
Question
What does these terms refer to:

- \gg Reserved words (keywords):
Question
What does these terms refer to:

- \gg Run-together word:
Question
What does these terms refer to:

- \gg Self-documenting identifiers:
Question
What does these terms refer to:

- \gg Semantic rules:
Question
What does these terms refer to:

- \gg Semantics:
Question
What does these terms refer to:

- \gg Simple assignment statement:
Question
What does these terms refer to:

- \gg Simple data type:
Question
What does these terms refer to:

- \gg Single precision:
Question
What does these terms refer to:

- \gg Source code:
Question
What does these terms refer to:

- \gg Source code file (source file):
Question
What does these terms refer to:

- \gg Statement terminator:
Question
What does these terms refer to:

- \gg Stream extraction operator:
Question
What does these terms refer to:

- \gg Stream insertion operator:
Question
What does these terms refer to:

- \gg String:
Question
What does these terms refer to:

- \gg Syntax rules:
Question
What does these terms refer to:

- \gg Token:
Question
What does these terms refer to:

- \gg Unary operator:
Question
What does these terms refer to:

- \gg Variable:
Question
What does these terms refer to:

- \gg Walk-through:
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/76
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 2: Basic Elements of C++
1
What is an enumeration type?
C++'s method for allowing programmers to create their own simple data types
2
The data type ____________________ has only two values: true and false.
bool
3
The ____________________ data type, the smallest integral data type, is used to represent characters.
char
4
A(n) ____________________ operator has only one operand.
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
5
You can use ____________________ to override the order of precedence rules.
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
6
Describe the associativity of arithmetic operators.
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
7
An expression that has operands of different data types is called a(n) ____________________.
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
8
What is a named constant?
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
9
What is the syntax for declaring single or multiple variables?
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
10
If you refer to an identifier without declaring it, the compiler will generate an error message.
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
11
A variable is said to be ____________________ the first time a value is placed in it.
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
12
The semantic rules of a language tell you what is legal and what is not legal.
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
13
The semicolon is also called the ____________________.
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
14
How can you make run-together words easier to understand?
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
15
Why are comments important in a program?
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
16
What does these terms refer to:

- \gg Arithmetic expression:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
17
What does these terms refer to:

- \gg Assignment operator:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
18
What does these terms refer to:

- \gg Associativity:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
19
What does these terms refer to:

- \gg Binary operator:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
20
What does these terms refer to:

- \gg Cast operator (type conversion, type casting):
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
21
What does these terms refer to:

- \gg Character arithmetic:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
22
What does these terms refer to:

- \gg Collating sequence:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
23
What does these terms refer to:

- \gg Compound assignment statement:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
24
What does these terms refer to:

- \gg Computer program:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
25
What does these terms refer to:

- \gg Data type:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
26
What does these terms refer to:

- \gg Declaration statements:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
27
What does these terms refer to:

- \gg Decrement operator:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
28
What does these terms refer to:

- \gg Double precision:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
29
What does these terms refer to:

- \gg Enumeration:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
30
What does these terms refer to:

- \gg Executable statements:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
31
What does these terms refer to:

- \gg Floating-point:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
32
What does these terms refer to:

- \gg Floating-point (decimal) expression:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
33
What does these terms refer to:

- \gg Floating-point notation:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
34
What does these terms refer to:

- \gg Function (subprogram):
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
35
What does these terms refer to:

- \gg Identifier:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
36
What does these terms refer to:

- \gg Implicit type coercion:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
37
What does these terms refer to:

- \gg Increment operator:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
38
What does these terms refer to:

- \gg Initialized:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
39
What does these terms refer to:

- \gg Input (read) statement:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
40
What does these terms refer to:

- \gg Integral:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
41
What does these terms refer to:

- \gg Integral expression:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
42
What does these terms refer to:

- \gg Keyword:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
43
What does these terms refer to:

- \gg Mixed expression:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
44
What does these terms refer to:

- \gg Named constant:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
45
What does these terms refer to:

- \gg Null (empty) string:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
46
What does these terms refer to:

- \gg Operands:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
47
What does these terms refer to:

- \gg Output statement:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
48
What does these terms refer to:

- \gg Post-decrement:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
49
What does these terms refer to:

- \gg Post-increment:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
50
What does these terms refer to:

- \gg Precision:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
51
What does these terms refer to:

- \gg Pre-decrement:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
52
What does these terms refer to:

- \gg Predefined (standard) function:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
53
What does these terms refer to:

- \gg Pre-increment:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
54
What does these terms refer to:

- \gg Preprocessor:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
55
What does these terms refer to:

- \gg Programming:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
56
What does these terms refer to:

- \gg Programming language:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
57
What does these terms refer to:

- \gg Prompt lines:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
58
What does these terms refer to:

- \gg Reserved words (keywords):
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
59
What does these terms refer to:

- \gg Run-together word:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
60
What does these terms refer to:

- \gg Self-documenting identifiers:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
61
What does these terms refer to:

- \gg Semantic rules:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
62
What does these terms refer to:

- \gg Semantics:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
63
What does these terms refer to:

- \gg Simple assignment statement:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
64
What does these terms refer to:

- \gg Simple data type:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
65
What does these terms refer to:

- \gg Single precision:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
66
What does these terms refer to:

- \gg Source code:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
67
What does these terms refer to:

- \gg Source code file (source file):
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
68
What does these terms refer to:

- \gg Statement terminator:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
69
What does these terms refer to:

- \gg Stream extraction operator:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
70
What does these terms refer to:

- \gg Stream insertion operator:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
71
What does these terms refer to:

- \gg String:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
72
What does these terms refer to:

- \gg Syntax rules:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
73
What does these terms refer to:

- \gg Token:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
74
What does these terms refer to:

- \gg Unary operator:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
75
What does these terms refer to:

- \gg Variable:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
76
What does these terms refer to:

- \gg Walk-through:
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 76 flashcards in this deck.