Final exam Flashcards

1
Q

Lazy Evaluation in Haskell

A

Expressions are never evaluated until they are needed

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

Evaluation in imperative languages

A

Eager evaluation, kimited lazy evaluation on ‘and’ and ‘or’

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

Imperative Languages

A

Conditionals, loops, subroutines, variables are typically local to a subroutine

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

Object Oriented Language

A

describes objects and the ways they interact.
principal concern is sending messages to objects.
Classes and inheritance hierarchies

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

Functional languages

A

Focus on functions and the application of functions to values. Do not include loops, side-effect free, No modifiable global state

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

Logical Languages

A

Program is a collection of facts and inference rules.
Unification and backtracking to satisfy the goal.

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