Wednesday, November 26, 2008

computer science question for government service exam

***Q. which one is not the solution to critical section problem?

(a) Deadlock avoidance (b) Mutual exclusion

(c) Progress requirement (d) Bounded waiting

Ans: - (a)

Q. Which increases the CPU efficiency?

(a) Multiprogramming (b) Time-sharing system

(c)Multitasking system (d) All

Ans: - (d)

***Q. When one process is executing in its critical section no other will be allowed into critical section is specified by the condition?


(a) Critical section waiting

(b) Mutual exclusion

(c) Progress requirement.

(d) Bounded waiting.

Ans: - (b)

Q. The principle of locality is used in case of?

(a) Primary memory (b) Virtual Memory

(c) Cache memory (d) Secondary memory.

Ans: - (c)

Q. CPU scheduling is the concept relative to which operating System

(a) Time-sharing OS

(b) Multiprocessor

(c) Batched operating system

(d) Multiprogramming OS.

Ans: - (d)

***Q. In which situation result of operation can not be controlled by programmer?

(a) Race condition. (b) Critical section problem

(c) Semaphore problem (d) (a) & (b)

Ans: - (a)

Q. Which of the following is not the part of operating system?

(a) Job control program (b) Supervisor

(c) Performance monitor (d) Accounting.

Ans: - (c).

Q. Trap is which type of interrupt:-

(a) Hardware (b) Synchronous

(c) Asynchronous (d) operating system’s

Ans:- (b)

****Q. Which is responsible for Running to waiting state of a program?

(a) Time slice expires.

(b) I/O operation.

(c) Process termination.

(d) Interrupt occur

Ans: - (b)

NOTE: - I/O operation and when a process creates child process is responsible for transition of a process from Running state to waiting state.

Q. Scheduling is the process of?

(a) Execute the job faster.

(b) Providing time to execute the task.

(c) Allowing different jobs to use the processor.

(d) Not related to performance

Ans: - (c)

Q. Number of jobs competed in unit amount of time is called

(a) Speedup (b) Efficiency

(c) Throughput (d) Performance

Ans: - (c)

***Q. Scheduler responsible for loading jobs into ready queue is?

(a) Short-term (b) Medium-term

(c) Long –term (d) all

Ans: (c)

Q. Which scheduling policy is suitable for interactive or time-sharing system?

(a) Multilevel Queue Scheduling

(b) Round-robin Scheduling

(c) SJF policy

(d) None

Ans: - (b)

Q. What is the role of dispatcher?

(a) Put task in Ready queue

(b) To select a job

(c) Never changes the task priorities

(d) To give the control to the process selected by CPU

Ans: - (d)

*** Q. Which scheduler is in -charge of ready to running state transition of process?

(a) Short-term (b) Medium-term

(c) Long –term (d) all

Ans: - (a)

**** Q. Which scheduler is performing swapping function?

(a) Short-term (b) Medium-term

(c) Long –term (d) all

Ans: - (b)

Q. Context switching is concept related to

(a) Spooling

(b) Poling

(c) Interrupt handling

(d) Interrupt servicing.

Ans: - (c)


Q. A critical section is a program segment which supports

(a) Deadlock avoidance.

(b) Resource preemption.

(c) Modification to shared resources

(d) Sharing of resource

Ans: - (c)

No comments: