In: Computer Science
What runs in user mode
A. Email reader
B. Web browser
C. User Interface Program
D. Music Player
E. Operating system
F. Device drivers
Choose one the following
a. a and e
b. a b,c,d
c. a,f
d. e,d
e. f,b
2) Choose which are parameters of a process table entry
A. Process ID
B. Program Counter
C. Stack Pointer
D. User ID
E. Signals
Choose one of the following
a. a, b,
b. d, e
c. a, d
d. a, b,c,d
e. a, b, c, e
3) What are the peripheral components which are directly connected to the computer bus.
A. Monitor
B. Keyboard
C. CPU
D. Memory
E. Hard-Disk
Choose one of the following
a. a, b, c
b. a, b, e
c. c, d
d. a, b, c, d
4) What is operating system?
A. collection of programs that manages hardware resources
B. system service provider to the application programs
C. link to interface the hardware and application programs
D. all of the mentioned
5) If a process fails, most operating system write the error information to a
a. A log file
b. Another running process
c. A new file
d. None of the mentioned
6) To access the services of operating system, the interface is provided by the
a. System calls
b. API(Application Programmers Interface)
c. Library
d. Assembly Instructions
7) Which one of the following error will be handle by the operating system?
a. Power failure
b. Lack of paper in printer
c. Connection failure in the network
d. All of the mentioned
Question 1:
Correct Answer: b
Explanation:
The system call provides the service to the user and it is a way by which the computer program requests service from the kernel. The kernel manages the key component of the operating system like device management, file management, CPU scheduling, memory management, etc.
The operating system run in dual mode as given below:
1. User mode
2. Kernel-mode/ Monitor mode/ Privilege mode/ System mode
In user mode, a program was written by the user run and in this mode, simple arithmetic instruction or which requires some ALU operations are executed.
In kernel mode, the privilege instruction like reading from the disk, writing into the disk, etc is executed and this type of instruction deals with Input/Output. This instruction must never run in user mode.
The main purpose of the system call is to open a file, to read a file, to write a file, to create a new process, wait for another process, close a file, or exit a process, etc.
The system call works as an intermediate between the user program and the kernel. The user-level process can request the operating system or kernel through the system call.
The system calls are executed in kernel mode only.
The email reader, web browser, user interface program, and music player runs in user mode and the operating system and device drivers run in kernel mode.
So, only option b is correct.
Question 2:
Correct Answer: d
Explanation:
The process table or process control block is a data structure used by the operating system which contains the information which stores the scheduling information of a process. It stores the entire information about a process.
Content of the Process Control Block:
So, only option d is correct.
Question 3:
Correct Answer: No option available
Explanation:
In the given options, only the monitor and keyboard are peripheral devices but all others are not peripheral devices. But in the given options the non-pheripheral devices also included.
So, non of the option is correct.
Question 4:
Correct Answer: D
Explanation:
The operating system is the system software that handles the computer's basic functionality like scheduling, input/output operation resource allocation, file system manipulation, etc.
It is an interface between the computer hardware and the user.
Services offered by the operating system:
The two main roles of the operating system are:
So, option D is correct.