Lecture 8 Flashcards

1
Q

Computers cannot run programs expressed with names, they need ot translate the version with names to _______ ______

A

machine code

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

The translslator from code we can understand to machine code is _____

A

assembler

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

____ _____ is the discipline devoted to best practices in design and
building of programs

A

software engineering

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

What are some of the programming best practices

A
  • Write code that is clear and easy to understand
  • Comment the code
  • Effective use of white space
  • Use built-in constants
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the key features of programming

A
Human readable
-Loop 
-Conditionals (If, then, else)
-Simple operations
 (Give flexibility instead of hard coding)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

The source code to assembler or machine code is called:

A
  • Compiler if translation done completely before program loaded to run
  • Interpreter if translation is done statement by statement as program runs (like DOS based Basic)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

A Program exists as disk file called a _____ _____

that contains _____ _____

A
  • load module

- executable code

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

_____ _____ is software in a form that can be run on a computer. It typically refers to machine language

A

Executable code

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

A _____ loads the load modules into memory

A

loader

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

A ____ job is to resolve undefined references in code by linking library object code with our newly created object code

A

linker

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

What are the different kinds of load modules

A
  • Absolute Loading
  • Relocatable Loading
  • Dynamic Run-Time Loading
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the problem with absolute loading

A

associated (bound ) a real memory address to variables, targets at compile
time

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

What is the problem with relocatable loading?

A

associated (bound) a real memory address to variables, targets at load
time (can’t swap)

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

Dynamic run time loading works by

A

delay that association (binding) until run-time (requires DAT)

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

There are two ways to link .

A

Static: Appended to generated code
Dynamic: called at either load time or run time.

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

Magnetic disk

A

Have > 1 disk coaded with magnetic material (mylar or aluminum)
Disk rotates on center axis
Head is fixed onto arm

17
Q

How much does each sector hold?

A

512 bytes of data

18
Q

Hard disk can have multiple ____ per spindle

A

Platters:
 and use both top and bottom surfaces of each platter
 with multiple heads between platters

19
Q

Data rate of 3600 RPM disk is:

A
  1. 80 Mbytes per second (per surface)

- But head has to be in right place

20
Q

Move a disk ____ is called a see

A

head

21
Q

What is the average latency to access data:

A

average seek time + average rotational delay

22
Q

There are two types of disk spin we need to be aware of:

A
  • Constant angular velocity disc (track size decreased towards center)
  • Constant linear velocity disc (track size constant)
23
Q

Solid state disk remove two delays

A

rotational delay and seek delay are both gone

24
Q

Solid state disk suffer from the fact that cells can’t be overwritten instead you must

A

Write new data to new sector than erase old data (garbage collection)

25
Q

What are the two main standards today for disk controller

A

SCSI and SATA

26
Q

The operating system does not talk directly to disk, instead it talks to ____

A

controller