Q: 1 The first instruction of bootstrap loader program of an operating system is stored in
RAM
BIOS
Hard Disk
None of these
[ Option B ]
When a computer is powered on, the bootstrap loader is responsible for starting the operating system. The first instruction of the bootstrap loader must be available immediately after power-on, even before RAM or the hard disk is accessed.
For this reason, it is stored in BIOS (Basic Input-Output System), which resides in ROM.
Q: 2
Match the virtual memory terminologies in Column I to their descriptions in Column II:
| Column I | Column II |
|---|---|
| a. Virtual address | i. The virtual storage assigned to a process. |
| b. Virtual address space | ii. The range of memory addresses available to a process. |
| c. Address space | iii. The address of a storage location in main memory. |
| d. Real address | iv. The address assigned to a location in virtual memory to allow that location to be accessed as though it were part of main memory. |
Choose the correct option:
a – ii, b – i, c – iii, d – iv
a – iv, b – i, c – ii, d – iii
a – i, b – iii, c – ii, d – iv
a – iv, b – iii, c – i, d – ii
[ Option B ]
Virtual Memory is a memory management technique that gives an application the illusion of having a large, continuous block of memory, even though it may be physically fragmented or partially stored on disk.
| TERM | DESCRIPTION |
|---|---|
| Virtual Address | A virtual address is the address assigned to a location in virtual memory. It allows the CPU to access data as if it were in the main memory. |
| Virtual Address Space | This refers to the total virtual storage assigned to a process. It represents the range of virtual addresses a process can use. |
| Address Space | The address space defines the range of memory addresses available to a process (virtual or physical). |
| Real Address | The real address (also called physical address) refers to the actual location in the main memory (RAM). |
Q: 3 Execution of an operating system is initiated by a program called the ________.
Window Manager
Scheduler
Bootstrap
None of these
[ Option C ]
When a computer system is powered on, a small program called the bootstrap program starts executing first. This program is responsible for loading the operating system into main memory and transferring control to it so that the OS can begin execution.
Q: 4 Which of the following statement is INCORRECT?
Kernel mode is the most privileged mode in operating system
When a program makes system call, the mode is switched from user mode to kernel mode
If a program crashes in kernel mode, only that program will be halted
In kernel mode, the program can access any hardware resource or memory address
[ Option C ]
In an operating system, there are two execution modes, User Mode and Kernel Mode.
Kernel Mode is the most privileged mode, where the system has complete access to hardware and memory, while User Mode has restricted access.
When a program needs to perform system-level operations, it makes a system call, which switches execution from user mode to kernel mode.
If a program crashes while running in kernel mode, it can affect the entire system because kernel mode controls all critical resources.
Therefore, the whole system may crash or become unstable, not just that single program.
Q: 5 If a branch instruction causes a change in control flow during pipelining,
execution is delayed.
the pipeline is emptied and subsequent instructions are discarded.
only decoding is paused.
no change occurs.
[ Option B ]
Pipelining is a technique in CPUs where multiple instructions are overlapped in execution to improve performance. A branch instruction changes the normal sequential flow of execution by jumping to a different memory address. This can cause a control hazard, because the CPU may have already fetched instructions following the branch, which may no longer be correct.
Q: 6 Which of the following is a Linux System Call for Interprocess Communication (IPC)?
semctl
bind
sched_yield
link
[ Option A ]
In Linux, processes often need to communicate and share data with each other, this is called Interprocess Communication (IPC). Linux provides several IPC mechanisms like pipes, message queues, shared memory, and semaphores.
The semctl system call is used to control and manage semaphores, which are synchronization tools that help processes coordinate access to shared resources.
| IPC MECHANISM | SYSTEM CALL | PURPOSE |
|---|---|---|
| Pipes | pipe() | Communicate between parent and child processes. |
| Message Queues | msgsnd(), msgrcv() | Send and receive messages between processes. |
| Shared Memory | shmget(), shmat() | Allow processes to access common memory space. |
| Semaphores | semctl(), semget() | Synchronize process execution and resource access. |
Q: 7
Match the following:
| List—1 | List—2 |
|---|---|
| i. Batch Processing System | A. Meeting Time Constraint |
| ii. Multi Programming | B. Good Response Time |
| iii. Time Sharing | C. Resource Utilization |
| iv. Real Time | D. CPU Idle Time |
(i)—D, (ii)—C, (iii)—B, (iv)—A
(i)—A, (ii)—B, (iii)—C, (iv)—D
(i)—D, (ii)—A, (iii)—B, (iv)—C
(i)—B, (ii)—C, (iii)—D, (iv)—A
[ Option A ]
Thank you so much for taking the time to read my Computer Science MCQs section carefully. Your support and interest mean a lot, and I truly appreciate you being part of this journey. Stay connected for more insights and updates! If you'd like to explore more tutorials and insights, check out my YouTube channel.
Don’t forget to subscribe and stay connected for future updates.