Computer Systems Flashcards

1
Q

What is hardware?

A

The physical components of a computer system, such as the cpu, SSD or keyboard.

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

What is software?

A

Any set of instructions that tell the hardware what to do.

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

What’s the difference between system software and application software?

A

System software: manages hardware resources so users don’t have to write their own programs.

Application software: enables users to use apps and a variety of tasks.

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

What are the roles of the operating system?

A

Manages hardware resources.
Provides user interface
Handles file management and multitasking

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

Explain the von Neumann architecture

A

Consists of CPU, memory, input/output devices and control unit.
Programs stored in system memory,p and the. Fetched and executed sequentially.

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

Describe the roles of ALU, control unit, clock, registers, and bus within a CPU.

A

ALU: Performs arithmetic and logic operations.
Control Unit: Coordinates CPU activities.
Clock: Synchronizes tasks.
Registers: Fast storage.
Bus: Connects components.

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

What factors affect CPU performance?

A

Clock speed (GHz).
Cache size.
Number of cores.
Instruction set architecture

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

Explain fetch execute cycle:

A

Fetch: program counter holds memory address of next instruction and the CPU sends this to the memory via the address bus. It’s then retrieved and placed in current instruction register.

Decode: CPU exams instruction in CIR and decides the operation to be performed (add, subtract…..)

Execute: CPU carries out operation and results are stored in the Accumulator. The cycle then repeats for the next instruction.

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

Random access memory and read only firmware differences:

A

Ram is volatile memory you can work on whilst Rom is non volatile firmware you can only view.

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

What is secondary storage and why is it needed?

A

Secondary storage (e.g., hard drives, SSDs) stores data long-term.
Needed because RAM is volatile (loses data when powered off) and stores data permanently somewhere else.

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

Describe optical, magnetic, and solid-state secondary storage

A

Optical: CDs, DVDs (uses laser to) read/write). Lands and pits.
Magnetic: Hard drives (uses magnetic disks).
Solid State: SSDs (no moving parts, faster).

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

What’s cloud storage?

A

Remote data storage accessible by internet

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

What are cloud storage’s advantages and disadvantages?

A

Advantages: Accessibility, scalability, backup.
Disadvantages: Security, reliance on internet.

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

What’s an embedded system?

A

Small computes within devices with limited and specific functions.

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

What are the different types of programming languages?

A

High-Level Languages: These languages allow programmers to write instructions in a language that is easier to understand than low-level languages. Examples include C, C++, Java, and Python.

Low-Level Languages: Low-level languages provide less abstraction from the hardware. They interact directly with the computer’s registers and memory. Examples include assembly language and machine code.

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

Compare compilers and interpreters:

A

Compilers: A compiler takes the entire source code and translates it into object code all at once. The resulting object code can be run independently. Compilers optimize code for efficiency and create executable files.

Interpreters: Interpreters translate source code into object code one instruction at a time. They execute the code immediately. Think of it like a human translator translating sentence by sentence as someone speaks.

17
Q

Describe assemblers:

A

Assemblers convert low-level or assembly language code into machine code. They are used for specific hardware architectures.

18
Q

Advantages and disadvantages of compilers and interpreters:

A

Compilers are quick and efficient but you won’t be able to see a problem in your code until it’s fully translated.

Interpreters are slow but you can see if each line of code is right and make changes accordingly.

19
Q

State features of high level languages:

A

High-Level Languages:
Programmer-friendly and easy to understand.
Less memory-efficient.
Debugging is easier.
Simple to maintain.
Portable across platforms.
Requires a compiler or interpreter for translation.
Examples: C, C++, Java, python

20
Q

State features of low level languages:

A

Low-Level Languages:
Machine-friendly but tough for humans to understand.
High memory efficiency.
Debugging is more complex.
Complex to maintain.
Non-portable (specific to hardware architecture).
Requires an assembler for translation.
Examples: Assembly language, machine code.

21
Q

How do interpreters, compilers, and assemblers differ in program translation?

A

Compilers:
Translate the entire source code into object code (compilation).
Resulting object code can be run independently.
Optimizes code for efficiency.
Supplies executable files.

Interpreters:
Translate source code into object code one instruction at a time (interpretation).
Execute code immediately.
Useful for debugging and dynamic environments.

Assemblers:
Convert low-level or assembly language code into machine code.
Used for specific hardware architectures.
Essential for programming at the hardware level.

22
Q

What are the differences between main memory and secondary storage?

A

Main Memory (Primary Memory):
Temporary storage directly accessible by the CPU.
Holds data and instructions currently being processed.
Faster but volatile (wiped out when the computer is turned off).
Examples: RAM, cache memory.
Secondary Storage (Mass Storage):
Additional storage devices for permanent data retention.
Accessed via primary memory.
Non-volatile (retains data even when power is off).
Examples: Hard disk, solid-state drives, CDs, DVDs.
Provides abundant capacity for long-term storage.