Exam Deck Flashcards

(35 cards)

1
Q

Describe the key function of CPU

A

It controls all operations, executes instructions and processes data.

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

Describe the key function of a motherboard

A

The motherboard is a main circuit board, and it connects all hardware components such as CPU, RAM and I/O devices

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

Describe the key function of an Arithmetic Logic Unit

A

ALU performs arithmetic operations(add,subtract) and logical operations(AND, NOT)

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

Describe the key function of Random Access Memory(RAM)

A

RAM is used to store data and instruction that are actively processed by the CPU. It is fast and volatile(data is lost when power is turned off)

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

Describe the role of Moore’s Law in shaping the progress of computer technology

A

moore’s law states that the number of transistors double every 18-24 months
-faster and more powerful processors
-smaller and cheaper computers
-rapid improvement in storage, memory, and overall computer technology

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

Describe the function of general purpose registers in the CPU and provide a list of these registers.

A

general purpose registers temporarily hold data, addresses and results during execution
reduce the need to access slower main memory
speed up instruction processing
examples are AX,BX, CX,DX
SI,DI,BP,SP

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

Describe the function of cache memory in a computer system and its importance in improving CPU performance

A

Small, high-speed memory located closer to CPU than
main memory (RAM). It stores frequently accessed data
and instructions to speed up the processing time.

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

The CPU exchanges data with Memory and I/O devices. Explain and list the general-purpose registers used in the CPU for this purpose

A

General purpose registers temporarily hold data, addresses and results during execution. When exchanging data with memory or I/O devices.
-it holds data to be written to memory or I/O
-hold data read from memory or I/O
-store addresses used during memory access
-store intermediate results during arithmetic or logical operations
they make data transfer faster and more efficient by reducing memory access time.
List of General Purpose Registers:
AX(Accumulator Register) - holds data for arithmetic and I/O operations
BX(Base Register) - used for memory addressing
CX(Count Register) - used in loops, shifts and I/O operation
DX( Data Register) - used for multiplications, divisions
SI(Source Index) - used for data movement operations
DI(Destination Index) - used for string/data transfer operations

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

Describe the main function of each layer in the OSI model with an example

A
  1. Physical Layer
    -transmits raw bits(0s and 1s) over physical media e.g ethernet cables, fibre optics
  2. Data Link Layer
    - creates frame, handles MAC addressing and detects errors e.g Ethernet(MAC), switches
  3. Network Layer
    - routing of packets between networks using logical addresses e.g IP(Internet Protocol), routers
  4. Transport Layer
    - end to end communication, flow control and error recovery. e.g TCP,UDP
  5. Session Layer
    -manages session and connections between devices e.g RPC(Remote Procedure Call)
  6. Presentation Layer
    - Data translation, encryption and compression e.g SSL.TLS encryption, JPEG format
  7. Application Layer
    -provide services to user application e.g HTTP,FTP, SMTP

mnemonics to remember
All People Seem To Need Data Processing

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

Compare CSMA/CD and CSMA/CA

A

CSMA/CD:
-used in wired Ethernet
- devices listen before sending
-if a collision happens, it is detected, and devices stop transmitting, wait a random time, then retry
-works because wired networks can detect voltage change
CSMA/CA:
-used in Wi-Fi (wireless)
-devices try to avoid collision using: RTS/CTS and random backoff timers
-collision cannot be detected in wireless because signals interfere silently
-CSMA/CA focuses on avoiding collisions before they happen

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

Function of modem

A

it converts digital signals to analog signals for transmission over ISP lines

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

Function of Repeater

A

regenrates weak signals

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

Function of Network Switch

A

it connects multiple devices into a LAN and forwards data frames using MAC addresses to ensure data goes to the correct device

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

Function of Wireless Router

A

provides WiFi access, assigns IP addresses and routes data between the local network and internet.

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

what is an operating system?

A

it is a system that manages computer hardware and software resources and provides services for running applications

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

Explain the role of device drivers in an operating system Input/Output management system.

A

they act as translators between os and hardware devices.
- allows the OS to communicate with hardware
- convert OS commands into device-specific instructions
- handle input and output operations so the OS does not need to know how each device works internally.

17
Q

What happens if there is no kernel in an operating system?

A

The kernel is the core of the OS.
without it:
- The CPU,memory and hardware cannot be controlled
- No programs can run because there is no process management
- The computer will not boot and cannot function as an operating system

18
Q

Identify the differences between machine code, assembly and high-level languages

A

Machine Code - Binary 0s and 1s executed by CPU e.g 10110001
Assembly Language - Human-readable mnemonics mapped to machine code e.g MOV AX, 09
High-level language - easy to read, closer to human language and needs compiler e.g Python, Java

19
Q

What are the differences between two-address and three-address formats . Give some examples.

A

two-address:
- uses 2 operands
- one operand is often overwritten with the result
e.g ADD R1, R2 ; R1=R1 + R2
three address:
- uses 3 operand ( 2 source and 1 destination)
e.g ADD R3, R1, R2 ; R3= R1 + R2

20
Q

Write an assembly language that multiplies 2 numbers, 9 and 14, then stores the result at memory location “0x0D”.

A

MOV AX, 9 ; Load value 9 into register AX
MOV BX, 14 ; Load value 14 into register BX
MUL AX, BX, CX ; CX=AX*BX
STORE CX, 0x0D ; Store the result (126) into memory address 0x0D

21
Q

Write an assembly language(8086) to add the number “14” with the number read from the memory location “0x0A” and store the result in “0x0D”

A

MOV AL, 14
MOV BL, [0x0A]
ADD AL,BL
MOV [0x0D], AL

22
Q

The CPU exchanges data with Memory and Input/Output Devices. Explain and list down the general purpose registers used in the CPU for this purpose.

A

AX(Accumulator Registers) - main register for arithmetic/logical operations
BX(Base Register) - used for addressing and calculations
CX(Count Register) - used for loops and shifting operations
DX(Data Register) - used in multiplication/division and I/O operations

23
Q

Distinguish between ROM and RAM

A

ROM:
- non-volatine(keeps data even when power is off)
- stores permanent instructions like BIOS
- cannot be easily rewritten
RAM:
- volatile(loses data when power is off)
- stores data and programs currently being used
- can be read and written any time

24
Q

Function of a firewall

A

-filters traffic
-prevents unauthorized access
-blocks harmful content
-monitors network activity
-protects sensitive data
basically a firewall protects a computer/network by checking all incoming and outgoing traffic and blocking anything unsafe of unauthorized

25
With the aid of a diagram, describe in detail the hardware devices or components , and the network parameter or setting required to set a network of 2-4 physical computers or smart devices at home
Internet>Modem>Wireless Router>PCs/Laptops/Mobile Phone 1. Modem - Connects ISP line to home router 2. Wireless Router - Provides WiFi and local IP addreeses
26
Describe the differences between 1st and 2nd generation computer system based on its hardware
1st Generation: -Vacuum Tubes -Very large, room-sized - Magnetic drums -High power consumption 2nd Gen: -Transistors -Magnetic Cores -Smaller, more compact -Lower power consumption
27
how does cpu exchange data with memory and I/O
The CPU uses the system bus(data bus, address bus, control bus) The address bus selects the memory of I/O location The data bus carries the data to or from memory or I/O The control bus sends control signals such as Read or Write CPU reads instructions/data from memory, processes them and writes results back
28
General purpose registers in a CPU
Accumulator Register(AX) Base Register (BX) Count Register(CX) Data Register(DX) SI(Source Index) DI(Destination Index)
29
Identify the layer a which CSMA/CD is implemented in the OSI.
It is implemented in the Data Link Layer in the OSI model
30
explain the CSMA/CD scheme
1. each station listen before it transmits 2. if channel is busy, it waits until the channel goes idle, and then transmits 3. if idle, transmits immediately. continue sensing 4. if collision detected, transmit a brief jamming signal, then cease transmission, wait for a random time and retransmit
31
explain the CSMA/CA scheme
csma/ca scheme uses the Request-To-Send(RTS) and Confirm-To-Send(CTS) mechanism 1. sends an RTS 2. waits for CTS 3. other stations(hearing the RTS) marks the medium busy for the duration of the signal 4. stations will adjust NAV(Network Allocation Vector) time that must elapse before a station can sample channel for idle status. This is called virtual carrier sensingn
32
function of a repeater
to reshape weak signals
33
Function of a Hub
Broadcasts data to all connected devices
34
Function of a Switch
-provides signal flow management -uses MAC address for data transfer -
35