Chapter 3
Computer Fundamentals and Office Applications
Lok Sewa Aayog (Public Service Commission) 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.
Answer
Memory Hierarchy in a Computer System
The memory hierarchy is the arrangement of storage devices in a computer from the fastest, smallest and costliest at the top to the slowest, largest and cheapest at the bottom. The CPU works directly only with the top levels; data moves down the hierarchy as it becomes less frequently used.
Order (top to bottom): Registers → Cache (L1, L2, L3) → Main Memory (RAM/ROM) → Secondary Memory (HDD, SSD, pen drive) → Tertiary/Offline Storage (magnetic tape, optical jukebox).
Comparison on the basis of speed, size, technology and cost
| Level | Speed (access time) | Size | Technology used | Cost per bit |
|---|---|---|---|---|
| Registers | Fastest (≈ 1 CPU cycle, < 1 ns) | Very small (a few bytes to a few hundred bytes) | Flip-flops (bistable latches) | Highest |
| Cache (L1/L2/L3) | Very fast (1–10 ns) | Small (KB to a few MB) | SRAM (static RAM) | Very high |
| Main Memory (RAM) | Fast (10–100 ns) | Medium (GB) | DRAM (dynamic RAM), ROM | Moderate |
| Secondary Memory | Slower (ms) | Large (TB) | Magnetic (HDD), flash/semiconductor (SSD), optical (CD/DVD) | Low |
| Tertiary Storage | Slowest (seconds to minutes) | Very large (TB–PB) | Magnetic tape, optical disks in jukebox | Lowest |
Key trends in the hierarchy:
- Speed decreases as we move downward — the CPU can directly access only registers, cache and main memory.
- Size (capacity) increases as we move downward.
- Cost per bit decreases as we move downward.
- Technology changes from semiconductor (flip-flop, SRAM, DRAM) at the top to magnetic, optical and flash media at the lower levels.
- Access frequency by the CPU is highest at the top and lowest at the bottom.
The purpose of this hierarchy is to give the CPU the speed of costly memory together with the capacity of cheap memory, at an acceptable overall cost.
Role of Cache Memory
Cache memory is a small, high-speed SRAM placed between the CPU and the main memory. Its roles are:
- Bridges the speed gap — main memory (DRAM) is much slower than the CPU, so cache supplies instructions and data at nearly CPU speed and prevents the processor from remaining idle.
- Stores frequently used data and instructions — based on the principle of locality of reference, recently and repeatedly used blocks are kept in cache, so most requests are served from it (a "cache hit").
- Reduces average memory access time — only on a "cache miss" does the CPU go to main memory, so the effective access time becomes much less than the DRAM access time.
- Improves system performance and throughput — by cutting down waiting time, it increases the number of instructions executed per second.
- Reduces traffic on the memory bus — fewer accesses to main memory mean less contention and faster overall operation.
In short, cache memory acts as a fast buffer that hides the slowness of main memory from the CPU.
Answer checked by Claude Sonnet · 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.
Answer
Two-Factor Authentication and Its Security Benefits
Two-factor authentication (2FA) is a security mechanism that requires a user to provide two different types of evidence (factors) before access is granted. The two factors must come from different categories:
- Something you know — password, PIN, or security question.
- Something you have — OTP sent to a mobile phone, hardware token, smart card, or authenticator app.
- Something you are — fingerprint, face recognition, or iris scan (biometric).
How 2FA enhances security:
- Protection against stolen passwords: Even if an attacker obtains the password through phishing, data breach, or keylogging, login still fails without the second factor.
- Defence against brute-force and credential-stuffing attacks: Automated attacks that try thousands of passwords cannot pass the second step.
- Reduced risk from weak or reused passwords: A single compromised password no longer gives full account access.
- Real-time alerting: An unexpected OTP request or push notification warns the genuine user that someone is attempting to log in.
- Compliance and accountability: Many banking, government, and email services mandate 2FA, improving overall system trust.
Thus 2FA adds a second independent layer, so breaking one factor is not enough to compromise the account.
Differences Between Traditional File System and Database Management System (DBMS)
| Basis | Traditional File System | Database Management System (DBMS) |
|---|---|---|
| Definition | Data is stored in separate, independent files managed by the operating system. | Data is stored in a centralized, structured database managed by DBMS software. |
| Data redundancy | High redundancy — the same data is repeated in many files. | Controlled redundancy — data is stored once and shared. |
| Data inconsistency | High, because duplicate data may not match. | Low, because of normalization and centralized control. |
| Data sharing | Difficult; files belong to specific applications. | Easy; multiple users and applications can share data concurrently. |
| Data independence | Not supported; programs depend on file structure. | Supported; logical and physical data independence exist. |
| Security | Weak; only file-level OS permissions. | Strong; user accounts, roles, privileges, and views. |
| Concurrency control | Not available; simultaneous access causes conflicts. | Available; locking and transactions handle simultaneous access. |
| Backup and recovery | Manual and unreliable. | Automatic backup, logging, and recovery facilities. |
| Query facility | Requires separate programs for each query. | SQL and query languages allow ad-hoc queries. |
| Integrity constraints | Must be coded in every program. | Enforced centrally by the DBMS (primary key, foreign key, checks). |
| Cost and complexity | Cheap and simple, but limited. | Costly and complex, but scalable and reliable. |
Conclusion: A DBMS overcomes the redundancy, inconsistency, security, and sharing problems of the traditional file system, making it suitable for modern, multi-user applications.
Answer checked by Claude Sonnet · 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.