Chapter 8 Flashcards

(31 cards)

1
Q

activation record

A

the data structure that composes a call stack

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

argument

A

a value that can be passed to the function to be used as input information

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

argument passing

A

passing information from calling function to the called function

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

call stack

A

a data structure that grows and shrinks at one end according to the rule “last in, first out”

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

class scope

A

the area of text within a class

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

declaration

A

a statement that introduces a name into a scope specifyind a type for what is named; optionally, specifying an initializer (value or function body)

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

definition

A

a declaration that fully specifies the entity declared

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

extern

A

keyword states that declaration of the following variable isn’t a definition

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

statement scope

A

e.g. in a for-statement

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

function

A

named sequence of statements

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

return

A

returns a value from a function

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

global scope

A

the area of text outside any other scope

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

pass-by-const-reference

A

give a function a reference (address) to the actual value and forbid to change it

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

initializer

A

an initializer value or a function body

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

pass-by-reference

A

a function operate directly on any object to which we pass a reference

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

namespace

A

organizes classes, functions, classes and types into an identifiable and named part of a program without defining a type

17
Q

nested block

A

blocks within functions and other blocks

18
Q

undeclared identifier

A

a variable or a function name without declaration

19
Q

using declaration

A

“using std::string” = sting means std::string; by default the mentioned member name is used from this namespace

20
Q

using directive

A

make names from mentioned namespace directly accessible

21
Q

forward declaration

A

a declaration of an identifier for which the programmer has not yet given a definition

22
Q

function definition

A

supplies the function body

23
Q

header file

A

a file that contains a collection of declarations

24
Q

initializer

A

an initializer value or a function body

25
local scope
between braces of a block or in a function argument list
26
namespace scope
a named scope nested in a global scope or another namespace
27
parameter
an argument of a function
28
pass-by-value
give a function a copy of the value passed
29
recursion
a function that directly or indirectly calls itself
30
scope
a region of a program text
31
technicalities
a language technical issues