PL Flashcards

1
Q

primitive, composite data types

A

primitive: basic data types (int, float, boolean)
building blocks
directly stores values in memory

composite: (array, class, interface)
structures to build with
can store multiple values

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

integer types

A

signed: positive, negative, zero
more positive and negative values
int8..64

unsigned: only non-negative whole numbers
more positive values
uint8..64

memory usage: 8..64 bits
operations: basic arithmetic operations

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

enumeration types

A

enumeration types: usage, definition, implementation, benefits.

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

common derived types

A

common derived types: arrays, pointers, classes and structures.

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

compiler

A

compiler:
source,
front end(syntax analyzer, semantics analyzer),
intermediate code generator,
back end(mach ind optimizer, code generator, mach dep optimizer),
machine code.

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

loader

A

loader: loading, preparing and execution for files.
source program,
translator,
object modules,
linker,
binary program,
(loader, data)
binary program,
result.

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

implementation methods

A

implementation methods:
execution,
compilation,
interpretation,
hybrid.

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

code execution

A

code execution:
source code,
compiler,
object node, library,
linker,
executable program.

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

compiler architecture

A

compiler architecture:
source program,
lexical analyzer,
syntax analyzer,
semantics analyzer,
intermediate code generator,
code optimizer,
code generator,
target program.

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

front end vs back end

A

front end: checks if the program written correctly
back end: translation into assembly.

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

advantages of compiling:

A

advantages of compiling:
free from lexical errors,
free from syntax errors,
free from semantics errors,
even complex programs are fast,
risks reduced.

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

composite data types

A

composite data types: complex data structure.
character string, pointers, user defined data types, files.

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

structured data types

A

structured data types: create new data types and operations.
records, arrays, lists, sets.

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