← Back to quizzesFree quiz

Computer Organisation and Networks

Welcome to this comprehensive course on computer organisation and networks. In this module we will explore fundamental concepts that appear in many introductory quizzes, from the way a CPU…

23 questions~12 min
Computer Organisation and Networks — Qwi
0 / 23
Score: 0%
1

When a CPU reads a value from RAM, which bus carries the address and which carries the data?

2

A 4‑bit two's‑complement system can represent the decimal number –5 as which binary pattern?

3

If a subnet mask is 255.255.248.0, how many usable host addresses does the subnet contain?

4

Which layer of the TCP/IP model is responsible for end‑to‑end delivery and uses port numbers?

5

A hub and a switch both operate at which OSI layer, and what is the key difference in their forwarding behavior?

6

What is the result of adding two 4‑bit two's‑complement numbers –7 (1001) and –6 (1010)?

7

In IPv4 CIDR notation, what does the prefix length /26 indicate about the number of host bits?

8

Which of the following statements about NAT is true?

9

A 32‑bit IPv4 address with a subnet mask of 255.255.255.192 belongs to which CIDR prefix?

10

When a router forwards a packet, which part of the packet header remains unchanged across hops?

11

Which conversion method correctly changes the decimal number 156 to binary?

12

A switch learns MAC addresses by:

13

If a device has IP 192.168.10.100/26, what is its network address?

14

Which of the following best describes the role of the control unit inside a CPU?

15

During the boot sequence, which component runs the Power‑On Self‑Check (POST)?

16

A 32‑bit unsigned integer can represent which range of values?

17

Which device operates at Layer 3 of the TCP/IP model and forwards packets based on IP addresses?

18

In two's complement, what is the result of adding 0b0110 (6) and 0b0011 (3)?

19

Which of the following statements about polling versus interrupts is accurate?

20

A MAC address is 48 bits long. Which part of it identifies the vendor?

21

What is the main advantage of using a small SSD for the OS and a large HDD for media files?

22

When a packet is encapsulated for transmission on an Ethernet LAN, which header is added last?

23

Which of the following correctly describes the effect of sign extension when converting a 4‑bit signed number to 8‑bits?

Understanding Computer Organisation and Networks

Welcome to this comprehensive course on computer organisation and networks. In this module we will explore fundamental concepts that appear in many introductory quizzes, from the way a CPU talks to memory, to how IP addresses are divided and translated. Mastering these topics will boost your confidence in both computer architecture and networking fundamentals, and improve your performance on exams and certification tests.

1. Buses Inside a Computer: Address vs. Data

When a CPU needs to read a value stored in RAM, it uses two distinct pathways called buses. The address bus carries the memory location (the address) that the CPU wants to access, while the data bus carries the actual value stored at that location.

  • Address Bus: Unidirectional, carries only the address. Its width (e.g., 32‑bit) determines the maximum addressable memory.
  • Data Bus: Bidirectional, carries the data being read or written. Its width influences the amount of data transferred per cycle.
  • Control Bus: Provides timing and control signals (read/write, interrupt, etc.) but does not transport address or data.

Understanding the separation of address and data buses is essential for troubleshooting memory‑related errors and for designing efficient hardware.

2. Two’s‑Complement Representation

Two’s‑complement is the most common method for representing signed integers in binary. It allows simple arithmetic operations using the same circuitry as unsigned addition.

2.1 Converting a Negative Decimal to 4‑bit Two’s‑Complement

To represent –5 in a 4‑bit system:

  1. Write the absolute value in binary: 5 → 0101.
  2. Invert the bits: 1010.
  3. Add 1: 1010 + 1 = 1011.

The result 1011 is the correct 4‑bit two’s‑complement pattern for –5.

2.2 Adding Two Negative Numbers

Consider adding –7 (binary 1001) and –6 (binary 1010) in a 4‑bit two’s‑complement system:

  • Perform binary addition: 1001 + 1010 = 1 0011 (the leading 1 is a carry‑out).
  • Discard the carry‑out; the 4‑bit result is 0011, which would be interpreted as +3.

Because the true mathematical sum is –13, which cannot be represented in 4 bits, an overflow occurs. The hardware shows a positive result, signalling that the operation exceeded the range of the representation.

3. IP Addressing and Subnetting

Subnet masks divide an IPv4 address into a network portion and a host portion. The mask 255.255.248.0 corresponds to a /21 prefix.

3.1 Calculating Usable Host Addresses

Steps to find the number of usable hosts:

  1. Identify host bits: 32 – 21 = 11 bits.
  2. Compute total addresses: 211 = 2,048.
  3. Subtract the network and broadcast addresses: 2,048 – 2 = 2,046 usable hosts.

Think of each subnet as a building floor: the first room (network address) and the roof (broadcast address) are off‑limits, leaving 2,046 rooms for occupants.

3.2 CIDR Prefix Length and Host Bits

In CIDR notation, the suffix indicates how many bits are used for the network portion. A /26 prefix means 26 network bits and therefore 6 host bits (32 – 26). With 6 host bits you can have 26 = 64 total addresses, 62 of which are usable for devices.

4. TCP/IP Model Layers

The TCP/IP model consists of four layers, each with distinct responsibilities. The layer that provides end‑to‑end delivery and uses port numbers is the Transport layer. Protocols such as TCP and UDP operate here, ensuring that data streams are correctly multiplexed and demultiplexed using source and destination ports.

5. OSI Layer Comparison: Hub vs. Switch

Both hubs and switches operate at the Data Link layer (Layer 2), but they differ dramatically in forwarding behavior:

  • Hub: A simple repeater that broadcasts incoming frames to every port, regardless of the destination MAC address.
  • Switch: Maintains a MAC address table and forwards frames only to the specific port where the destination device resides, reducing collisions and improving efficiency.

This distinction is crucial for designing scalable LANs and for understanding why modern networks rely on switches rather than hubs.

6. Network Address Translation (NAT)

NAT is a technique used by routers to map many private IP addresses to a single public IP address. The correct statement is that NAT rewrites the source IP addresses of outgoing packets to the router’s public IP, allowing multiple devices to share one external address while keeping internal addresses hidden.

Key benefits of NAT include:

  • Conserving IPv4 address space.
  • Providing a basic level of security by obscuring internal network structure.
  • Enabling flexible network topologies without requiring additional public addresses.

7. Summary of Core Concepts

Below is a quick reference checklist to reinforce the main ideas covered in this course:

  • Address Bus vs. Data Bus: Separate pathways for location and value.
  • Two’s‑Complement: Invert bits and add one; watch for overflow when the result exceeds the bit‑width.
  • Subnet Masks: Determine host bits; subtract network and broadcast addresses to find usable hosts.
  • CIDR Prefix: /26 → 6 host bits → 62 usable addresses.
  • Transport Layer: Handles end‑to‑end delivery and port numbers.
  • Hub vs. Switch: Hub broadcasts; switch forwards selectively using MAC tables.
  • NAT: Translates source IPs of outbound traffic to a public address.

8. Frequently Asked Questions (FAQ)

What happens if the address bus is too narrow?

A narrow address bus limits the maximum addressable memory. For example, a 20‑bit address bus can only address 1 MiB of RAM (220 bytes).

Why is two’s‑complement preferred over sign‑magnitude?

Two’s‑complement simplifies arithmetic hardware because addition and subtraction can be performed with the same circuitry, and there is only one representation for zero.

Can a /21 subnet be further divided?

Yes. Subnetting a /21 into smaller subnets (e.g., /24) creates more networks with fewer hosts each, useful for organizing departments or VLANs.

Is NAT a security feature?

While NAT hides internal addresses, it is not a substitute for a firewall. It provides basic obscurity but does not filter traffic.

9. Practice Quiz

Test your knowledge with the following multiple‑choice questions. Review the explanations above if you need a hint.

  1. When a CPU reads from RAM, which bus carries the address?
    Answer: Address bus.
  2. What binary pattern represents –5 in a 4‑bit two’s‑complement system?
    Answer: 1011.
  3. How many usable hosts are in a subnet with mask 255.255.248.0?
    Answer: 2,046.
  4. Which TCP/IP layer uses port numbers?
    Answer: Transport layer.
  5. What is the key difference between a hub and a switch?
    Answer: Hub broadcasts; switch forwards to a specific port.
  6. Adding –7 and –6 in 4‑bit two’s‑complement results in?
    Answer: Overflow, result appears positive.
  7. In CIDR /26, how many host bits are available?
    Answer: 6 host bits.
  8. Which statement about NAT is true?
    Answer: It rewrites source IPs of outgoing packets to the router's public IP.

By mastering these concepts, you will be well‑prepared for exams, interviews, and real‑world tasks involving computer organisation and networking.