Levels of Architecture Flashcards

1
Q

Level 0

A

Digital logic

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

Level 1

A

Microarchitecture

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

Level 2

A

Instruction sets

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

Level 3

A

Operating system

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

Level 4

A

Assembly language

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

Level 5

A

High-level languages (Python, Java, etc.)

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

Compiler

A

Translates high-level languages into machine code (i.e. binary)

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

Before compiling, the user must first identify…

A

Instruction set architecture, operating system and programming language

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

True or false: Compilers inform the user of all errors in the program

A

False! Compilers only inform users of the first error it finds.

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

True or false: Compilers translate the whole program at the same time

A

True! This means that programs only need to be compiled once.

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

Assembler

A

Translates assembly language into machine code

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

Interpreter

A

Doesn’t translate programs into machine code, instead reads it line-by-line

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

How do the levels of architecture work together to run a program?

A
  1. Program is written in high-level language
  2. Program is compiled and assembled
  3. OS interprets program
  4. OS uses instructions to translate program into machine code
  5. Microarchitecture interprets machine code
  6. Signals and logic gates are used to work with the hardware
How well did you know this?
1
Not at all
2
3
4
5
Perfectly