Looks like no one added any tags here yet for you.
A process is a ___
a. A program saved on disk
b. A program downloaded from the internet
c.A program saved in memory
d. None of the above
d. None of the above (it is a process in execution)
A process is made up of these parts:
a. Data section
b. Stack
c. Text section
d. All of the above
d. All of the above
The heap is one part of a process that:
a. Contains the executable binary
b. Stores memory allocated dynamically
c. Contains pointer variables declared in the program
d. None of the above
b. Stores memory allocated dynamically
A child process begins in the:
a. New state
b. Ready state
c. Running state
d. None of the above
a. New state
What is the state of a child process at the moment it is spawned?
a. New state
b. Ready state
c. Running state
d. None of the above
a. New state
When a message in the message queue is copied to the memory of a process, i.e., msgrcv completed and returned:
a. The process enters the Ready state
b. The process enters the Running state
c. The process enters the Blocked (waiting) state
d. The process enters the Terminated state
a. The process enters the Ready state
When a process is downloading a new webpage:
a. The process enters the New state
b. The process enters the Ready state
c. The process enters the Running state
d. The process enters the Blocked state
d. The process enters the Blocked state
At the moment a process is executing 'cin' to read data from the keyboard:
a. The process is in the Ready state
b. The process is in the Running state
c. The process is in the Blocked state
d. The process is in the Terminated state
b. The process is in the Running state
When a process executes a system call to close (& save data) to a file on a USB thumb drive:
a. The process enters the New state
b. The process enters the Ready state
c. The process enters the Running state
d. The process enters the Blocked state
d. The process enters the Blocked state
Which statement best describes the context of a process?
a. It encapsulates the activity of a process at the moment the process loses its turn on the CPU
b. It records the speed of a process while the process is executing
c. It records the size of memory that a process is currently using
a. It encapsulates the activity of a process at the moment the process loses its turn on the CPU
When a process loses its turn on the CPU, its context is restored (to CPU):
a. True
b. False
b. False
Where may the PCB of a process be found?
a. Message queues
b. Device queues
c. Priority queues
d. None of the above
b. Device queues
A process that spends most of its time reading data from an input device is known as
a. A child process
b. A parent process
c. An I/O bound processes
d. None of the above
c. An I/O bound processes
The OS separates each (user level) thread physically in RAM
a. True
b. False
b. False
A (user level) thread uses resources allocated to its process
a. True
b. False
a. True
A multi-threaded process can leverage its threads to
a. Speed up its computation
b. Use a larger share of its CPU allocation
c. Be more responsive & minimize execution delays
d. All of the above
d. All of the above
T/F: By caching, the OS may minimize delays that a software needs to wait for input data from an I/O device
True
T/F: When some input data is needed from an I/O device, the OS looks for a copy of this data in its buffer, hoping to avoid reading from the slow I/O device.
False
In the file inode: The most likely item to find in cache is:
a) the first data block of the file
b) the last data block of the file
c) the pointer block of the single indirect pointer
c) the pointer block of the single indirect pointer
A system call executes in
a) user mode
b) priority mode
c) kernel mode
d) none of the above
c) kernel mode
T/F: A system call allows an application software to request the OS to execute a task that the application is not permitted to execute directly, as a protective measure.
True
A trap instruction changes the CPU
a) from user mode to priority mode
b) from user mode to kernel mode
c) from kernel mode to user mode
d) none of the above
b) from user mode to kernel mode
T/F: A trap table is used during execution of a hardware interrupt.
False
T/F: Using the dual mode of operations, the OS can classify some instructions as privileged.
True
A priviliged instruction executes successfully in
a) user mode
b) priority mode
c) kernel mode
d) none of the above
c) kernel mode
Which is NOT a service provided by the OS?
a) communications
b) I/O operations