Week 3 Flashcards

(24 cards)

1
Q

Program vs Process

A

A program is a set of instructions that a computer executes.
whereas a Process is a running instance of the program (actively being executed)

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

What is a characteristic of high-level programs?

A

High-level programs are easier to read and write but cannot be executed directly by the CPU.

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

What is machine code?

A

Machine code is a low-level language consisting of sequences of instructions.

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

What does ISA stand for?

A

ISA stands for Instruction Set Architecture.

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

What does the ISA define?

A

The ISA is the set of instructions that a CPU understands.

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

List some types of instructions included in the ISA.

A
  • Performing arithmetic operations
  • Moving data
  • Executing conditions and loops
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are registers in a CPU?

A

Registers are small, fast memory cells inside the CPU.

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

What is the purpose of general-purpose registers?

A

General-purpose registers hold temporary values for calculations.

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

What is the role of special-purpose registers?

A

Special-purpose registers are used internally by the CPU.

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

What is the function of memory in relation to the CPU?

A

Memory stores both machine code instructions and data.

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

What is a memory address?

A

Each memory location has an address and contains a value.

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

Define assembly language.

A

Assembly language is a human-readable form of machine code.

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

What does an assembler do?

A

An assembler translates assembly language into machine code.

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

What is the role of a compiler?

A

A compiler translates high-level programs into machine code

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

What does an interpreter do?

A

An interpreter directly executes high-level programs without compiling them into machine code.

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

Fill in the blank: The CPU executes _______ stored in memory.

17
Q

What is computer memory?

A

The storage space within a computer where data and instructions are temporarily stored for quick access by the CPU

18
Q

What is the function of computer memory?

A

Allows the computer to run programs and access data rapidly

19
Q

What type of memory is most commonly used for actively running programs?

A

Random Access Memory (RAM)

20
Q

What is a characteristic of RAM?

A

Volatile, meaning it loses data when the power is turned off

21
Q

What is the primary purpose of ROM? (Read-only memory)

A

Stores essential firmware and software that are permanently stored

22
Q

What is a key characteristic of ROM?

A

Non-volatile, meaning it retains data even when the power is off

23
Q

Fill in the blank: RAM is _______ meaning it loses data when the power is turned off.

24
Q

Fill in the blank: ROM is _______ meaning it retains data even when the power is off.