Ch. 1.4: What is a Program Made of? Flashcards

1
Q

What is a programmer-defined identifier?

A

Variables composed by the programmer.

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

What is a variable?

A

A named storage location in the computer’s memory.

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

What is an example of a preprocessor directive?

A

include <iostream></iostream>

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

What is an operator?

A

Perform operations on pieces of data known as operands. E.g. (*) = multiply, (=) = assigned to

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

What is punctuation?

A

Marks the end of a statement. E.g. (;).

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

What is a keyword?

A

Have special meaning in C++ can only be used for intended purpose.

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

What is a line?

A

A single line as it appears in the body of the program.

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

What is a statement?

A

A complete instruction that causes the computer to perform some action.

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

What are the two types of numeric data used in variables?

A

Numbers or integers and floating-point numbers.

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

What variable is “double”?

A

A double type variable is a 64-bit floating data type. It can contain up to 15 digits in total, including those before and after the decimal point.

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