AMCAT TEST QB - OPERATING SYSTEM (1)

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

DEPARTMENT OF COMPUTER SCIENCE & APPLICATIONS

AMCAT TEST QB – OPERATING SYSTEM

1. Which of the following is the primary function of an operating system?


A) Compiling programs
B) Managing system resources
C) Editing documents
D) Connecting to the internet
Answer: B) Managing system resources

2. What is a process in an operating system?


A) A program in execution
B) A passive entity
C) A compiler program
D) An input-output operation
Answer: A) A program in execution

3. Which of the following scheduling algorithms is non-preemptive?


A) Round Robin
B) Shortest Job Next (SJN)
C) Multilevel Queue Scheduling
D) Priority Scheduling
Answer: B) Shortest Job Next (SJN)

4. The banker’s algorithm is used for:


A) Deadlock prevention
B) Deadlock detection
C) Deadlock avoidance
D) Process synchronization
Answer: C) Deadlock avoidance
5. What is a critical section in an operating system?
A) A part of the program which runs faster
B) A part where shared resources are accessed
C) A part of memory allocation
D) A section dealing with input-output operations
Answer: B) A part where shared resources are accessed

6. Which memory management technique is used in paging?


A) Segmentation
B) Contiguous memory allocation
C) Non-contiguous memory allocation
D) Swapping
Answer: C) Non-contiguous memory allocation

7. What is the primary role of a device driver?


A) Provide a user interface
B) Manage CPU scheduling
C) Control specific hardware devices
D) Allocate memory blocks
Answer: C) Control specific hardware devices

8. Which of the following page replacement algorithms may lead to Belady’s Anomaly?
A) FIFO (First In First Out)
B) LRU (Least Recently Used)
C) Optimal Page Replacement
D) LFU (Least Frequently Used)
Answer: A) FIFO (First In First Out)

9. Thrashing occurs when:


A) CPU utilization is low
B) Processes are busy swapping pages in and out of memory
C) Too many interrupts occur
D) Disk space runs out
Answer: B) Processes are busy swapping pages in and out of memory

10. The time taken by a process to execute is called:


A) Response time
B) Turnaround time
C) Waiting time
D) Execution time
Answer: B) Turnaround time

11. Which command in Linux is used to view currently running processes?


A) ls
B) ps
C) cat
D) chmod
Answer: B) ps

12. What is the purpose of the ‘fork()’ system call?


A) To terminate a process
B) To create a new process
C) To synchronize processes
D) To allocate memory
Answer: B) To create a new process

13. In multithreading, the term ‘context switch’ refers to:


A) Switching from one thread to another
B) Switching from kernel mode to user mode
C) Changing system configurations
D) Modifying memory locations
Answer: A) Switching from one thread to another

14. Which of the following is a disk scheduling algorithm?


A) FCFS (First Come First Serve)
B) Round Robin
C) FIFO
D) LIFO
Answer: A) FCFS (First Come First Serve)

15. Virtual memory is implemented using:


A) Paging
B) Segmentation
C) Fragmentation
D) Both A and B
Answer: D) Both A and B
16. What is the purpose of swap space in the operating system?
A) Store user data
B) Backup system data
C) Extend RAM using disk storage
D) Manage input-output operations
Answer: C) Extend RAM using disk storage

17. Which type of operating system is used for real-time applications?


A) Batch Operating System
B) Multiprogramming OS
C) Real-Time Operating System
D) Distributed Operating System
Answer: C) Real-Time Operating System

18. What is the function of the ‘Semaphore’ in process synchronization?


A) Manage CPU scheduling
B) Avoid deadlock
C) Synchronize access to shared resources
D) Handle memory allocation
Answer: C) Synchronize access to shared resources

19. Which of the following statements about threads is true?


A) Threads execute in separate address spaces
B) Threads share the same address space
C) Threads are slower than processes
D) Threads do not share resources
Answer: B) Threads share the same address space

20. What is the purpose of the ‘init’ process in Unix/Linux systems?


A) Manages user authentication
B) Initializes the system during booting
C) Manages network communication
D) Monitors system logs
Answer: B) Initializes the system during booting
___________________________________________________________________________
__________

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy