Aspirant Academy

MCQ

OS MCQ - Practice Questions with Answers

Solve 9 OS questions for RAS/RPSC preparation.

Practice questions

Q1Match the following – List –I A: Disk Scheduling B. Batch Processing C. Time Sharing D. Interrupt Processing List – II 1. Round Robin 2. Scan 3. LIFO 4. FIFO Code -

A A-3, B-4, C-2, D-1
B A-4, B-3, C-2, D-1
C A-2, B-4, C-1, D-3
D A-3, B-4, C-1, D-2
Explanation

Disk scheduling is matched with SCAN because SCAN is a named disk-scheduling algorithm that moves the disk arm back and forth. Batch jobs are commonly served in first-in-first-out order, while round-robin is the standard time-sharing scheduler because it gives each ready process a time quantum. Interrupt handling saves and restores processor context on a stack, so the last saved context is restored first; hence the mapping A-2, B-4, C-1, D-3 makes option C correct.

Q2When a process is in a “Blocked” state it waits for some I/O service. When the service is completed it goes to the -

A Terminated State
B Suspended state
C Running state.
D Ready state
Explanation

Correct option D is right because after the required I/O service is completed, a blocked process becomes eligible for CPU allocation again and enters the ready state. It does not go directly to the running state; the CPU scheduler must select it first.

Q3Consider the following statement – I. A child process that remains running even after its parent process is terminated or completed without waiting for the child process execution is called an orphan. II. A process that has completed its task but still, it shows an entry in a process table is called a zombie process.

A Both are true
B Both are false
C Only I is true
D Only II is true
Explanation

An orphan process is a child that continues after its parent has terminated; UNIX/POSIX systems reassign such remaining children to a system process. A zombie process is a child that has terminated but has not yet been waited for, so a minimal entry remains in the kernel process table. Both statements match these definitions, so option A is correct.

Q4CPU scheduling is the basis of -

A Multiprogramming operating system
B Large memory sized systems
C Multiprocessor systems
D None of the mentioned
Explanation

Correct option A is right because multiprogramming depends on selecting one process from the ready queue whenever the CPU becomes available. CPU scheduling is what keeps the processor shared among multiple programs, so it is the basis of a multiprogramming operating system.

Q5What does OS X have?

A Monolithic kernel with modules
B Microkernel
C Monolithic kernel
D Hybrid kernel
Explanation

Correct option D is right because OS X uses a hybrid kernel architecture. It combines ideas associated with microkernels and monolithic kernels, so calling it purely microkernel or purely monolithic is incomplete.

You've seen 5 of 9 sample questions

Unlimited practice on OS comes with the RAS Test Series + Practice pack or Gate Pass.

More questions

6Which one of the following errors will be handled by the operating system?

ALack of paper in printer
BConnection failure in the network
CPower failure
DAll of the above

7Cascading termination refers to a termination of all child processes, if the parent process terminates -

Anormally or abnormally
Babnormally
Cnormally
DNone of the mentioned

8If a process, fails most operating system write the error information to a -

ANew file
BAnother running process
CLog file
DNone of the mentioned

9Which of the following statements are true? I. Shortest Remaining Time First(SRTF) scheduling may cause starvation. II. Preemptive scheduling may cause starvation. III. Round robin is better than FCFS in terms of response time.

AI only
BI & III only
CII and III only
DI, II and III

More topics in Computer Systems (Senior CI)

Explore other subjects