Names, Scopes, Binding, and Control Flow Flashcards

(50 cards)

1
Q

What is the main driving force behind the design of modern languges?

A

Ease of programming

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

High level programming is more a______

A

Abstract

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

Abstraction means that complexity becomes

A

Manageable

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

What do the following mean:

Name

Binding

Scope

Binding Time

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

What is static binding vs dynamic binding?

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

Early binding times have greater ____

Late binding times have greater _____

A

Early binding times: greater efficiency

Late binding times: greater flexibility

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

What is the difference between compiled and interpreted languages?

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

What is the lifetime of name-to-binding?

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

What is a dangling reference?

A

When the object’s lifetime is less than the binding’s lifetime

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

What is the scope of a binding?

A

The textual region of the program in which the binding is active

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

What is the difference between the following storage allocation mechanisms:

Static

Stack

Heap

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

What is static allocation

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

What is stack-based allocation?

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

What is a Frame for a subroutine call?

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

What is heap allocation?

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

For heap allocation, what are the differene between the following allocation algorithms:

first fit, best fit

pool allocation

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

Examine some of the differences between explicit deallocation and implicit deallocation?

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

What is a subroutine entry?

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

What is a subroutine exit?

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

What is a referencing environment?

22
Q

What is static scoping?

23
Q

What are some important things for scope rules

24
Q

Examine the following nested subroutine graphic:

25
What are static links?
26
What is declaration order?
27
Examine the following examples for declaration order:
28
What is dynamic scoping?
29
Examine the following dynamic scoping examples;
30
What is a referencing environment?
31
What is shallow binding vs deep binding?
32
What is subroutine closure?
33
Why does binding time matter with static scoping?
34
Consider the following deep binding example:
35
What are the following: First-class values Second-class values Third-class
36
Examine the following with regards to first-class subroutines:
37
What are lambda expressions?
38
Examine the following lambda function examples:
39
What is sequencing's role in imperative and functional languages?
40
What is recursion's role in imperative and functional languages?
41
Does logic programming have control flow
42
What are the differences between: prefix postfix infix
43
What is the difference between the value model and the reference model?
44
What are the following: - call by value - call by reference - call by sharing - call by name - call by need
45
What is short circuiting?
46
Is recursion generally more efficient that iteration?
No
47
What type of recursion is as fast as iteration? How?
48
What is applicative evaluation order?
49
What is normal-order evaluation order?
50
What is lazy vs strict evaluation?
Lazy evaluation stops evaluating params when it knows the result: