Chapter 6 Flashcards

(13 cards)

1
Q

First-generation programming language

A

Machine language, hexadecimal notation

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

Second-generation programming language

A

Assembly language, uses mnemonic names instead of hexadecimal notation to make it easier to write. (Unique to specific machines)

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

Third-generation programming language

A

Uses high level primitives. (Machine independent)

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

Assembler

A

Converts assembly language to machine language

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

Compiler

A

Converts third generation language to machine language

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

Programming paradigms

A
  • Functional – basic building block: functions.
  • Object-oriented – basic building block: objects.
  • Imperative – basic building block: procedures.
  • Declarative, for example:
  • logic programming – basic building block: logical formulas.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Primitive data types

A
  • Integer: whole numbers; 8/16/32/64 bits; signed/unsigned.
  • Float (real): numbers with fractions (scientific notation); 32/64 bits.
  • Character: symbols; 8/16 bits.
  • Boolean: true/false; (only 1 bit needed, but normally uses more)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Variable

A

named location in primary memory, which can store a value (of some specified type)

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

Literal

A

value of some (specified) type

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

Constant

A

named literal

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

Class

A
  • template from which objects are constructed;

* includes descriptions of both variables and methods (functions).

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

Object

A
  • active program unit containing both data and code;

* called an instance of the class, from which it is constructed

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

Features

A
  • inheritance,
  • encapsulation,
  • polymorphism.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly