Chapter 2 Vocab Flashcards

1
Q

built-in functions

A

prewritten functions that exist in libraries

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

variable declaration

A

binds a name to a memory location and describes the attributes of the value being stored there

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

pointer

A

the name of an address

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

enumeration type

A

used for variables that can take enumerable ordered set of values

typedef enum {…}

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

lazy evaluation policy

A

an expression will be evaluated only if its value is needed

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

array

A

a homogeneous collection of data elements that are stored in a consecutive block of memory locations

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

user defined functions

A

functions written by the programmer

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

global function/variable

A

a function/variable that exists outside of any function

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

scope rule

A

the scope of a variable is from declaration to the end of the block defined by {}

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

multi-scan compilation

A

the compiler scans the program multiple times

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

forward declaration

A

makes the name of a function known in advanced and must include:
- the return type
- name of the function
- the parameter types
- the names of the parameters

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

basic data types

A

char, int, float, double, void

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

basic modifiers

A

long, short, signed, unsigned, register

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

union type variable

A

a region of shared memory that, over time, can contain different types of values

can only contain one value at any given moment

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

static memory allocation

A

memory locations are statically allocated by the complier during compilation time allowing the memory for the variables to already be available when we want to store data in them

for arrays, you must know the maximum number of elements in advance

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

dynamic memory allocation

A

allocates memory to variables during the execution by the function call

void *malloc(size_t size);

size_t is usually an unsigned int and specifies the number of bytes to be allocates

17
Q

heap

A

a pool of free memory

18
Q

memory leak

A

not collecting garbage as necessary

19
Q

stack

A

a data structure that can contain a set of ordered items

items can be inserted and removed from one end called the top of the stack

20
Q

functions

A

named blocks of code that must be explicitly called

21
Q

in-passing

A

passing variables to a function

22
Q

out-passing

A

passing values out of a function

23
Q

formal parameters

A

the parameters used when defining a function

local variables to the function

24
Q

actual parameters

A

the values or variables we use to substitute for the formal parameters when we call a function

25
Q

call-by-value

A

the formal parameter is initialized to the value of the actual parameter

26
Q

call-by-address

A

the address of the parameter is passed into the local variable of the function

27
Q

call-by-alias

A

the formal parameter is an alias of the actual parameter