Introduction to Computing MCQs with Answers
Practice important Introduction to Computing MCQs with answers and explanations.
Chapter: 53
Q761:
What does the process table in the operating system contain?
A. The code of running programs
B. The process state, priority, and memory area
C. User preferences and settings
D. The directory structure of files
Correct Answer:
B
Chapter: 53
Q762:
What is a process switch also known as?
A. Process context switch
B. Process state change
C. Process initialization
D. Process termination
Correct Answer:
A
Chapter: 53
Q763:
What is a time slice in a time-sharing system?
A. A unit of disk space
B. A period of time allocated to a process
C. A part of the process table
D. A type of interrupt signal
Correct Answer:
B
Chapter: 53
Q764:
What is the role of the dispatcher in a multitasking system?
A. To initiate and manage the execution of scheduled processes
B. To handle input and output operations
C. To manage network connections
D. To update software drivers
Correct Answer:
A
Chapter: 53
Q765:
What happens when the CPU receives an interrupt signal?
A. It immediately shuts down
B. It saves the current process state and executes an interrupt handler
C. It starts a new process
D. It ignores the signal
Correct Answer:
B
Chapter: 53
Q766:
What is the function of the interrupt handler?
A. To save the current process state
B. To manage file system operations
C. To respond to an interrupt signal
D. To reload the operating system
Correct Answer:
C
Chapter: 53
Q767:
How does a CPU handle a process switch?
A. By stopping the current process and starting a new one immediately
B. By saving the current process state and then loading a new process
C. By ignoring the process switch request
D. By executing all processes simultaneously
Correct Answer:
B
Chapter: 53
Q768:
What is the importance of saving the process state during an interrupt?
A. To ensure that the process can resume correctly later
B. To free up memory space
C. To update the process table
D. To start a new process
Correct Answer:
A
Chapter: 53
Q769:
In a multiprogramming system, what determines which process gets the CPU next?
A. The process's priority and readiness
B. The length of the process's code
C. The user’s input
D. The amount of memory used
Correct Answer:
A
Chapter: 54
Q770:
What is one of the tasks of the file manager in an operating system?
A. Allocating CPU time slices
B. Allocating memory space
C. Allocating access to files
D. Allocating space in the process table
Correct Answer:
C
Chapter: 54
Q771:
What does the memory manager allocate?
A. CPU time slices
B. Access to files
C. Memory space
D. Space in the process table
Correct Answer:
C
Chapter: 54
Q772:
Which component of the operating system allocates time slices?
A. File manager
B. Scheduler
C. Dispatcher
D. Memory manager
Correct Answer:
C
Chapter: 54
Q773:
What can be a result of poorly designed resource allocation in an operating system?
A. Improved performance
B. Increased efficiency
C. Malfunctions
D. Simplified operations
Correct Answer:
C
Chapter: 54
Q774:
What does the scheduler allocate in the operating system?
A. Memory space
B. Access to files
C. Time slices
D. Space in the process table
Correct Answer:
D
Chapter: 54
Q775:
What issue arises if two processes demand the same resource at one time?
A. Resource starvation
B. Deadlock
C. Resource allocation failure
D. Time slice exhaustion
Correct Answer:
B
Chapter: 54
Q776:
What is a potential problem if Process A is waiting for Resource 2 while Process B is waiting for Resource 1?
A. Resource starvation
B. Deadlock
C. Priority inversion
D. Context switching
Correct Answer:
B
Chapter: 54
Q777:
How does the dispatcher contribute to resource allocation?
A. By allocating memory space
B. By allocating access to files
C. By allocating time slices
D. By allocating space in the process table
Correct Answer:
C
Chapter: 54
Q778:
Why is designing a reliable operating system challenging?
A. Because machines think for themselves
B. Because resource allocation issues must be handled
C. Because memory is unlimited
D. Because user input is unpredictable
Correct Answer:
B
Chapter: 54
Q779:
What does a well-designed operating system need to cover regarding resource allocation?
A. Only common issues
B. Every possible contingency
C. Issues related to hardware only
D. Problems with user input
Correct Answer:
B
Chapter: 55
Q780:
What is the main function of the semaphore in an operating system?
A. Control access to shared resources
B. Manage memory allocation
C. Schedule processes
D. Handle interrupts
Correct Answer:
A