What is the primary function of an operating system?
- A) Manage hardware resources
- B) Perform arithmetic operations
- C) Display graphical user interfaces
- D) Send emails
What is the kernel in an operating system?
- A) A type of shell script
- B) The central processing unit (CPU)
- C) The core component that manages system resources
- D) A device driver
Which scheduling algorithm is based on priority levels assigned to tasks?
- A) Round-robin scheduling
- B) First Come First Serve (FCFS) scheduling
- C) Priority scheduling
- D) Shortest Job First (SJF) scheduling
What is the purpose of virtual memory in an operating system?
- A) To increase the size of physical memory
- B) To manage input/output devices
- C) To protect the system from viruses
- D) To provide a larger logical address space
Which file system is commonly used in Windows operating systems?
- A) ext4
- B) NTFS
- C) HFS+
- D) FAT32
What is the role of the Command-Line Interface (CLI) in an operating system?
- A) To display graphical user interfaces
- B) To perform file operations using a keyboard
- C) To manage hardware resources
- D) To send emails
Which process scheduling algorithm guarantees that each process gets an equal share of the CPU time?
- A) Round-robin scheduling
- B) First Come First Serve (FCFS) scheduling
- C) Shortest Job First (SJF) scheduling
- D) Multilevel Feedback Queue (MLFQ) scheduling
What is the purpose of device drivers in an operating system?
- A) To manage hardware devices
- B) To store user data
- C) To execute application software
- D) To display graphical user interfaces
Which component of an operating system is responsible for managing memory allocation?
- A) Kernel
- B) Shell
- C) File system
- D) Memory manager
What is the function of the "grep" command in Unix-like operating systems?
- A) To search for files
- B) To copy files
- C) To remove files
- D) To search for patterns in files
Which type of file system supports journaling for improved reliability?
- A) FAT32
- B) ext4
- C) NTFS
- D) HFS+
What is the purpose of a semaphore in operating systems?
- A) To protect critical sections of code
- B) To schedule tasks
- C) To allocate memory
- D) To manage device drivers
Which system call in Unix-like operating systems is used to create a new process?
- A) fork()
- B) exec()
- C) wait()
- D) getpid()
What is the main function of the "chmod" command in Unix-like operating systems?
- A) To change the owner of a file
- B) To change the permissions of a file
- C) To copy a file
- D) To delete a file
Which scheduling algorithm selects the process with the smallest next CPU burst?
- A) Round-robin scheduling
- B) First Come First Serve (FCFS) scheduling
- C) Priority scheduling
- D) Shortest Remaining Time First (SRTF) scheduling
What is the function of the "ping" command in networking?
- A) To send emails
- B) To test network connectivity
- C) To copy files between computers
- D) To display system information
Which system call is used to terminate a process in Unix-like operating systems?
- A) exit()
- B) kill()
- C) wait()
- D) fork()
What is the purpose of the "grep" command in Unix-like operating systems?
- A) To search for files
- B) To copy files
- C) To remove files
- D) To search for patterns in files
Which file system is commonly used in Unix-like operating systems?
- A) NTFS
- B) HFS+
- C) FAT32
- D) ext4
What is the main function of the "ps" command in Unix-like operating systems?
- A) To display system information
- B) To list running processes
- C) To manage permissions
- D) To change the owner of a file
Comments
Post a Comment