Operating System
To access the services of the operating system, the interface is provided by the ___________

A. Library
B. System calls
C. Assembly instructions
D. Api

Explanation: To access services of the Operating System an interface is provided by the System Calls. Generally, these are functions written in C and C++. Open, Close, Read, Write are some of most prominently used system calls.

Which one of the following errors will be handle by the operating system?

A. Lack of paper in printer
B. Connection failure in the network
C. Power failure
D. All of the mentioned

Explanation: All the mentioned errors are handled by OS. The OS is continuously monitoring all of its resources. Also, the OS is constantly detecting and correcting errors.

Where is the operating system placed in the memory?

A. Either low or high memory (depending on the location of interrupt vector)
B. In the low memory
C. In the high memory
D. None of the mentioned

What does OS X has?

A. Monolithic kernel with modules
B. Microkernel
C. Monolithic kernel
D. Hybrid kernel

Explanation: OS X has a hybrid kernel. Hybrid kernel is a combination of two different kernels. OS X is developed by Apple and originally it is known as Mac OS X.

In a timeshare operating system, when the time slot assigned to a process is completed, the process switches from the current state to?

A. Suspended state
B. Terminated state
C. Ready state
D. Blocked state

Explanation: In a time-sharing operating system, when the time slot given to a process is completed, the process goes from the running state to the Ready State. In a time-sharing operating system, unit time is defined for sharing CPU, it is called a time quantum or time slice. If a process takes less than 1 time quantum, then the process itself releases the CPU.

Cascading termination refers to the termination of all child processes if the parent process terminates ______

A. Normally or abnormally
B. Abnormally
C. Normally
D. None of the mentioned

Explanation: Cascading termination refers to the termination of all child processes if the parent process terminates Normally or Abnormally. Some systems don’t allow child processes to exist if the parent process has terminated. Cascading termination is normally initiated by the operating system.

When a process is in a “Blocked” state waiting for some I/O service. When the service is completed, it goes to the __________

A. Terminated state
B. Suspended state
C. Running state
D. Ready state

Explanation: Suppose that a process is in “Blocked” state waiting for some I/O service. When the service is completed, it goes to the ready state. Process never goes directly to the running state from the waiting state. Only processes which are in ready state go to the running state whenever CPU allocated by operating system. Waiting State -> Ready State -> Running State

Transient operating system code is a code that ____________

A. Stays in the memory always
B. Never enters the memory space
C. Comes and goes as needed
D. Is not easily accessible

What are the characteristics of stack based IDS?

A. It is programmed to interpret a certain series of packets
B. It models the normal usage of the network as a nosie characterization
C. They are integrated closely with the TCP/IP stack and watch packets
D. The host operating system logs in the audit information