Section 4 - Hardware and Software - Programming Language Classification Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is the accumulator?

A

A special memory location where all calculations are carried out

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

What is the control unit?

A

The location in the processor that decoded instructions

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

How is an instruction typically formatted in machine code?

A

They have an opcode and an operand

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

What is machine code?

A

Binary code that the computer can directly execute

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

What is a low-level programming language?

A

A programming language where the code reflects how the computer carries out the instruction

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

What is assembly code?

A

A low-level programming language. The opcode was replaced by a short mnemonic and the operand was replaced by a decimal or hexadecimal number

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

What was the first high-level language?

A

FORTRAN

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

What are imperative high-level languages?

A

Each instruction is a command to perform some step in the program, with each step being a step-by-step instruction

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

What are the advantages of high-level languages?

A
  • They are relatively easy to learn
  • It is easier and faster to write a program in a high-level language
  • They are easier to understand, debug and maintain
  • They are not dependent on the architecture of a particular machine
  • There are many built-in library functions
  • Different high-level languages are written for particular types of problems
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Why is assembly code still used?

A

When a program need to:
- Execute as fast as possible
- Occupy as little space as possible
- Manipulate individual bits and bytes

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

What is assembly code still used in?

A
  • Embedded systems
  • Interrupt handlers
  • Mobile phones
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are the different types of translators?

A
  • Assemblers
  • Compilers
  • Interpreters
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is an assembler?

A

A program that will take each assembly language instruction and convert it to the corresponding machine code

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

What is the source code of an assembler?

A

The assembly code input

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

What is the object code of an assembler?

A

The machine code output

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

What is a complier?

A

A program that translates a high-level language into machine code. It does this by scanning through the entire source code and then reconstructing it in machine code

17
Q

What is the source code of a compiler?

A

The code written by the programmer that is used as input data

18
Q

Why is object code from a compiler hardware-specific?

A

Different hardware platforms require different compilers

19
Q

What is an interpreter?

A

A translator that contains subroutines to carry out each high-level instruction.

20
Q

How does an interpreter work?

A

It looks at each line of the source program, analyses it, and if there are no syntax errors it will call the appropriate subroutine within its own program code to execute the command

21
Q

What is the bytecode?

A

The result of some high-level languages translation process

22
Q

What is the bytecode interpreter?

A

The interpreter for bytecode

23
Q
A