Skip to main content

Chapter 1

Computer Fundamentals and Organization

Employees Provident Fund past exam questions

Past questions and answers

2 questions set from this chapter. Most repeated first.

  • 2082 · 1st · 5 marks

Explain the hierarchy of memory in computer system with respect of speed, size, technology and cost. What is the role of cache memory in computer? Write down. 4+1=5

Answer

Memory Hierarchy in a Computer System

Computer memory is organised in a hierarchy (pyramid) according to speed, size, technology and cost. As we move from top to bottom, speed decreases, size increases, and cost per bit decreases.

LevelMemorySpeedSizeTechnologyCost per bit
1 (Top)CPU RegistersFastest (≈ 1 CPU cycle)Very small (bytes)Flip-flops (bipolar)Highest
2Cache Memory (L1, L2, L3)Very fastSmall (KB to few MB)SRAMVery high
3Main Memory (RAM/ROM)FastMedium (GB)DRAM / MOSModerate
4Secondary Storage (HDD, SSD, Optical disk)SlowVery large (TB)Magnetic / Flash / OpticalLow
5 (Bottom)Tertiary / Offline Storage (Tape, Cloud backup)SlowestAlmost unlimitedMagnetic tape / Remote mediaLowest

Explanation:

  • Registers are inside the CPU and hold the data currently being processed. They are the fastest but smallest and most expensive.
  • Cache memory is a small high-speed SRAM placed between the CPU and main memory. It stores frequently used instructions and data.
  • Main memory (RAM) is directly accessible by the CPU. It is larger and cheaper than cache but slower, and it is volatile.
  • Secondary memory (hard disk, SSD, pen drive) is non-volatile, very large and cheap, but much slower because data is accessed through I/O channels.
  • Tertiary storage is used for backup and archival purposes; it is the cheapest and slowest.

This arrangement gives the illusion of a large, fast and inexpensive memory, because the CPU mostly accesses the fast upper levels while bulk data is kept in the cheap lower levels.

Role of Cache Memory

Cache memory acts as a buffer between the fast CPU and the slower main memory. Its main roles are:

  1. It stores the most frequently used instructions and data so that the CPU does not have to wait for the slow main memory every time.
  2. It reduces the average memory access time and thus increases the overall speed of the computer.
  3. It bridges the speed gap between the CPU and RAM (CPU is much faster than RAM).
  4. It works on the principle of locality of reference — programs tend to reuse the same data and nearby instructions repeatedly.
  5. When the required data is found in cache, it is called a cache hit; if not found, it is a cache miss, and the data is then fetched from main memory.

Thus, cache memory significantly improves system performance without making the whole memory expensive.

Answer checked by Claude Haiku · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2082 · 1st · 5 marks

How does the two factor authentication enhance the security of online accounts? Describe the differences between traditional file system and database management system. 2+3=5

Answer

Two-Factor Authentication and Online Account Security

Two-factor authentication (2FA) requires a user to prove identity using two different categories of evidence before access is granted — typically:

  1. Something the user knows — a password or PIN.
  2. Something the user has — an OTP sent to a registered mobile number/email, a hardware token, or a biometric (fingerprint, face).

How it enhances security:

  • A stolen or guessed password alone is not enough to log in; the attacker must also possess the second factor (e.g., the user's phone), which is far harder to obtain.
  • It blocks the most common attacks — phishing, credential stuffing, brute force and password reuse — because compromised credentials become useless without the OTP.
  • It provides defence in depth: even if one factor is breached (say, a data leak of passwords), the account remains protected.
  • Users are alerted by unexpected OTP requests, giving early warning of an attempted breach.

Differences Between Traditional File System and Database Management System

BasisTraditional File SystemDatabase Management System (DBMS)
Data storageData kept in separate, independent files for each applicationData kept in a centralized, integrated database
RedundancyHigh duplication of data across filesControlled redundancy through normalization
ConsistencySame data may differ in different files (inconsistency)Data is consistent and updated at one place
Data sharingDifficult; files belong to specific applicationsEasy; multiple users/applications share the same data
SecurityWeak; only file-level password protectionStrong; user accounts, roles and privileges
Concurrent accessNo proper control; simultaneous updates may corrupt dataConcurrency control (locking, transactions) ensures correctness
Query & retrievalRequires writing separate programs for each querySQL and query facilities allow ad-hoc retrieval
Data independenceProgram and data are tightly coupled; changes require program modificationLogical and physical data independence
Backup & recoveryManual, error-proneAutomatic backup and recovery mechanisms
Integrity constraintsNot enforced by the systemEnforced by the DBMS (primary key, foreign key, checks)

In short: a file system is suitable only for small, simple, single-user applications, whereas a DBMS is designed for large, shared, secure and reliable data environments.

Answer checked by Claude Haiku · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

Questions from EPF Lok Sewa Chief Assistant Exam (Chief Assistant 5th · 1st · 2082). Answers are written for this site; check them against your class notes.