CSCI 223 Quiz 2 Flashcards

1
Q

assembly language definition

A

low-level programming language which is a human readable, textual representation of machine code

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

assembly language facts

A

each statement corresponds to a single machine code; each assembly language is specific to a particular processor architecture (ISA); it contains a lot of hardware info

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

ISA

A

Instruction Set Architecture: interface b/w software and hardware (e.g. x86, ARM, MIPS, …); assembly language is very important to the ISA

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

what translates high level languages to low level languages?

A

the compiler

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

examples of high level programming

A

C/C++, Java, …

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

examples of low level programming

A

x86, ARM, MIPS, …

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

a system is made up of

A

hardware and software

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

software is made up of

A

application programs and the operating system

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

hardware is made up of

A

processor, memory, I/O devices, etc.

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

ALU

A

arithmetic logic unit

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

what is the fastest yet smallest memory space?

A

the register file (inside the CPU)

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

onchip memory versus offchip memory

A

offchip: outside CPU and onchip: inside CPU (e.g. main memory is offchip; cache, register file is onchip)

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

onchip memory has (faster/slower) access time than main memory

A

faster

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

memory hierarchy generalization

A

smaller, faster, and costlier (per byte) storage devices at the top to larger, slower, and cheaper (per byte) storage devices at the bottom

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

memory hierarchy L0

A

registers

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

memory hierarchy L1

A

L1 cache (SRAM)

17
Q

memory hierarchy L2

A

L2 cache (SRAM)

18
Q

memory hierarchy L3

A

L3 cache (SRAM)

19
Q

memory hierarchy L4

A

main memory (DRAM)

20
Q

memory hierarchy L5

A

local secondary storage (local disks)

21
Q

memory hierarchy L6

A

remote secondary storage (distributed file systems, web servers)

22
Q

between levels ? and ? in the memory hierarchy is where we can differentiate onchip (above) and offchip (below)

A

L3 and up is onchip, L4 and below is offchip

23
Q

main memory holds ? retrieved from local disks

A

disk blocks

24
Q

cache holds ? retrieved from memory

A

cache lines

25
Q

CPU registers hold ? retrieved from cache memory

A

words

26
Q

why does the cache matter?

A

for performance; performance depends on access patterns

27
Q

binary representation

A

everything is represented as a sequence of binary numbers in digital systems (0 or 1)

28
Q

byte

A

8 bit chunk; smallest data access unit

29
Q

each byte has a ? memory address

A

unique

30
Q

machine code views memory as ?

A

a very large array of bytes (referred to as virtual memory)

31
Q

widely-used numeral systems

A

decimal (base 10), hexadecimal/hex (base 16), octal (base 8), and binary (base 2)