Академический Документы
Профессиональный Документы
Культура Документы
A. 2451
B. 4950
C. 4851
D. 9900
View/Hide
Correct Answer is C
Ans
A. Search
View/Hide
Correct Answer is D
Ans
A. 0.5 β Ig n
B. 0.5 (1 − β) Ig n
C. β (Ig n)/(Ig β)
D. − (Ig n)/Ig (1 − β)
View/Hide
Correct Answer is D
Ans
The minimum depth follows a path that always takes the smaller
part of partition - i.e, that multiplies the number of elements by β
. One iteration reduces the number of elements from n to β n , and
i iterations reduces the number of elements to β i n . At a leaf,
there is just one remaining element, and so at a minimum depth
leaf of depth m, we have β mn=1.Thus, β m=1/n. Taking logs, we
Explanation
get m log β = - log n or m = - log n / log β .
Similarly, maximum depth corresponds to always taking the
larger part of the partition, i.e., keeping a fraction 1 - β of the
elements each time. The maximum depth M is reached when
there is one element left, that is, when ( 1 - β) M n = . Thus, M = -
lg(n) / lg(1 - β ).
A. 2d − 1
B. 2d + 1 − 1
C. d+1
D. d
View/Hide
Correct Answer is C
Ans
Explanation Counting the root node the minimum number of nodes will be
d+1. this can be verified by taking either left or right skewed
binary tree with any arbitrary depth d.
A. Queue
B. Linked list
D. Binary tree
View/Hide
Correct Answer is C
Ans
View/Hide
Correct Answer is D
Ans
Consider
the In-
order and
Post-order
traversals
of a tree as
given
below : In-
order : j e
nkopbf
aclgmd
h i Post-
order : j n
opkefb
clmghi
d a The
Pre-order
traversal of
the tree
shall be
A. abfejknopcdglmhi
B. abcdefjknopglmhi
C. abejknopfcdglmhi
D. jenopkfbclmghida
View/Hide
Correct Answer is C
Ans
Explanation
A. (n − 1) (n − 2)/2 edges
D. ∑ k
(i=1) C(ni, 2) edges
View/Hide
Correct Answer is B
Ans
Explanation
9. Linked Lists are not suitable for _____.
A. Binary Search
B. Polynomial Manipulation
C. Insertion
D. Radix Sort
View/Hide
Correct Answer is A
Ans
Since linked list are not having array like arrangement where middle element can
Explanation be calculated by just using index positions. This is not available in Linked List due
to Dynamic nature. So Linked List does not support Binary Search.
The time complexity of an efficient algorithm to find the longest monotonically increasing
10.
subsequence of n numbers is
A. O(n)
B. O(n Ig n)
C. O(n2)
View/Hide
Correct Answer is C
Ans
Given a binary search trees for a set of n=5 keys with the following
probabilities :
i 0 1 2 3 4 5
11.
p 0.15 0.10 0.05 0.10 0.20
qi 0.05 0.10 0.05 0.05 0.05 0.10
The expected optimal cost of the search is
A. 2.65
B. 2.70
C. 2.75
D. 2.80
View/Hide
Correct Answer is C
Ans
Explanation
The worst case time complexity of AVL tree is better in comparison to binary
12.
search tree for
View/Hide
Correct Answer is D
Ans
Search is O(log N) since AVL trees are always balanced.
Explanation Insertion and deletions are also O(logn)
Where as in case of BST it is O(n)
In which tree, for every node the height of its left subtree and right subtree
13.
differ almost by one ?
B. AVL tree
View/Hide
Correct Answer is B
Ans
As per definition of AVL tree An AVL tree is a binary search tree whose
Explanation left subtree and right subtree differ in height by no more than 1, and
whose left and right subtrees are themselves AVL trees.
A hash function f defined as f (key) = key mod 13, with linear probing is used
14.
to insert keys 55, 58, 68, 91, 27, 145. What will be the location of 79 ?
A. 1
B. 2
C. 3
D. 5
View/Hide
Correct Answer is D
Ans
A. d&h
B. c&k
C. g, b, c, h, i, m
D. c&h
View/Hide
Correct Answer is D
Ans
Given an empty stack, after performing push (1), push (2), Pop, push (3),
16.
push (4), Pop, Pop, push(5), Pop, what is the value of the top of the stack ?
A. 4
B. 3
C. 2
D. 1
View/Hide
Correct Answer is D
Ans
Explanation
View/Hide
Correct Answer is C
Ans
Explanation
The time complexities of some standard graph algorithms are given. Match
each algorithm with its time complexity ? (n and m are no. of nodes and
18. edges respectively) a. Bellman Fordalgorithm1. O (m log n) b. Kruskals
algorithm 2. O (n3) c. Floyd Warshallalgorithm 3. O(mn) d. Topological
sorting 4. O(n + m) Codes : a b c d
A. 3124
B. 2431
C. 3412
D. 2134
View/Hide
Correct Answer is A
Ans
Explanation
Let T(n) be the function defined by T(n) = 1 and T(n) = 2T (n/2) + n, which
19.
of the following is TRUE ?
A. T(n) = O( n)
B. T(n) = O(log2n)
C. T(n) = O(n)
D. T(n) = O(n2)
View/Hide
Correct Answer is C
Ans
Explanation
A. 3, 2, 1, 5, 4
B. 5, 4, 3, 2, 1
C. 3, 4, 5, 2, 1
D. 3, 4, 5, 1, 2
View/Hide
Correct Answer is B
Ans
Explanation
MCQs
Suppose there are logn sorted lists of n logn elements each. The time
21. complexity of producing a sorted list of all these elements is (use heap data
structure)
B. ?(n logn)
C. ? (n logn)
D. ? (n3/2)
View/Hide
Correct Answer is a
Ans
Explanation
View/Hide
Correct Answer is c
Ans
A. stack
B. tree
C. queue
D. linked list
View/Hide
Correct Answer is a
Ans
Explanation
The post order traversal of a binary tree is DEBFCA. Find out the preorder
24.
traversal
A. ABFCDE
B. ADBFEC
C. ABDECF
View/Hide
Correct Answer is c
Ans
Explanation
A. 2
B. 3
C. 4
D. 5
View/Hide
Correct Answer is d
Ans
Explanation
B. All items in the right subtree are greater than or equal to the root
Explanation
27. Leaves of which of the following trees are at the same level?
A. Binary tree
B. B-tree
C. AVL-tree
D. Expression tree
View/Hide
Correct Answer is b
Ans
Explanation
The Inorder traversal of the tree will yield a sorted listing of elements of tree
28.
in
A. Binary tree
C. Heaps
View/Hide
Correct Answer is b
Ans
Explanation
A. Strings
B. Lists
C. Queues
View/Hide
Correct Answer is d
Ans
Explanation
A. Dequeue
B. Priority
C. Tree
View/Hide
Correct Answer is c
Ans
Explanation
Explanation
Which of the following connected simple graph has exactly one spanning
42.
tree?
A. Complete graph
B. Hamiltonian graph
C. Euler graph
View/Hide
Correct Answer is d
Ans
Explanation
A. M+N�C
B. M�N�C
C. M�N+C
D. M+N+C
View/Hide
Correct Answer is c
Ans
Explanation
Suppose you want to delete the name that occurs before �Vivek� in an
44. alphabetical listing. Which of the following data structures shall be most
efficient for this operation?
D. Dequeue
View/Hide
Correct Answer is b
Ans
Explanation
A. 2n-1-1
B. 2n-1+1
C. 2n+1-1
D. 2n+1+1
View/Hide
Correct Answer is c
Ans
Explanation
B. Dynamic Programming
D. Greedy Strategy
View/Hide
Correct Answer is a
Ans
Explanation
Give the name of the Linear list in which elements can be added at ends
47.
but not in the middle:
A. Array
B. Queue
C. Tree
D. Circular Queue
View/Hide
Correct Answer is b
Ans
Explanation
A. Isolated graph
B. Connected graph
C. Eulerian graph
D. Complete graph
View/Hide
Correct Answer is d
Ans
Explanation
A. n nodes
B. 2n-1 nodes
C. n-1 nodes
D. log n nodes
View/Hide
Correct Answer is b
Ans
Explanation
50. In any undirected graph, the sum of the degrees of all nodes is:
A. must be even
B. is always ODD
View/Hide
Correct Answer is d
Ans
Explanation
51.An undirected graph is Eulerian if and only if all vertices of G are of the sum of the degrees
of all nodes is:A.Same degreeB.ODD degreeC.Need not be ODDD.is twice number of
edgesView/Hide Ans
Correct Answer is b
Explanation52.An undirected graph G has n vertices and n-1 edges then G is:A.CyclicB.Addition
of edge will make it cyclicC.EulerianD.Is a TreeView/Hide Ans
Correct Answer is d
Explanation53.Graph having every pair of vertices connected is called:A.Cycle
graphB.Complete graphC.Peterson graphD.Is a TreeView/Hide Ans
Correct Answer is b
Explanation54.The Eigen vectors of a real symmetric matrix corresponding to different Eigen
values are:A.Orthogonal matrixB.Singular matrixC.Non-singular matrixD.Inverse
matrixView/Hide Ans
Correct Answer is a
Explanation55.The complexity of linear search algorithm of an array of n elements is:A.O
log(n)B.O (n)C.O nlog(n)D.O(nXn)View/Hide Ans
Correct Answer is b
Explanation56.�n� elements of a queue are to be reversed using another queue. The number of
�ADD� and �REMOVE� required to do so is,A.2*nB.4*nC.nD.the task cannot be
doneView/Hide Ans
Correct Answer is d
Explanation57.Prim�s algorithm is a method available for finding out the minimum cost of a
spanning tree. Its time complexity is given by:A.O(n*n)B.O(n logn)C.O(n)D.O(1)View/Hide
Ans
Correct Answer is a
Explanation
If the disk head is located initially at 32, find the number of disk moves
1. required with FCFS if the disk queue of I/O blocks requests are 98, 37,
14, 124, 65, 67.
A. 239
B. 310
C. 321
D. 325
View/Hide
Correct Answer is c
Ans
A. Segmentation
C. Swapping
D. Paging
View/Hide
Correct Answer is a
Ans
B. 9
C. 10
D. 13
View/Hide
Correct Answer is d
Ans
D. to avoid collision
View/Hide
Correct Answer is a
Ans
The preemptive scheduling feature allows a pending high-priority
job to preempt a running job of lower priority. The lower-priority
Explanation job is suspended and is resumed as soon as possible. Use
preemptive scheduling if you have long-running, low-priority jobs
causing high-priority jobs to wait an unacceptably long time.
A. mutual exclusion
C. no pre-emption
D. circular wait
View/Hide
Correct Answer is a
Ans
A. increases
B. decreases
C. remains constant
D. varies irregularly
View/Hide
Correct Answer is d
Ans
A. Preemption
B. Swapping
C. Spooling
D. Scheduling
View/Hide
Correct Answer is b
Ans
A. Print server
B. Virtual machine
C. Virtual memory
D. All of the above
View/Hide
Correct Answer is d
Ans
A. It is event driven
B. It is object oriented
View/Hide
Correct Answer is a
Ans
A. Extensible
B. Portable
C. Reliable
View/Hide
Correct Answer is d
Ans
MCQs
Blocking and Caching are the terms associated with which Operating system
11.
functions respectively
View/Hide
Correct Answer is b
Ans
12. Which of these is not a term describing the collection of Operating Programs
A. Monitor
B. Kernel
C. Supervisor
D. Server
View/Hide
Correct Answer is d
Ans
A. Batch Processing
B. Real time
C. Distributed
D. Time sharing
View/Hide
Correct Answer is c
Ans
A. Batch Processing
B. Multiprogramming
C. Distributed
D. Time sharing
View/Hide
Correct Answer is d
Ans
Explanation
A. Batch Processing
B. Real time
C. multiprogramming
D. Time sharing
View/Hide
Correct Answer is c
Ans
Explanation
A. Batch Processing
B. Multiprogramming
C. Distributed
D. Time sharing
View/Hide
Correct Answer is c
Ans
Explanation
A. Batch Processing
B. Real time
C. multiprogramming
D. Time sharing
View/Hide
Correct Answer is b
Ans
Explanation
B. Privileged mode
C. Memory Protection
D. Both 2 and 3
View/Hide
Correct Answer is d
Ans
Explanation
A. Scheduling
B. Memory Management
C. I/O management
D. All of above
View/Hide
Correct Answer is d
Ans
Explanation
20. Applications like Banking and reservations require which type of OS?
A. Real Time
View/Hide
Correct Answer is c
Ans
Explanation
A. Computation speed up
B. Resource sharing
C. Reliability
D. Communication
View/Hide
Correct Answer is a
Ans
Explanation
A. Batch Processing
B. Real time
C. Distributed
D. Time sharing
View/Hide
Correct Answer is b
Ans
Explanation
Pool based allocation of memory achieves better usage. Memory can be
23. preempted from inactive programs and used to accommodate active
programs. This is called
A. Preemption
B. Swapping
C. Spooling
D. Scheduling
View/Hide
Correct Answer is b
Ans
Explanation
A. Print server
B. Virtual machine
C. Virtual memory
View/Hide
Correct Answer is d
Ans
Explanation
A. It is event driven
B. It is object oriented
Explanation
A. Extensible
B. Portable
C. Reliable
View/Hide
Correct Answer is d
Ans
Explanation
Blocking and Caching are the terms associated with which Operating system
27.
functions respectively
View/Hide
Correct Answer is b
Ans
Explanation
A. Monitor
B. Kernel
C. Supervisor
D. Server
View/Hide
Correct Answer is d
Ans
Explanation
A. Batch Processing
B. Real time
C. Distributed
D. Time sharing
View/Hide
Correct Answer is c
Ans
Explanation
A. Batch Processing
B. Multiprogramming
C. Distributed
D. Time sharing
View/Hide
Correct Answer is d
Ans
Explanation
You are here: UGC NET/GATE Free Materials>>Multiple Choice Questions>>Operating System
MCQs
31. Program Priorities, Preemption are the key concepts of
A. Batch Processing
B. Real time
C. multiprogramming
D. Time sharing
View/Hide
Correct Answer is c
Ans
Explanation
A. Batch Processing
B. Multiprogramming
C. Distributed
D. Time sharing
View/Hide
Correct Answer is c
Ans
Explanation
A. Batch Processing
B. Real time
C. multiprogramming
D. Time sharing
View/Hide
Correct Answer is b
Ans
Explanation
B. Privileged mode
C. Memory Protection
D. Both 2 and 3
View/Hide
Correct Answer is d
Ans
Explanation
A. Scheduling
B. Memory Management
C. I/O management
D. All of above
View/Hide
Correct Answer is d
Ans
Explanation
36. Applications like Banking and reservations require which type of OS?
A. Real Time
View/Hide
Correct Answer is c
Ans
Explanation
A. Computation speed up
B. Resource sharing
C. Reliability
D. Communication
View/Hide
Correct Answer is a
Ans
Explanation
A. Batch Processing
B. Real time
C. Distributed
D. Time sharing
View/Hide
Correct Answer is b
Ans
Explanation
If ttra and tcam are the time taken to transfer a block from memory to cache
39. and access time of cache memory respectively, then what will be the
effective memory access time if h is the hit ratio
C. h +(1-h) *(ttra+tcam)
View/Hide
Correct Answer is b
Ans
Explanation
A. spatial locality
B. temporal locality
C. reference locality
D. access locality
View/Hide
Correct Answer is a
Ans
Explanation
MCQs
41. Which term means to access some data and instructions repeatedly?
A. spatial locality
B. temporal locality
C. reference locality
D. access locality
View/Hide
Correct Answer is b
Ans
Explanation
View/Hide
Correct Answer is b
Ans
Explanation
An Intel processor uses a cache block size of 128 bytes and a memory
transfer to cache is about 10 times the access time of cache memory.
43.
with cache hit ratio of 0.97 what percent will be the effective memory
access to that of access time of memory
A. 20 percent
B. 30 percent
C. 40 percent
D. 50 percent
View/Hide
Correct Answer is c
Ans
Explanation
View/Hide
Correct Answer is d
Ans
Explanation
View/Hide
Correct Answer is d
Ans
Explanation
A. (tf-t0)/n
B. tf*n/t0
C. n/(tf-t0)
D. n*tf*t0
View/Hide
Correct Answer is c
Ans
Explanation
Which of these are the reasons for CPU-bound programs having higher
47.
priority than the I/O bound programs
View/Hide
Correct Answer is d
Ans
Explanation
View/Hide
Correct Answer is c
Ans
Explanation
Which of these is not a goal of Scheduling Algorithm for Different
49.
Operating Systems
A. Fairness
B. balance
C. maximize throughput
D. Policy enforcement
View/Hide
Correct Answer is c
Ans
Explanation
A. Convoy Effect
C. Simplicity
D. non-preemptive
View/Hide
Correct Answer is a
Ans
Explanation
A. 10-100 millisec
B. 10-100 nanosec
C. 100-1000 millisec
D. 100-1000 nanosec
View/Hide
Correct Answer is a
Ans
Explanation
A. 80%
B. 70%
C. 60%
D. 50%
View/Hide
Correct Answer is a
Ans
Explanation
Interval between the time since submission of the job to the time its
53.
results become available, is called
A. Response Time
B. Throughput
C. Waiting time
D. Turnaround Time
View/Hide
Ans
Explanation
D. Job Scheduler
View/Hide
Ans
Explanation
The scheduling in which CPU is allocated to the process with least CPU-
55.
burst time is called
A. Priority Scheduling
View/Hide
Correct Answer is d
Ans
Explanation
A. blocked
B. executing
C. Waiting
D. swapped
View/Hide
Correct Answer is b
Ans
Explanation
B. deadlock prevention.
C. deadlock avoidance.
View/Hide
Ans
Explanation
58. Which scheduling policy is used for a batch processing operating system
A. Shortest-job First.
B. Round-Robin.
C. Priority Based
D. First-Come-First-Serve.
View/Hide
Correct Answer is d
Ans
Explanation
View/Hide
Correct Answer is b
Ans
Explanation
60. Which amongst the following is a valid page replacement policy?
C. only a
D. both a and b
View/Hide
Correct Answer is b
Ans
Explanation
A. Shortest-Seek-time-first scheduling
B. simple-seek-time-first
C. smallest � seek-time-first.
View/Hide
Correct Answer is a
Ans
Explanation
Before proceeding with its execution, each process must acquire all the
62.
resources it needs is called
A. pre-emption.
B. circular wait.
D. deadlock.
View/Hide
Correct Answer is c
Ans
Explanation
The total time to prepare a disk drive mechanism for a block of data to
63.
be read from is its
A. Access Time
B. Seek time
View/Hide
Correct Answer is c
Ans
Explanation
A. Starvation
B. Relocation
C. Promotion
D. Ageing
View/Hide
Correct Answer is d
Ans
Explanation
B. B, C and D
C. A and B.
D. Only A
View/Hide
Correct Answer is b
Ans
Explanation
View/Hide
Correct Answer is c
Ans
Explanation
A. DMA
B. Virtual Memory
C. Processor Scheduler
D. Disk manager
View/Hide
Correct Answer is a
Ans
Explanation