Chapter 9 Flashcards

1
Q

A machine instruction uses how many bytes of memory?

A

4

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

Converting code that a programmer writes into assembly code is called

A

Compiling

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

What has made computers faster?

A

Making everything smaller

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

Which of the following is used for input and output?

A

Hard disk

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

The processor has how many moving parts?

A

0

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

From smallest to largest, the correct order of prefixes is

A

kilo, mega, giga, tera

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

Modern computers know

A

about a hundred instructions

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

Rerunning a program with the same data produces

A

exactly the same result everytime

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

If this.Opacity += 1.0; increases the opacity, what line of code would decrease the opacity?

A

this.Opacity –= 1.0;

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

Which of the following characteristics of a computer depends on the number of Fetch/Execute Cycles it performs per second?

A

Speed

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

______ deterministically execute instructions to process information.

A

Computers

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

Without the _____ , the processor is not capable of doing anything interesting.

A

Operating Systems

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

_____ is an acronym for the name of the location where computer programs run and data is stored.

A

RAM

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

The _____ part of the computer is the hardware part of the Fetch/Execute Cycle.

A

Control Unit

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

In addition to fetching instructions, the F/E cycle also fetches

A

Hardware

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

The math on the computer is done by the

A

ALU

17
Q

The ____ encodes keystrokes into binary form for the computer

A

Keyboard

18
Q

The computer’s clock speed is measured in ______.

A

Hertz

19
Q

Every memory location has a(n)

A

Address

20
Q

The _____ keeps track of the next instruction to execute.

A

Program Counter

21
Q

____ is a long list of words, more accurately, a long series of 0’s and 1’s that make up a computer program.

A

binary object file

22
Q

A ____ is required for every peripheral connected to your computer.

A

driver

23
Q

_____ is a program that extends the operations a computer can perform beyond the hardwired machine instructions.

A

operating system

24
Q

What is the speed of the processor on your personal computer? Explain where you found this information.

A

Settings —> about this PC/Computer

25
Q

How many bits in a kilobyte? Megabyte? Terabyte? (Express as decimal numbers and as powers of 2.)

A

Kilobyte: 2^10 =1024 bytes 1024 x 8 = 8192 bits
Megabyte: 2^20 = 1,048,576 bytes 1,048,576 x 8 = 8,388,608 bits
Terabyte: 2^40 = 1.0995116e+12 bytes 1.0995116e+12 *8 = 8.7960928e+12 bytes

26
Q

Explain what an “idle loop” is in your own words. When does a computer start this kind of loop?

A

An idle loop is a background system thread, which the scheduler executes when no other threads are ready to run.
When a computer finishes its work, it enters an idle loop, just checking to see if there are any external inputs.

27
Q

Where does the Fetch part of the cycle get its instructions from? How does it know exactly where to go? Explain your answer in detail.

A

The Program Counter starts at OOOO. This means that the first address in RAM where the computer will look for instruction is at 0000.

The computer needs somewhere to store the current address in RAM that it is looking for. This is what the Memory Address Register (MAR) is for. 0000 is therefore copied into the MAR. A signal is now sent down through the Address bus to the RAM. The Control Unit sends out a memory read signal, and the contents of the address 0000 are copied through the data bus to the Memory Data Register.

As the data fetched during the fetch stage is an instruction, it is copied into the Instruction Register (IR).As the first instruction has been fetched, the system is at the end of the Fetch stage of the cycle. The program counter can be incremented by 1, so the system is ready to read the next instruction when the next Fetch cycle starts.

28
Q

Computers cannot read high-level programming languages. Explain how a programmer can be understood by a computer.

A

The computer doesn’t actually learn the language; instead, it parses the language and does what the lines of code tell it to do.

29
Q

Explain the following instruction: ADD 3000, 1050, 1900.

A

It means to add the value in memory word 1050 to the value of the memory word 1900 and store the result in memory word 3000.

30
Q

List the five steps in the Fetch/Execute cycle, and describe each. Explain how these steps correspond to eating at a restaurant.

A
  1. Instruction Fetch (IF) - Getting the instruction
  2. Instruction Decode (ID) - Figuring out what to do
  3. Data Fetch (DF) - Gathering the data needed to do it
  4. Instruction Execution (EX) - Doing it
  5. Result Return (RR) - Save Result
    At a restaurant you get the menu (IF), then figure out what you want to order (ID), formulate in your head your order to relay to the wait staff (DF), give your order (EX), and receive your order (RR).
31
Q

A megabyte is 1,048,576 bytes. Explain why it is not 1,000,000.

A

Every byte must have an address; one million addresses require 20 bits, but 220 totals 1,048,576, so extra bytes are included to match the number of addresses

32
Q

List 10 devices that can be connected to a computer, and classify each as “input”, “output”, or “I/O”.

A

Mouse - I
Joystick - I
Keyboard - I
Touchpad - I
Microphone - I
Printer - O
Projector - O
Speaker - O
Headphone - O
Monitor - O