Chapter 2: Prolog, Ada, and Smalltalk Flashcards

(13 cards)

1
Q

What is a nonprocedural language?

A

A language in which programs describe the form or characteristics of the result rather than the steps to compute it

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

What are the two kinds of statements that populate a Prolog database?

A

Facts and rules

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

What is the primary application area for which Ada was designed?

A

Embedded systems

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

What are the concurrent program units of Ada called?

A

Tasks

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

What Ada construct provides support for abstract data types?

A

Packages

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

What populates the Smalltalk world?

A

Exclusively objects

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

What three concepts are the basis for object-oriented programming?

A

Data abstraction (classes), inheritance, and polymorphism (dynamic binding)

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

Why does C++ include the features of C that are known to be unsafe?

A

To maintain backward compatibility and avoid performance penalties

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

From what language does Objective-C borrow its syntax for method calls?

A

Smalltalk

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

What programming paradigm supported by most modern languages is not supported by Go?

A

Traditional object-oriented programming, specifically inheritance

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

What is the primary application for Objective-C?

A

Mac OS X and iPhone software

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

What language designer worked on both C and Go?

A

Ken Thompson

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

What do the Ada and COBOL languages have in common?

A

Both were developed for and mandated by the U.S. Department of Defense (DoD)

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