Chapter 1 - C++ Basics Flashcards

1
Q

Functions

A

All procedure-like entities. In other programming languages, known as; procedures, methods, or sub programs.

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

return 0;

A

This statement ends the invocation of the function.

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

String

A

The text inside quotation marks.

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

Identifier

A

The name of a variable (or other item you might define in a program). In C++, it must start with either a letter or the underscore symbol, and all the rest of the characters must be letters, digits, or the underscore symbol.

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

Case-sensitive

A

Distinguishes between upper and lowercase letters in the spelling of identifiers.

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

Keyword aka reserved word

A

Have a predefined meaning and cannot be used as names for variables or anything else.

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

Declare

A

To do this means to tell the compiler what kind of data you will be storing in the variable.

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

Floating-point number

A

A number with a decimal point.

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

Unsigned

A

A version of an integer type that includes only nonnegative values.

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

Assignment statement

A

The most direct way to change the value of a variable. The equal sign is used as the operator. It always consists of a variable on the left-handed side of the equal sign and an expression on the right-hand side. It ends with a semicolon.

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

Uninitialized variable

A

A variable that has not been given a value. Will simply have a garbage value that is determined by whatever pattern of zeros and ones was left in its memory location by the last program that used that portion of memory.

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

Literal constant

A

A name for one specific value. They do not change value; variables can change their values.

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

C-strings

A

Strings in double quotes.

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

Escape sequence

A

A backslash \, preceding a character that tells the compiler the sequence following the backlash does not have the same meaning as the character appearing by itself.

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

Modifier

A

Modifies the variables being declared.

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

Precedence rules

A

Determine the order in which the operations, such as addition and multiplication, are performed if the user omits parentheses.