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.
| Level | Memory | Speed | Size | Technology | Cost per bit |
|---|---|---|---|---|---|
| 1 (Top) | CPU Registers | Fastest (≈ 1 CPU cycle) | Very small (bytes) | Flip-flops (bipolar) | Highest |
| 2 | Cache Memory (L1, L2, L3) | Very fast | Small (KB to few MB) | SRAM | Very high |
| 3 | Main Memory (RAM/ROM) | Fast | Medium (GB) | DRAM / MOS | Moderate |
| 4 | Secondary Storage (HDD, SSD, Optical disk) | Slow | Very large (TB) | Magnetic / Flash / Optical | Low |
| 5 (Bottom) | Tertiary / Offline Storage (Tape, Cloud backup) | Slowest | Almost unlimited | Magnetic tape / Remote media | Lowest |
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:
- 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.
- It reduces the average memory access time and thus increases the overall speed of the computer.
- It bridges the speed gap between the CPU and RAM (CPU is much faster than RAM).
- It works on the principle of locality of reference — programs tend to reuse the same data and nearby instructions repeatedly.
- 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:
- Something the user knows — a password or PIN.
- 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
| Basis | Traditional File System | Database Management System (DBMS) |
|---|---|---|
| Data storage | Data kept in separate, independent files for each application | Data kept in a centralized, integrated database |
| Redundancy | High duplication of data across files | Controlled redundancy through normalization |
| Consistency | Same data may differ in different files (inconsistency) | Data is consistent and updated at one place |
| Data sharing | Difficult; files belong to specific applications | Easy; multiple users/applications share the same data |
| Security | Weak; only file-level password protection | Strong; user accounts, roles and privileges |
| Concurrent access | No proper control; simultaneous updates may corrupt data | Concurrency control (locking, transactions) ensures correctness |
| Query & retrieval | Requires writing separate programs for each query | SQL and query facilities allow ad-hoc retrieval |
| Data independence | Program and data are tightly coupled; changes require program modification | Logical and physical data independence |
| Backup & recovery | Manual, error-prone | Automatic backup and recovery mechanisms |
| Integrity constraints | Not enforced by the system | Enforced 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.