6.2 Classification Of Programming Languages Flashcards

1
Q

Why did programmers have to write in low-level languages before ?

A

Limited speed and memory of early computers

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

What are low-level languages ?

A

Languages that directly manipulated the processor

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

What are programs written in low-level languages specific to ?

A

Type of Processor they are written for

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

What are the two categories of low level languages ?

A

Machine code and Assembly language.

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

What is Machine Code ?

A

Uses only the binary digits 1 and 0 to represent instructions

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

Why is machine code very powerful ?

A

Directly manipulates a computer’s processor

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

Does Machine code need to be translated ?

A

No

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

Where is machine code extremely important ?

A

embedded systems and real-time applications

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

What does assembly language use in place of binary instructions ?

A

Mnemonics

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

Why is assembly code better then machine code ?

A

More compact and less error prone

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

How does assembly and machine code relate ?

A

Each assembly language instruction has a 1-to-1 correlation to a machine code instruction

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

Are high level languages platform specific ?

A

No

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

What must high-level languages go through before being executed ?

A

Translated into machine code by a compiler or interpreter.

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

How do high level language save time while programming ?

A

Built in Functions

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

What are imperative high-level languages ?

A

Instructions that specify how
the computer should complete a task, in contrast to declarative programming which
describes what a computer should do.

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

What must be used before assembly language can be executed ?

A

An assembler

17
Q

What does a compiler/interpreter do ?

A

Translates source code into object code before it can be executed.