CH_2_Intro_To_C++ Flashcards

1
Q

Namespace

A

ANSI C++ feature that allows programmers to create a scope for global identifiers. They are useful in preventing errors when two or more global declarations use the same name.d

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Function

A

A group of one or more programming statements that has a name.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Stream Insertion Operator

A

&laquo_space;The item immediately to the right of the operator is “inserted” into the ouput stream that is sent to cout to be displayed on the screen.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Stream Manipulator

A

Indicates how a stream of output characters should be displayed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Literal

A

A piece of data that is written directly into a program’s code.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Identifier

A

A programmer-defined name that represents some element of a program.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Mantissa

A

The fractional part of the common (base-10) logarithm

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

sizeof

A

A special operator that will report the number of bytes of memory being used by any data type or variable.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Variable Initialization

A

When a variable is assigned at the time it is defined.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Assignment Statement

A

The statement that stores a value in a variable.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Definition Statement

A

The statement that creates a variable and articulates its type.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Variable Scope

A

The part of the program that can access the variable.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Insertion Operator

A

«

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

3 Types of Operators

A
  • Unary
  • Binary
  • Ternary
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Unary Operator

A

Only requires a single operand

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Binary Operator

A

Work with two operands

17
Q

Ternary Operators

A

Required three operands

18
Q

Integer Division

A

If two integers are used with the division operator, the remainder will be truncated.

19
Q

Comments

A

Notes of explanation that document lines or sections of a program

20
Q

Member Function

A

A function that belongs to a Class Type

21
Q

Type Casting