CS330 Operating Systems

Comprehensive Exam - Chapters 1 & 2

Topics: Introduction & OS Structures
Total Questions: 33
Suggested Time: 90 minutes
πŸ“š Chapter 1: Introduction to Operating Systems
Question 1 PAST EXAM
A program that acts as an intermediary between a user of a computer and the computer hardware is:
Question 2 PAST EXAM
Multiprocessor's systems advantage is:
Question 3 PAST EXAM
A ____ can be used to prevent a user program from never returning control to the operating system.
Question 4 PAST EXAM
Caching is the processing of utilizing a region of fast memory for a limited data and process.
Question 5 PAST EXAM
________________ is efficient for moving directly large amounts of data between I/O devices and main memory without CPU.
Question 6 PAST EXAM
Which of the following statements is false?
Question 7 PAST EXAM
________ is/are only storage media that the CPU can access directly.
Question 8 PAST EXAM
What are the major activities of an operating system in regard to process management?
Question 9 PAST EXAM
A technology that allows O/S to run as application within other O/S is called:
Question 10 PAST EXAM
Which of the following would lead you to believe that a given system is a Symmetric multiprocessing system?
Question 11 PAST EXAM
When comparing main memory to secondary storage, the main distinction is:
Question 12 PAST EXAM
Which statement about timesharing systems is correct?
Question 13 PAST EXAM
What is the main advantage of multiprocessor systems?
Question 14 PAST EXAM
Which of the following is a software-generated interrupt?
Question 15 PAST EXAM
Why is caching important in OS design?
Question 16 PAST EXAM
The disk controller's main function is to:
Question 17 PAST EXAM
Which of the following best explains why multiprogramming improves CPU utilization?
Question 18 PAST EXAM
Which role best describes the OS when it decides between conflicting requests for CPU time, memory, and I/O devices?
Question 19 PAST EXAM
A timer interrupt is essential to prevent:
Question 20 PAST EXAM
Which is true about SSDs compared to magnetic disks?
Question 21 PAST EXAM
List the four main components of a computer system.

Mock Answer:

1. Hardware: Provides basic computing resources (CPU, memory, I/O devices)

2. Operating System: Controls and coordinates use of hardware among applications and users

3. Application Programs: Define ways system resources are used to solve computing problems

4. Users: People, machines, or other computers

Expected Keywords: hardware operating system applications users
Question 22 PAST EXAM
In the fetch-execute cycle of a CPU, what is "fetched"? And from where?

Mock Answer:

The CPU fetches an instruction (or data) from main memory (RAM).

Expected Keywords: instruction/data main memory/RAM
Question 23 PAST EXAM
What is the difference between multi-programming and time-sharing?

Mock Answer:

Multi-programming: Organizes jobs so CPU always has one to execute. When a process waits (e.g., for I/O), OS switches to another process.

Time-Sharing: CPU switches jobs so frequently that users can interact with each job while running, creating interactive computing.

Expected Keywords: multiprogramming time-sharing interactive switches frequently
πŸ“š Chapter 2: Operating System Structures
Question 24 PAST EXAM
Which system call is used for process creation?
Question 25 PAST EXAM
The three most common APIs for system calls include all except:
Question 26 PAST EXAM
To access the services of the operating system, the interface is provided by the:
Question 27 PAST EXAM
Which of the following is NOT a common category of system calls in operating systems?
Question 28 PAST EXAM
In a microkernel-based operating system, where is the majority of the operating system's functionality implemented?
Question 29 PAST EXAM
(True/False) It is impossible to invoke a system call directly in a user program. A programmer must invoke it through a library function.
Question 30 PAST EXAM
(True/False) printf() in C language is a system call.
Question 31 PAST EXAM
What is the name of the API that Unix and Unix-like operating systems make available to the application programmers?

Mock Answer:

POSIX (Portable Operating System Interface)

Expected Keywords: POSIX
Question 32 PAST EXAM
Give one disadvantage of the microkernel approach to OS design.

Mock Answer:

Communication overhead - all communication must take place through the kernel using message passing, which increases overhead and reduces performance.

Expected Keywords: communication overhead kernel performance
Question 33 PAST EXAM
Give one advantage of the layered approach to implementing an operating system.

Mock Answer:

Debugging and maintenance is easy. Each layer can be debugged independently, and once a layer is debugged, lower layers can be assumed to be bug-free.

Expected Keywords: debugging maintenance easy

πŸ“Š Your Exam Results

0
βœ“ Correct
0
βœ— Incorrect
0
⚑ Partial