Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Tests  >  Test: Processes - Computer Science Engineering (CSE) MCQ

Test: Processes - Computer Science Engineering (CSE) MCQ


Test Description

10 Questions MCQ Test - Test: Processes

Test: Processes for Computer Science Engineering (CSE) 2024 is part of Computer Science Engineering (CSE) preparation. The Test: Processes questions and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus.The Test: Processes MCQs are made for Computer Science Engineering (CSE) 2024 Exam. Find important definitions, questions, notes, meanings, examples, exercises, MCQs and online tests for Test: Processes below.
Solutions of Test: Processes questions in English are available as part of our course for Computer Science Engineering (CSE) & Test: Processes solutions in Hindi for Computer Science Engineering (CSE) course. Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free. Attempt Test: Processes | 10 questions in 30 minutes | Mock test for Computer Science Engineering (CSE) preparation | Free important questions MCQ to study for Computer Science Engineering (CSE) Exam | Download free PDF with solutions
Test: Processes - Question 1

The systems which allow only one process execution at a time, are called __________

Detailed Solution for Test: Processes - Question 1

Those systems which allow more than one process execution at a time, are called multiprocessing systems. Uniprocessing means only one processor.

Test: Processes - Question 2

In Unix, Which system call creates the new process?

Detailed Solution for Test: Processes - Question 2

In UNIX, a new process is created by fork() system call. fork() system call returns a process ID which is generally the process id of the child process created.

1 Crore+ students have signed up on EduRev. Have you? Download the App
Test: Processes - Question 3

What is the ready state of a process?

Detailed Solution for Test: Processes - Question 3

Ready state of the process means process has all necessary resources which are required for execution of that process when CPU is allocated. Process is ready for execution but waiting for the CPU to be allocated.

Test: Processes - Question 4

A set of processes is deadlock if __________

Detailed Solution for Test: Processes - Question 4

Deadlock is a situation which occurs because process A is waiting for one resource and holds another resource (blocking resource). At the same time another process B demands blocking a resource as it is already held by a process A, process B is waiting state unless and until process A releases occupied resource.

Test: Processes - Question 5

Which system call can be used by a parent process to determine the termination of child process?

Detailed Solution for Test: Processes - Question 5

wait() system call is used by the parent process to determine termination of child process. The parent process uses wait() system call and gets the exit status of the child process as well as the pid of the child process which is terminated.

Test: Processes - Question 6

How many states can be processed in operating system?

Detailed Solution for Test: Processes - Question 6

Concept:
Process States in Operating System:
The process executes when it changes the state. The state of a process is defined by the current activity of the process.
The operating system's processes can be in any of the following conditions:
NEW:
The process is being created.
READY:
The process is waiting to be assigned to a processor.
RUNNING:
Instructions are being executed.
WAITING:
The process is waiting for some event to occur(such as an I/O completion or reception of a signal).
TERMINATED:
The process has finished execution.

Hence the correct answer is 5.

Test: Processes - Question 7

A microprogram sequencer

Detailed Solution for Test: Processes - Question 7

Concept:
Micro Instructions A sequencer is a collection of all devices used to pick the next micro-instruction location.

  • The micro-instruction in control memory comprises a set of bits that launch micro-operations in computer registers as well as additional bits that define how the address is accessed.
  • A microprogram sequencer generates the address of the next microinstruction to be executed.
  • A sequencer or microsequencer generates the addresses used to step through the microprogram of a control store.
  • It is used as a part of the control unit of a CPU or as a stand-alone generator for address ranges.

Hence the correct answer is to generate the address of the next microinstruction to be executed.

Test: Processes - Question 8

The maximum number of processes that can be in Ready state for a computer system with n CPUs is:

Detailed Solution for Test: Processes - Question 8

The size of the ready queue doesn’t depend on the number of processes. A single processor system may have a large number of processes waiting in ready queue  

Test: Processes - Question 9

Consider three CPU intensive processes, which require 10, 20, 30 units and arrive at times 0,2,6 respectively. How many context switches are needed if shortest remaining time first is implemented? Context switch at 0 is included but context switch at end is ignored

Detailed Solution for Test: Processes - Question 9

Scheduling Algorithm:
shortest remaining time first
Gantt chart:

Process table:


Number of context switches = 2
Since initial is included 
Therefore total context switches = 1 + 2 = 3

Test: Processes - Question 10

The kernel keeps track of the state of each executing program by using a data structure called ________.

Detailed Solution for Test: Processes - Question 10

The kernel keeps track of the state of each executing program by using a data structure called process control block.
Each process contains the process control block. PCB is the data structure used by the operating system. Operating system groups all the information that needs about a particular process.
STEPS :

  1. An identifier is assigned to a new process.
  2. Memory space is allocated for the process which includes program, data, stack, and PCB.
  3. PCB is placed in the appropriate queue.
  4. Other OS modules are notified about new processes i.e. create or expand other data structures to accommodate info about the new process.
Information about Test: Processes Page
In this test you can find the Exam questions for Test: Processes solved & explained in the simplest way possible. Besides giving Questions and answers for Test: Processes, EduRev gives you an ample number of Online tests for practice

Top Courses for Computer Science Engineering (CSE)

Download as PDF

Top Courses for Computer Science Engineering (CSE)