Bel Previous Year Paper Cse 1 57
Bel Previous Year Paper Cse 1 57
com
1
byjusexamprep.com
1. If tan x = Sin 45°, cos 45°+sin30°
Then the value of x is
A. 30° B. 45°
C. 60° D. 90°
Ans. B
Sol. tan x = Sin 45°, cos 45°+sin30°
1 1 1 1 1
= + = + =1
2 2 2 2 2
tanx = tan45 x = 45
2. From a point P, the angle of elevation of a tower is such that its tangent is 3/4. On walking 560
metres towards the tower the tangent of the angle of elevation of the tower becomes 4/3. What
is the height (in metres) of the tower?
A. 720 B. 960
C. 840 D. 1030
Ans. B
Sol. Tangent of tower is 3/4
Let the perpendicular be 3x and the base be 4x.
Then hypotenuse will be 5x
On walking 560 meter towards the tower tangent is 4/3
Hence
9x=16x-2240
7x=2240
x=320
Height of tower is 3x= 3× 320=960meter
3. Direction: What value should come in place of the question mark (?) in the following equation?
47432 - (529+828+324)=?*4784A. 4784
A. 4742 B. 4702
C. 4778 D. 4384
Ans. C
Sol. (4743)2-{(232)+(2*18*23)+(182)} = ?*4784
(4743)2-(23+18)2= ?*4784
(4743)2-412= ?*4784
=4784*4702 = ?*4784
?=4702
2
byjusexamprep.com
4. Ramvir travelling at certain speed, can cover 25 km upstream and 39 km downstream in 8 hours.
At the same speed, he can travel 35 km upstream and 52 km downstream in 11 hours. The
speed of the stream is:
A. 3 km/hr B. 4 km/hr
C. 5 km/hr D. 6km/hr
E. None of these
Ans. B
Sol. Let the speed of Ramvir in still water and speed of stream be x & y kmph respectively.
According to question,
From (i),
25(x + y) + 39(x – y) = 8(x2 – y2)
⇒ 25x + 25y + 39x – 39y = 8(x2 – y2)
⇒ 64x – 14y = 8(x2 – y2) ....(iii)
From (ii),
35(x + y) + 52(x – y) = 11(x2 – y2)
⇒ 35x + 35y + 52x – 52y = 11(x2 – y2)
⇒ 87x – 17y = 11(x2 – y2) ....(iv)
On Solving equation (iii) and (iv), we get
x = 9 kmph and y = 4 kmph
Required speed of the stream = y = 4 kmph
5. Three persons start running at the same time from the same point. Their speeds are 9 km/h, 13
km/h and 10 km/h respectively. If they are running on an 8 km-circular road, then after how
much time will they meet at the starting point?
A. 8 hrs B. 10 hrs
C. 16 hrs D. 24 hrs
Ans. A
Sol. Speed of the first person = 9 km/hr
It means he covers 9 km in 1 hour. So, in covering the complete round of 8 km, first person will
take (8/9) hrs.
Similarly, second and third persons will take (8/13) & (8/10) hours respectively.
Hence, required time = L.C.M of (8/9), (8/13) & (8/10)
=[LCM of (8,8,8)]/[HCF of (9,13,10)] = 8/1 = 8 hours
3
byjusexamprep.com
6. Sanjay and Mohit entered into a partnership by investing Rs. 12000 and Rs. 18000 respectively.
After 4 months Sanjay withdrew Rs. 3000 while Mohit invested Rs. 3000. After another 2 months,
Praveen joins the business with a capital of Rs. 15000. The profit share of Sanjay exceeds that
of Praveen, out of a total profit of Rs. 38400 after one year by:
A. Rs. 2560 B. Rs. 2550
C. Rs. 2480 D. Rs. 2490
E. None of these
Ans. A
Sol. Ratio of profit share of Sanjay, Mohit and Praveen
= (12000 × 4 + 9000 × 8) : (18000 × 4 + 21000 × 8) : (15000 × 6)
= (48 + 72) : (72 + 168) : 90 = 120 : 240 : 90
= 20 : 40 : 15
The graph gives the information about the total number of employees
The bar graph shows the distribution of employees between graduates and postgraduates.
4
byjusexamprep.com
8. If you combine the employees of different departments for all companies, which department will
have the highest number of employees?
5
byjusexamprep.com
A. Marketing B. HR
C. Sales D. Accounts
E. All have equal number of employees
Ans. B
Sol. Number of employees in Company A = 5000
Percentage of HR in Company A = 21%
Number of HR in Company A = 1050
Number of employees in Company B = 4500
Percentage of HR employees in Company B = 34%
Number of HR employees in Company B = 1530
Number of employees in Company C = 6000
Percentage of HR employees in Company C = 31%
Number of HR employees in Company C = 1860
Number of employees in Company D = 5000
Percentage of HR employees in Company D = 25%
Number of HR employees in Company D = 1250
Number of employees in Company E = 5500
Percentage of HR employees in Company E = 28%
Number of HR employees in Company E = 1540
Total number of HR employees = 1050 + 1530 + 1860 + 1250 + 1540 =7230
Number of employees in Company A = 5000
Percentage of Accounts in Company A = 22%
Number of Accounts in Company A = 1100
Number of employees in Company B = 4500
Percentage of Accounts employees in Company B = 11%
Number of Accounts employees in Company B = 495
Number of employees in Company C = 6000
Percentage of Accounts employees in Company C = 18%
Number of Accounts employees in Company C = 1080
Number of employees in Company D = 5000
Percentage of Accounts employees in Company D = 23%
Number of Accounts employees in Company D = 1150
Number of employees in Company E = 5500
Percentage of Accounts employees in Company E = 22%
Number of Accounts employees in Company E = 1210
Total number of Accounts employees = 1100 + 495 + 1080 + 1150 + 1210 = 5035
Number of employees in Company A = 5000
Percentage of Sales in Company A = 34%
Number of Sales in Company A = 1700
6
byjusexamprep.com
Number of employees in Company B = 4500
Percentage of Sales employees in Company B = 20%
Number of Sales employees in Company B = 900
Number of employees in Company C = 6000
Percentage of Sales employees in Company C = 30%
Number of Sales employees in Company C = 1800
Number of employees in Company D = 5000
Percentage of Sales employees in Company D = 25%
Number of Sales employees in Company D = 1250
Number of employees in Company E = 5500
Percentage of Sales employees in Company E = 24%
Number of Sales employees in Company E = 1320
Total number of sales employees = 1700 + 900 + 1800 + 1250 + 1320 = 6970
Number of employees in Company A = 5000
Percentage of Marketing in Company A = 23%
Number of Marketing in Company A = 1150
Number of employees in Company B = 4500
Percentage of Marketing employees in Company B = 35%
Number of Marketing employees in Company B = 1575
Number of employees in Company C = 6000
Percentage of Marketing employees in Company C = 21%
Number of Marketing employees in Company C = 1260
Number of employees in Company D = 5000
Percentage of Marketing employees in Company D = 27%
Number of Marketing employees in Company D = 1350
Number of employees in Company E = 5500
Percentage of Marketing employees in Company E = 26%
Number of Marketing employees in Company E = 1430
Total number of HR employees = 1150 + 1575 + 1260 + 1350 + 1430 = 6765
9. From the given options, which answer figure can be formed by folding the figure given in the
question?
7
byjusexamprep.com
A. B.
C. D.
Ans. D
Sol. From the given figure we can say that,
Both the black faces will be on opposite faces,
Both the white faces will be on opposite faces and
Filled square and blank square will be on opposite faces.
Thus cube at option D can be formed by folding the given figure.
10. If a mirror is placed on the line AB, then which of the answer figures is the right image
of the given figure?
A. B.
C. D.
Ans. C
Sol. The mirror image is -
8
byjusexamprep.com
11. The sequence of folding a piece of paper and the manner in which the folded paper has been cut
is shown in the following figure. How would this paper look when unfolded?
A. B.
C. D.
Ans. C
Sol. After unfolding the paper.
12. In each of the following questions, figure (X) are given followed by four alternative figures (a),
(b), (c) and (d) such that figure (X) is embedded in one of them. Trace out the alternative figure
which contains figure (X) as its part.
9
byjusexamprep.com
13. Direction: Study the following information carefully and answer the question given below.
There are five persons, David, Dravid, Dylan, Drake, and Diego. Two of them works in Google
while the other three works in three different companies-TCS, Sony and Samsung. One of the
persons who work in Google and the one who works in Samsung live in the same city-Mumbai.
The other three live in three different cities-Pune, Delhi and Bangalore. Two of these five persons
have Rolex while the remaining three have different watches-Titan, Sonata, and Maxima. The
one who works in Samsung is the tallest in the height while one of the persons who work in
Google likes Blue colour is the shortest. The other person who works in Google likes Pink colour
which is liked by none and height wise lies exactly between the one who works in TCS and the
one who works in Samsung. Drake likes Pink colour and lives in Mumbai while Diego has Sonata
and lives in Bangalore. The one who works in TCS has Titan and lives in Pune. Dravid has Maxima
while David has Rolex and likes a Blue colour which is liked by none.
Who among the following works in TCS?
A. The one who lives in Mumbai B. The one who likes Maxima
C. Dylan D. The one who likes Sonata
E. Can’t be determined
Ans. C
Sol. From the direct information, we can form the following table-
Samsung-tallest,
1 Google-blue-Shortest
Height: Samsung > Google-Pink>TCS
TCS-Titan-Pune
As only Drake likes Pink color and he lives in Mumbai so he must work in Google. Also, David
must also work in Google as he likes Blue color and is the shortest one. As the one who works
in TCS lives in Pune and has Titan, he must be Dylan according to the space left. This implies
that Drake likes Rolex. The one who works in Samsung lives in Mumbai so he must be Dravid.
This implies that Diego works in Sony and David lives in Delhi. Also, Dravid is the tallest, Dylan
is 2nd tallest. Drake is 3rd tallest and Diego is 2nd shortest.
10
byjusexamprep.com
The final table is shown below:
14. A man said to a lady, ‘Your mother’s husband’s sister is my mother.’ How is the man related to
the lady?
A. Cousin B. Brother
C. Son D. Nephew
Ans. A
Sol. Lady’s mother’s husband is lady’s father; whose sister is lady’s aunt. Man is the son of lady’s
aunt, so man is the cousin of lady.
15. Shivam started walking in east direction for 4 km and then turned to his left and walked a
distance of 5 km. Then he again turned to his left and walked 6 km. After taking right from his
previous position he walked for 3 km and reached his destination.
Find the shortest distance and direction of Shivam's destination from his starting point?
A. 4√17 km east B. 2√17 km, North-West
C. 5 km, North D. 3√16 km. North-West
Ans. B
Sol. From the following image it is clear that the shortest distance between Shivam's starting point
and destination is 2√17 km and his destination is in the north-west direction from the starting
point.
= 8 2 + 22
= 64 + 4
= √68 => 2√17
11
byjusexamprep.com
Hence option B is the correct answer.
16. Eight people A, B, C, D, E, F, G and H are sitting around a circle facing the centre. E sits third to
the right of A who is to the immediate left of D who is second to the right of G. F is second to
the left of A. H is not an immediate neighbour of E. C sits second to the right of B. What is C's
position with respect to A?
A. Third to the right B. Second to the right
C. Fourth to the right D. None of these
Ans. C
Sol. As per the given information:
17. A series is given with one term missing. Select the correct alternative from the given ones that
can help complete the series.
512, 256, 128, ?, 32, 16, 8
A. 52 B. 61
C. 64 D. 56
Ans. C
Sol. Given: 512, 256, 128, ?, 32, 16, 8
18. In the following question, select the related number group from the given alternatives.
19 : 367 :: ? : ?
A. 21 : 447 B. 22 : 491
C. 29 : 850 D. 31 : 963
Ans. A
Sol. 367 = 192 + 6
12
byjusexamprep.com
Similarly,
447 = 212 + 6
491 = 222 + 7
850 = 292 + 9
963 = 312 + 2
Hence, option A is the correct answer.
19. In a certain code language “FLUORENE” is written as “43168757” and “ELONGATE” is written as
“73652907”. How will “NEUTRAL” be written in that code language?
A. 5710893 B. 5710823
C. 5718693 D. 5710892
Ans. A
Sol. As,
F = 4,
L = 3,
U = 1,
O = 6,
R = 8,
E = 7,
N = 5,
G = 2,
A = 9,
T=0
Thus code for “NEUTRAL” is “5710893”.
Hence, option A is the correct answer.
20. In the following question, some statements followed by some conclusions are given. Taking the
given statements to be true even if they seem to be at variance from commonly known facts,
read all the conclusions and then decide which of the given conclusions logically follows the given
statements.
Statements :
Some clever are intelligent.
No intelligent is Smart.
Conclusions :
I. Some intelligent are clever.
II. Some smart is clever.
A. Only conclusion I follows B. Only conclusion II follows
C. Both I and II follows D. Neither I nor II follows
Ans. A
13
byjusexamprep.com
Sol. The least possible Venn-diagram is:
Conclusions :
I. Some intelligent are clever - It is a definite case, hence true.
II. Some smart is clever - It is not a definite case, hence false.
So, only conclusion I follows.
Hence, the correct option is A.
21. Identify the diagram that best represents the relationship among the given classes.
Green, Mango, Fruits
A. B.
C. D.
Ans. B
Sol. Mango is a subset of Fruits.
Some fruits are green
Some mango is also green.
Therefore, the above relation is clearly justified by:
22. Directions: In each of the following questions, one/two statements are given followed by
two/three conclusions I, II and III. You have to consider the statements to be true even if they
seem to be at variance from commonly known facts. You have to decide which of the given
conclusions, if any, follow from the given statements.
Statement :
14
byjusexamprep.com
Sun is the source of light
Conclusions :
(I) Moon is not the source of light.
(II) Light has only one source.
A. Only conclusion (I) follows B. Only conclusion (II) follows
C. Both conclusions (I) and (II) follow D. Neither conclusion (I) nor (II) follows
Ans. D
Sol. From the given statement it cannot be concluded that moon is not the source of light or light
has only one source. It is a general statement stating that sun is the source of light. It is not
said that sun is the only source of light.
Hence neither conclusion (I) nor conclusion (II) follows.
23. Direction: Arrange the following words as per order in the dictionary.
1. Continuation
2. Contention
3. Contain
4. Continuous
5. Count
A. 32415 B. 32451
C. 31245 D. 32145
Ans. D
Sol. After arranging these word according to the Dictionary
Contain
Contention
Continuation
Continuous
Count
Hence, option D is the correct answer.
24. Name the Indian shooter who has won the gold medal in the men’s 50m Rifle 3 Positions event
at the ISSF World Cup in New Delhi?
A. Anish Bhanwala B. Arpit Goel
C. Prithviraj Tondaiman D. Aishwary Pratap Singh Tomar
E. Zoravar Singh Sandhu
Ans. D
Sol. • India’s Aishwary Pratap Singh Tomar won gold in the men’s 50m Rifle 3 Positions event at the
ISSF World Cup in New Delhi.
• The 20-year-old became the youngest in history to win a shooting World Cup gold in the 3
Positions event.
15
byjusexamprep.com
• The two other Indian shooters in the final, Sanjeev Rajput finishing sixth and Niraj Kumar came
at the last position.
25. Who has been sworn in as the 15th Chief Minister of Assam?
A. Sarbananda Sonowal B. Himanta Biswa Sarma
C. Rama Kanta Dewri D. Ram Prasad Sarmah
E. Rajdeep Roy
Ans. B
Sol. • Himanta Biswa Sarma has been named as the 15th Chief Minister of Assam on May 08, 2021.
He will replace incumbent Sarbananda Sonowal.
• He took the charge of the office with effect from May 10, 2021.
• The BJP party won a second straight term in the 2021 assembly polls in the state.
• The party won 60 seats in the 126-member Assam assembly.
• Mr Sarma joined the BJP six years ago in 2015, after quitting the Congress.
26. The Reserve Bank of India has cancelled the license of Karnala Nagari Sahakari Bank Limited.
The bank is located in which state?
A. Telangana B. Andhra Pradesh
C. Odisha D. Maharashtra
E. Rajasthan
Ans. D
Sol. • RBI has cancelled the license of Raigad based Karnala Nagari Sahakari Bank Limited and has
been ceased to end its operation with immediate effects
• Order has been issued for winding up the bank and appoint a liquidator for the bank.
• RBI has informed that 95% of depositors will receive full amounts of their deposits
• On liquidation, every depositor will be entitled to receive deposit insurance claim amount of
his/her deposits up to a monetary ceiling of Rs 5 lakhs
• License was cancelled due to inadequate capital and earning prospects and its continuance
would have adversely affected depositors.
16
byjusexamprep.com
30. "Naval, military and air force works" is listed in the __________ list given in the Seventh
Schedule in the Constitution of India.
A. Union B. State
C. Global D. Concurrent
Ans. A
Sol. "Naval, military and air force works" is listed in the union list given in the Seventh Schedule in
the Constitution of India. There are three list , state list, union list and concurrent list in the
7th schedule of the indian constitution.
17
byjusexamprep.com
Sol. Header files include Library functions.
A header file is a file with extension .h which contains C function declarations and macro
definitions to be shared between several source files. There are two types of header files: the
files that the programmer writes and the files that come with your compiler.
34. Assume that enqueuing and dequeuing operation take O(V) time each, during BFS algorithm on
a graph. What would be the worst-case time complexity of BFS algorithm? (V is the number of
vertices in the graph and graph is given as input to BFA [Bellman ford algorithm] in the form of
adjacency list).
A. O(V3) B. O(V2 E)
C. O(V2) D. O(V)
Ans. C
Sol. In normal BFS both enqueuing and dequeuing operation takes O(1) but in this algorithm it takes
O(V) time.
All the vertices will be enqueued and dequeued once.
∴ V(V + V) = O(V2) times
Adjacency list is scanned for every vertex, when it is dequeued. So overall O(E) time to scan
adjacency lists
18
byjusexamprep.com
∴ O(V2 + E) = O(V2)
36. Consider the following function recursion(a, b). What is the value of recursion( 8,6)?
int recursion(int a, int b)
{
if (a == 0)
return b;
return recursion( a -1, a + b);
}
A. 41 B. 34
C. 42 D. 36
Ans. C
Sol. The function recursive() returns ((1+ 2 + … + x-1 + x) + y) x(x + 1)/2 +y
8(8 + 1)/2 +6 36+6 42
37. Which of the following is true for input restricted double-ended queue?
A. Insertion and deletion is restricted from either of the ends.
B. Insertion is restricted from left end and deletion is restricted from right end
C. Insertion is allowed from both end.
D. None of these.
Ans. D
Sol. In input restricted double ended queue deletion is allowed at both ends where as insertion is
restricted from either of the ends.
38. What will be the output of the following program? Assume address takes 2 bytes.
19
byjusexamprep.com
A. 10, 2 B. 11, 2
C. 10, 10 D. 11, 11
Ans. A
Sol.
A is an array of size 9.
Null character is stored at the end of array to terminate the string.
Size of (A) = 10 but string length is 8.
Size of (P) = 2 where P stores address of A and a null character.
Therefore, output is 10, 2
20
byjusexamprep.com
A. 35 4 6 8 B. 1 4 6 8
C. 1 3 5 7 D. 1 4 6 7
Ans. D
Sol. According to precedence ++ should be done first and associativity is R to L
c++ * d ++ = 3 * 5 = 15
c = 4, d =6
Next + will be done
c<d+15 = c< 21
4<21 //True result 1
1 ∥ Anything //We got one side of OR is true, due to short-circuiting of the OR operator we won’t
evaluate the right side.
b = 1, c = 4, d = 6 k = 7
41. Consider a LAN with an average source and destination 1000 meters apart and the propagation
delay is 40 μs. At what data rate does the round trip delay equal to transmission delay for 512
B packets?
A. 51.2 Mbps B. 204.8 Mbps
C. 1024 Mbps D. 409.6 Mbps
Ans. A
Sol. d = 1000 metres (distance)
TP = 40 μs; L = 512 B = 512 × 8 bits
Round trip time (RTT) = 80 μs
512 × 8 = B × 80 × 10–6
= 51.2 Mbps
42. Which of the following Application Layer Protocol cannot be used between mail server and
receiver’s client machine?
21
byjusexamprep.com
A. HTTP B. SMTP
C. POP3 D. IMAP4
Ans. B
Sol. • POP3 and IMAP4 are well-known pull protocols used between the receiver’s client and mail
server.
• In Web Based Protocol, HTTP works as a push and pull protocol.
• SMTP is a well-known push protocol, it cannot be used between the receiver’s client and mail
server.
So, option B is the correct answer.
43. The transport layer protocols used for TFTP, SNMP, SMTP, RIP?
A. TCP, TCP, TCP, UDP B. UDP, TCP, TCP, UDP
C. UDP, UDP, TCP, UDP D. UDP, UDP, UDP, UDP
Ans. C
Sol. • Trivial File Transfer Protocol (TFTP) process includes flow and error control. It can easily use
UDP.
• UDP is used for management processes such as SNMP.
• SMTP uses TCP.
• UDP is used for some route updating protocols such as Routing Information Protocol (RIP).
44. In GB5, we want to send 15 packets and every 7 th packet lost then number of transmission
required is ____.
A. 33 B. 30
C. 17 D. 23
Ans. A
Sol. Packet sequence needed is:
1 2 3 4 5 6 7 8 9 10 11 7 8 9 10 11 12 13 9 10 11 12 13 14 15 11 12 13 14 15 13 14 15
So, the number of transmissions requires is 33.
45. The length of a packet for customized 25Mbps Ethernet link is 8 bytes. What will be the
transmission delay (in microseconds)?
A. 0.32 B. 3.125
C. 0.390 D. 2.56
Ans. D
Sol. The transmission delay can be calculated as:
= length of the packet / transmission rate
= 8 Bytes / 25 Mbps
= (8 * 8) bits / 25 Mbps
= 64 / 25
22
byjusexamprep.com
= 2.56
Thus, Option D is correct.
46. If the bandwidth of the line is 1.5 Mbps, RTT is 45 msec and packet size is 1 KB, then find the
transmission delay?
A. 6.4ms B. 7.4ms
C. 5.4ms D. 22.5ms
Ans. C
Sol. Given-
Bandwidth = 1.5 Mbps
RTT = 45 msec
Packet size = 1 KB
Transmission delay (Tt) = Packet size / Bandwidth
= 1 KB / 1.5 Mbps
= (210 x 8 bits) / (1.5 x 106 bits per sec)
= 5.461 msec
23
byjusexamprep.com
Statement 2: is false as the data link layer attaches the detection code also, as the trailer.
So, option C is the right answer.
51. To accept string “abb” how many states should be there in minimal DFA?
A. 4 B. 5
C. 3 D. none of the above
Ans. B
Sol. Assuming you want the automata to only accept string abb, you can construct a DFA to accept
this string with 5 nodes.
The start node that leads to the following 3 state for input abb, and to the dead state for any
other input.
3 nodes for a, b and b, where b is an accepting state and any incorrect inputs lead to the
accepting state.
Finally, the dead state which is not an accepting state and where any input loops back to itself.
24
byjusexamprep.com
52. Let S and T be language over ={a,b} represented by the regular expressions (a+b*)* and
(a+b)*, respectively. Which of the following is true?
A. S T (S is a subset of T) B. T S (T is a subset of S)
C. S=T D. S T=Ø
Ans. C
Sol. By property of regular expression:
(a+b)*=(a*+b*)*= (a+b*)*=(a*+b)*=(a*b*)*
53. If we give a string of length ‘n’ as input then which one of the following will give the output of
length ‘n+1’?
A. Mealy machine B. Moore machine
C. In both A) and B) D. Neither in A) nor B)
Ans. B
Sol. In case of Moore machine, if we provide a string of length ‘n’ as input then it will give output of
‘n+1’ symbols.
Moore machine is a finite state machine in which the next state is decided by the current state
and current input symbol. The output symbol at a given time depends only on the present state
of the machine.
25
byjusexamprep.com
C. L1 is CFL and L2 is CSL D. None
Ans. A
Sol. 𝐿1 is CFL and 𝐿2={𝑎p𝑏q/𝑝≠𝑞 𝑎𝑛𝑑 𝑝,𝑞>1} which is CFL. For L1 we can form pushdown automata.
we push 'a' in the stack and on input symbol b we pop a. Similar we can form for L2 also.[DCFL
are closed under complementation]
56. Consider the DFA with alphabet set Σ={0,1,2} with designated initial state among the four states
present in the DFA. Then how many DFA are possible with the above specification -
A. 16 x 43 B. 8 x 43
C. 16 x 412 D. 8 x 412
Ans. C
Sol. If we draw the transition table of the DFA, it will be –
Therefore, the number of DFA without any final state are 412
Now if we consider the final state also we get - (4C0 + 4C1 + 4C2 + 4C3 + 4C4) = (1+4+6+4+1)
= 16
So, Number of DFA = 16 x 412
26
byjusexamprep.com
Sol. Turing machine halts for every valid input string
Turing machine may or may not halt for invalid strings.
Turing machine may or may noty halt for input string.
option B is correct.
60. Consider a system having 30 instances of resources ‘R’ shared by ‘n’ process. Each process
requires 4 instances of the resource. What is the maximum possible number of processes that
must be allowed such that system is in a safe state?
A. 9 B. 8
C. 10 D. 11
Ans. A
Sol. Every process needs ‘4’ instances. Hence giving ‘3’ instances to each of the 8 processes will need
24 resources and the remaining 1 process will get all 4 resources. So total 9 processes.
27
byjusexamprep.com
62. Which of the following CPU scheduling algorithms can result in process starvation?
A. First‐come first‐serve B. Shortest‐job next
C. Round Robin Scheduling D. Longest remaining job first
Ans. B
Sol. (A) The FCFS scheduling algorithm can lead to increased waiting time for processes if a long
process starts executing, but there will be no starvation.
(B) The SJF algorithm on the other hand can lead to starvation, where a continuous stream of
processes with shorter CPU bursts can prevent a process with longer CPU burst from getting the
CPU.
(C) Round Robin worked on a time quantum no starvation.
(D) Longest remaining job first no starvation.
28
byjusexamprep.com
Sol. S1: If the time quantum of the Round Robin scheduling algorithm is larger than the longest CPU
burst time, this is not always correct that RR give better performance compared to FCFS, so S1
is incorrect.
S2: System call provides the services of the operating system to the user programs via
Application Program Interface (API). It provides an interface between a process and operating
system to allow user-level processes to request services of the operating system.
An advantage of system call to provide the interface between program and operating system.
Thus, S2 is correct.
67. Consider a system has 4 processes and three resource types A, B, C . Resource type A has 6
instances, B has 14 instances and C has 3 instances. The maximum requirement for each process
and its current allocation are
What is the safe sequence for the processes so they don’t enter into the deadlock state?
A. P1, P3, P2, P0 B. P2, P3, P0, P1
29
byjusexamprep.com
C. P2, P3, P1, P0 D. P3, P2, P1, P0
Ans. C
Sol. Need matrix for processes is calculated as
68. Assume that there are 4 pages frames which are initially empty, if the page reference string 1,
2, 3, 2, 1, 4, 5, 2, 3, 1, 2 then the number of page fault using the least recently used policy
________.
A. 6 B. 7
C. 5 D. 8
Ans. B
Sol. String 1, 2, 3, 2, 1, 4, 5, 2, 3, 1, 2
30
byjusexamprep.com
69. Assume a table P has only one candidate key then which of the following is always true about
P?
A. P is in both 3NF and BCNF B. P is in 3NF but may not be in BCNF
C. P is in 2NF but may not be 3NF D. None of these
Ans. D
Sol. Relation P has one candidate key P(A, B, C, D)
A → C, B → D (AB)+ = ABC
Key (AB)
P is not in 2NF because of partial dependency and not in 3NF and BCNF so option (d) is correct.
Ans. B
Sol. According to the definition, E-R Model is one which consists of set of entities and the relation
among these entities.
31
byjusexamprep.com
73. Which of the following is correct about SQL?
A. An SQL query automatically eliminates duplicates
B. An SQL query will not work if there are no indexes on the relations
C. SQL permits attribute names to be repeated in the same relation.
D. None of these
Ans. D
Sol. SQL query will not automatically eliminate the duplicates, explicitly we have to use distinct
keyword for removing duplicates from result set.
The SQL query will work even when there are no indexes on the relations. It is because SQL
query could generate index automatically even when there is no indication of indexes.
SQL does not permit 2 attributes to have same name in a relation.
74. Which of the following statements(s) is/are false for relational DBMS?
I. ER diagrams are useful to logically model concepts.
II. Views in a database system are important because they help with access control by allowing
users to see only a particular subset of the data in the database.
III. SQL is a procedural language.
A. I and III only B. II and III only
C. III only D. I and II only
Ans. C
Sol. I. A conceptual ER model may be used as the foundation for one as more logical data models.
III. SQL is not procedural language.
II is correct statement.
75. Which of the following is primary distinction between B and B+ tree indices?
A. B+ tree eliminates the redundant storage of search key value.
B. B tree eliminates the redundant storage of search key value.
C. Deletion in a B tree is more complicated.
D. None of these
Ans. B
Sol. B tree eliminates the redundant storage of search key because in B tree every node have similar
structure.
Non leaf node also contains record pointer.
76. If every non-key attribute is functionally dependent on the primary key, then the relation will
always be in?
A. 1NF B. 2NF
C. 3NF D. BCNF
Ans. C
32
byjusexamprep.com
Sol. If non-key attribute functionally dependent on the primary key, then the relation will always be
in the 3NF. However, it may not in the BCNF because relational Schema R in BCNF iff every non
trivial Functional dependency X -> Y with X must be super key
33
byjusexamprep.com
81. If X, Y and Z are three exhaustive and mutually exclusive events related with any experiment
and the P(X) = 0.5P(Y) and P(Z) = 0.3P(Y). Then P(Y) = _______.
A. 0.54 B. 0.66
C. 0.33 D. 0.44
Ans. A
Sol. For exhaustive & mutually exclusive event,
P(X) + P(Y) + P(Z) =1
0.5 P(Y) + P(Y) + 0.3 P(Y) = 1
1.8 P(Y) =1
P(Y) = 1 / 1.8 = 0.55555 = 0.54 (approx.)
34
byjusexamprep.com
83. The number of prime implicants, essential prime implicants, and the minimized expressions for
the given function
F(A,B,C) = Σ(0,2,3,4,5,7) is?
A. 6,3,1 B. 3,3,2
C. 6,3,2 D. 6,0,2
Ans. D
Sol. Prime implicant is a smallest possible product term in given function, removing any one of the
literal from which is not possible.
Essential prime implicant is a prime implicant which should cover atleast one minterm, which is
not covered by the other prime implicant.
So the K-map of the function with the grouping shown is as follows-
It clearly states that there are 6 prime implicants, 0 essential prime implicant and 2 minimized
expression in it.
The k-map shown here is also called as a cyclic k-map.
35
byjusexamprep.com
Ans. A
Sol. Linked error: Undefined symbol-i Extern int i;
Specifies to the compiler that the memory for i is allocated in some other program and that
address will be given to the current program at the time of linking. But the linker finds that no
other variable of the name ‘i’ is available in any other program with memory space allocated for
it.
Hence linker error occurred.
85. Which of the following is a keyword used for a storage class in C programming?
A. printf B. external
C. auto D. scanf
Ans. C
Sol. Auto is the default storage class for all the variables declared inside a function or a block.
Auto variables can be only accessed within the block/function they have been declared and not
outside them (which defines their scope). Of course, these can be accessed within nested blocks
within the parent block/function in which the auto variable was declared. However, they can be
accessed outside their scope as well using the concept of pointers given here by pointing to the
very exact memory location where the variables reside. They are assigned a garbage value by
default whenever they are declared. This is the default storage class for all the variables declared
inside a function or a block. Hence, the keyword auto is rarely used while writing programs in C
language.
87. In the Worst case, in Selection Sort, the total number of moves represented in order of______?
A. O(logn) B. O(n)
C. O(n2) D. O(n3)
Ans. B
36
byjusexamprep.com
Sol. In selection sort, we exchange one by one by a minimum element of a subarray
So the total moves here we need is (n-1).
So, it's of O(n).
89. There are 5 jobs to run on a machine they are (p1, p2,p3,p4,p5)= (100,10,15,27,30) and
deadline (d1,d2,d3,d4,d5)= (2,4,2,1,3)
Find out the maximum profit if they are scheduled on machine for unit time.
A. 163 B. 165
C. 167 D. 170
Ans. C
Sol. To get the maximum profit we process the jobs p4, p1, p5, p4 -> their profits are =
100+27+30+10=167
A. O(n3) B. O(logn)
C. O(n) D. O(n2)
Ans. B
Sol.
.
.
. for k value
.
37
byjusexamprep.com
log n = k
= T(1) + log n × C
T(n) = log n
Ans. B
Sol. Power of an element recurrence relation
n
T (n) = T + C, complexity = O (logn)
2
Strassen's matrix multiplication recurrence relation
n
( )
T (n) = 7T + 16n2 , complexity = 0 n2.8
2
Merge sort recurrence relation
n
T (n) = 2T + n, complexity = O (nlogn)
2
Worst case job sequencing, complexity = O(n2)
Hence, option = B
92. A hash function is defined as hash = value % 13, what will be the location of the value 67 after
insertion of the following value 63, 54, 41, 90, 27, 190 67? (Use linear hashing)
A. 2 B. 3
C. 4 D. 6
Ans. C
Sol. If we map all value we can say that
38
byjusexamprep.com
63 → 11
54 → 2
41 → 3 i.e. 2 was already occupied
90 → 12
27 → 1
190 → 8
67 % 13 = 2 but 2 is not free neither 3 then move to 4
93. What is the best data structure to implement topological sort on directed graph?
A. Heap B. Queue
C. Stack D. Array
Ans. C
Sol. The best data structure used to implement topological sort is stack, since topological sort based
on depth first traversal.
94. Which of the following will be true for worst case of Quick Sort?
A. T(n) = T(n/2) + O(n) B. T(n) = 2T(n/2-1) + O(n)
C. T(n) = T(n-1) + O(n) D. T(n) = T(3n/2-1) + O(n)
Ans. C
Sol. The worst case of quick sort occurs when the input array is already sorted, or reverse sorted
and either of the extreme elements is picked as pivot element. In this case, quick sort divides
the array into one sub problem with size 0 and other with size (n-1). So, recurrence will be T(n)
= T(n-1) + T(0) + O(n) T(n) = T(n-1) + O(n)
A-
B-
C-
D-
Group-II
1.
2.
3.
39
byjusexamprep.com
4.
5.
97. Arrange the following configuration for CPU in decreasing order of operating speeds
1) Hard wired control
2) vertical microprogramming
3) Horizontal microprogramming
A. 1>2>3 B. 1>3>2
C. 2>3>1 D. 3>2>1
Ans. B
Sol. Hard wired control involves only hardware, whereas microprogramming is software approach.
So, hardwired control should be faster than both microprogramming approaches.
Between vertical and horizontal microprogramming. Horizontal is faster because in this control
signals are not encoded whereas in vertical microprogramming to save memory signals are
encoded. So, it takes less time in horizontal microprogramming because decoding of signals is
not required. Therefore, final order is:
hard wired control > horizontal microprogramming > vertical microprogramming
98. In Flynn’s classification of computers, the vectors and array classes of machines belong to?
A. Single instruction/Single data category
B. Single instruction/ Multiple data category
C. Multiple instruction/ Single data category
D. Multiple instruction/ Multiple data category
40
byjusexamprep.com
Ans. B
Sol. Single instruction/ Multiple data category
In Flynn’s classification of computers, the vectors and array classes of machines belong to single
instruction/ multiple data category.
99. Hardwired control units are faster than Micro-programmed control units because?
A. they do not consist of slower memory elements
B. they do not have slower element such as Gates and Flip-flops
C. they are made using faster VLSI design technology
D. they contain high speed digital components
Ans. A
Sol. Hardwired control units are generally faster than micro-programmed designs. Hardwired CU
design uses a fixed architecture-it that requires changes in the wiring only if the instruction set
is modified or changed but in Micro-programmed Control Unit, the control signals associated with
operations are stored in special memory units as Control Words and thus make slower in speed
because of the time it takes to fetch microinstructions from the control memory.
Ans. B
Sol.
101. _______ is used to choose between incrementing the PC or Performing ALU operations.
A. MULTIPLEXER B. CONTROL UNIT
C. DATA BUS D. CONDITIONAL CODES
Ans. A
Sol. The multiplexer circuit is choose among the two as it can give different results based on input.
41
byjusexamprep.com
Ans. C
Sol. 2's complement representation of a negative number is determined as follows:
a. Compute a binary representation of the magnitude of the number
b. Take 2's complement of binary representation.
+ 539 = 0010 0001 1011
-539 = 1101 1110 0101 = (DE5)H
103. The IEEE single-precision and double-precision format to represent floating-point numbers, has
a length of ______ and ______ respectively.
A. 8 bits and 16 bits B. 16 bits and 32 bits
C. 32 bits and 64 bits D. 64 bits and 128 bits
Ans. C
Sol. The single precision format is 32 bits and the double precision format is of 64 bits.
105. In Pipeline Stage of RISC processor, in which stage, the values are taken from the register?
A. Instruction Fetch B. Instruction Decode
C. Write Back D. Instruction Execute
Ans. B
Sol. In instruction decode stage, instruction is decoded and the register file is accessed to get the
values from the registers used in the instruction.
42
byjusexamprep.com
In instruction fetch stage, CPU fetch the instruction from the memory based on PC.
Simultaneously PC will be incremented to next sequential instruction address.
43
byjusexamprep.com
• Relocation
109. Match list-I with list-II and select the correct answer using the codes given below the lists:
List-I
A- Link-time
B- Load-time
C- Compile-time
D- Run-time
List-II
1- Resolving references
2- Relocation
3- Token recognition
4- Activation record
A. A-1, B-2, C-3, D-4 B. A-2, B-1, C-3, D-4
C. A-2, B-1, C-4, D-3 D. A-1, B-2, C-4, D-3
Ans. A
Sol. Link-time : References can be resolved.
Load-time: Relocation during loading.
Compile time : Token recognition during compilation.
Run time : Activation record created during run time.
In short:
1.Link Time: References/Symbol Resolution
2.Load Time: Relocation more specifically Absolute code Generation
3.Compile Time: Token Analysis in Lexical Analysis
4.Run Time: Activation record (Procedure are pushed into stack and sub procedure are taken
in Consideration its all done at Run Time)
110. The idea of automation with a stack as auxiliary storage is supported by?
A. finite automata B. Push Down Automata
C. Deterministic Automata D. None of the mentioned
Ans. B
Sol. Push Down Automata manipulate the Stack as a part of performing a transition.
Pushdown Automata is a finite automaton with extra memory called stack which helps Pushdown
automata to recognize Context-Free Languages.
111. The grammar after removing the left-recursion from the following grammar:
E → Ea | Eb | a | b
A. E → aE’| bE’ ; E’ → aE’| bE’| ∈ B. E → aE’| bE’ ; E’ → aE | bE | ∈
44
byjusexamprep.com
C. E → aE’| bE’| ∈ ; E’→aE’| bE’| ∈ D. Both (A) and (B)
Ans. A
Sol. After removing the left recursion from the given grammar, it will become
E → aE’| bE’; E’ → aE’| bE’| ∈
As a rule, is if A->Aa/B, then
A->BA’ and A’->aA’/∈
45
byjusexamprep.com
C. All functions of the 4 variables.
D. All functions of 3 variables and some but not all of 4 variables.
Ans. D
Sol. 8 : 1 MUX can be used to obtain
• All functions of 3 variables.
• Some but not all of 4 variables functions.
116. The race around condition occurs in a level triggered J-K flip-flop when?
A. Both the inputs are 0 B. Both the inputs are 1
C. J = 1 and K = 0 D. J = 0 and K = 1
Ans. B
Sol. In J-K flip-flop
118. In the circuit shown in the figure, if C = 0, the expression for Y is:
46
byjusexamprep.com
A. B. Y = A + B
C. D. Y = AB
Ans. A
Sol.
47
byjusexamprep.com
119. The logical expression of the output of the 4 × 1 multiplexer shown below is
A. AB B. A + B
C. D.
Ans. B
Sol. Y= I0.S1'S2' + I1. S1'S2 + I2. S1S2' + I3.S1S2
Y=AB' + B = A+B
120. Given (6y3)x + (54)x = 487, what can be the possible value of base x and y respectively.
A. 10, 2 B. 8, 7
C. 11, 3 D. None of these
Ans. B
Sol. (i) x > y
(ii) x > 6
Now you will get an equation like this,
6x2 + xy + 5x -480 = 0
for this kind of equation, best way to solve is by using eliminate by option and you will see
x = 8, y = 7
(673)8 + (54)8 = (487)10
(443)10 + (44)10 = (487)10
121. Three fair cubical dice are thrown simultaneously. The probability that all three dice have the
same number of dots on the faces showing up is (up to third decimal place) _____.
A. 1.5 B. 2.5
C. 0.028 D. 0
Ans. C
=6x( = 0.028
48
byjusexamprep.com
122. The random variables X and Y have variances 0.2 and 0.5 respectively. Let Z= 5X-2Y. The
variance of Z is?
A. 3 B. 4
C. 5 D. 7
Ans. D
Sol. Var(X) = 0.2, Var(Y) = 0.5
Z = 5X – 2Y
Var(Z) = Var(5X-2Y)
= Var(5X) + Var(2Y)
= 25Var(X) + 4Var(Y)
Var(Z) = 7.
124. For two matrices A and B, we have the value of (AB)T equal to:
A. AT B B. BT A
C. AT BT D. BT AT
Ans. D
Sol. By definition and properties of transpose of matrix, we have:
(AB)T=BT AT
125. Which of the given statements is true for the eigen values of the matrix ?
49
byjusexamprep.com
Ans. B
Sol. A graph coloring is an assignment of labels to the vertices of a graph such that no two adjacent
vertices share the same labels is called the colors of the graph. Now, the chromatic number of
any graph is the minimal number of colors for which such an assignment is possible.
Thus, the correct answer is B that is Graph ordering as Chromatic number is the assignment of
colors to the vertices of Graph such that no two adjacent vertices have same color and ordering
in a graph is related to number of vertices in the Graph.
127. ____________ is the minimum number of vertices whose removal results in a disconnected
graph or reduces it to a trival graph.
A. Vertex connectivity B. Weakly connected
C. Strongly connected D. Edge connectivity
Ans. A
Sol. Vertex Connectivity is the minimum number of vertices whose removal results in a disconnected
graph or reduces it to a trival graph.
A digraph is a weakly connected if the underlying undirected graph is connected. A digraph is
strongly connected if a path exists between any vertex to any vertex.
129. How many numbers of five digits can be formed from the numbers 2, 0, 4, 3, 8 when repetition
of digits is not allowed?
A. 96 B. 144
C. 120 D. 14
Ans. A
Sol. Numbers are 2, 0, 4, 3, 8
Numbers can be formed = (Total) – (those beginning with 0)
= 5! – 4! = 96
130. There are 20 points in a plane, how many triangles can be formed by these points if 5 are
colinear?
A. 1130 B. 550
50
byjusexamprep.com
C. 1129 D. 1140
Ans. A
Sol. Number of points in plane n = 20.
Number of colinear points m = 5.
Number of triangles from by joining n points of which m are colinear = nC3 – mC3
Therefore the number of triangles = C3 – 5C3 = 1140-10 = 1130.
20
133. Which one of the following devices reduces both collision domain and Broadcast domain to zero?
A. Repeater B. Hub
C. Router D. Switch
Ans. C
Sol. Option A Repeater are network devices operating at physical layer of the OSI model that amplify
or regenerate an incoming signal before retransmitting it. They are incorporated in networks to
expand its coverage area. They are also known as signal boosters. so repeater is not a collision
domain separator. so Option A is Incorrect.
51
byjusexamprep.com
Option B, Hub is used as a centric device and it is not a collision domain separator
Switch reduces collision domain to zero. option B is incorrect.
Option C, A router not only breaks collision domains but also break broadcast domains, means
it is both collision as well as broadcast domain separator. A router creates a connection between
two networks. A broadcast message from one network will never reach the other one as the
router will never let it pass. Option C is correct
Option D, Switch is collision domain separator but not a broadcast domain separator. option D
is incorrect.
135. Consider a network with IP address 172.60.50.2 and subnet mask 255.255.224.0, which of the
following is the range of assignable IP address on the subnet in which the host belongs?
A. 172.60.32.1 – 172.60.63.254 B. 172.60.32.0 – 172.60.63.255
C. 172.60.32.1 – 172.60.64.255 D. 172.60.32.0 – 172.60.127.254
Ans. A
Sol.
136. Consider efficiency of stop & wait ARQ is 10%. What is the efficiency (in percent) when selective
repeat ARQ is used instead of stop and wait with 3 bit sequence number field?
A. 10% B. 40%
C. 80% D. 100%
Ans. B
Sol.
52
byjusexamprep.com
137. Ten thousand airline reservation stations are competing for the use of a single slotted ALOHA
channel. On an average a station makes 36 requests/hour. Suppose a slot is 80 μsec. What is
the approximate total channel load?
A. 0.08 request/slot B. 0.008 request/slot
C. 0.06 request/slot D. 0.006 request/slot
Ans. B
Sol. Total channel load = average requests / average slots number
Average requests for 10000 stations = 10000 × 36/ (60 × 60) = 100 requests/sec.
Average slots number = 1/(80 × 10-6) = 12500 slots/sec.
Total channel load = 100/12500 = 0.008 request/slot.
138. Assume a slow start mechanism is used and assume there is no congestion. The round trip time
is 20 ms and the maximum segment size is 24 KB . How much time is required to reach 24 KB
of window size with packet size of 2 KB?
A. 50 ms B. 40 ms
C. 120 ms D. 80 ms
Ans. D
Sol. 1st RTT → 2 KB
2st RTT → 4 KB
3rd RTT → 8 KB
4th RTT → 16 KB
5th RTT → 24 KB
So, after 4th RTT we can send 24 kB of data.
So, 4 × 20 ms = 80 ms time is required to reach 24 kB of window size.
139. In IPv4 datagram, offset value is non zero and in M (more fragment) bit is one, then what is the
position of datagram?
A. First Fragment B. Last Fragment
C. Intermediate fragment D. Can’t Determine
Ans. C
Sol. More Fragment Bit is (MF).
53
byjusexamprep.com
For all the intermediate fragment, more fragment bit MF =1 but for the last fragment more
fragment bit MF=0.
In this question, more fragment bit is 1 so it is not a last fragment.
Fragment offset is non Zero so it is not the first fragment. So ,Option C is correct answer and it
is the intermediate fragment.
140. Suppose sender A wants to send 12 frames to receiver B, using Go Back 4 ARQ protocol. What
is total number of transmissions by sender if every 6 th transmission from sender gets lost (but
not any ACK from receiver ever get lost)?
A. 12 B. 14
C. 18 D. 23
Ans. D
Sol.
141. Let G be grammar in CNF. Let w1, w2 ∈ L(G) such that |w1| < |w2|
A. Any derivation of w1 has exactly same number of steps as any derivation of w2
B. Some derivation of w2 may be shorter than of steps as any derivation of w1
C. All derivations of w1 will be shorter than any derivation of w2
D. None
Ans. C
Sol. Derivation always required 2n – 1 steps in CNF
n = length of the string.
G be a given CFG, W1 and W2 are two strings of the same length.
Suppose the following is the given CFG
S->Ab|bb
A->a
W1=bb W2=ab
W1 needs one derivation S->bb, And
W2 needs S->Ab->ab two derivations
Hence, (C) is the correct option.
54
byjusexamprep.com
142. Which of the following problems are decidable for CFLs?
A. Regularity B. Totality
C. Equivalence D. Finiteness
Ans. D
Sol. "Given CFL is regular or not" is undecidable.
"Given CFL = Σ*?" is undecidable
"Given CFL1 & CFL2 are same" is undecidable.
"Given CFL is finite?" is Decidable.
144. If G is a context free grammar and w is a string of length 10 in L(G). The length of derivation of
w in G, if G is in Chomsky normal form is __________.
A. 19 B. 18
C. 17 D. None of above
Ans. A
Sol. A context free grammar G is in Chomsky normal form if all productions are in one of two simple
form, either:
1. A → BC where A, B and C are variables, or
2. A → a where A is a variable and a is a terminal
So for any string of length n first production of type A → BC is used n – 1 times to produce
sentential form of length n containing only variables and then each variable is replaced by a
terminal using productions of
Type A → a, n times. So the length of derivation of string w of length n in CNF is (n – 1) + n =
2n – 1
2n – 1 = 2 × 10 – 1 = 20 – 1 = 19 steps
145. Number of two states DFA’s with designated initial state can be constructed over the alphabet ∑
= {0, 1} that accept empty language φ is ______.
A. 4 B. 20
55
byjusexamprep.com
C. 16 D. 24
Ans. B
Sol. case1:when no final state to be chosen.
then dfa possible=24 =16.
case2:when X is initial state and Y is final state but unreachable from X
then dfa possible =22 =4
therefore in total dfa possible is =16+4=20. Answer
147. Which of the following is correct about Multilevel Queue (MLQ) scheduling and Multilevel
Feedback Queue (MLFBQ) scheduling?
A. MLFBQ only suffer from starvation. B. MLQ and MLFBQ both suffer from starvation.
C. MLQ only suffer from starvation. D. None of these.
Ans. B
Sol. Option B is the correct answer as MLQ and MLFBQ both suffer from starvation.
148. A system has 9 identical resources and n process competing for them. Each process can request
atmost 4 resources. Minimum possible value of N which lead to dead lock ________.
A. 2 B. 3
C. 4 D. 5
Ans. B
Sol. Resources = 9
Process = N
Requirement = Max = 4
[N – 1] × 3 + 4 = 9
3N – 3 + 4 = 9
3N = 8
N=2
If value of N = 2 then there is no deadlock.
So minimum value of N is 3 which lead to deadlock.
56
byjusexamprep.com
149. Consider a system having m resources of the same type. These resources are shared by 3
processes X, Y and Z, which have peak demands of 4,5 and 7 respectively. For what maximum
value of m deadlock can occur?
A. 12 B. 13
C. 14 D. 15
Ans. B
Sol. If all processes will acquire 1 less resources than their peak demand, then there can be deadlock
as none of their demands will be fulfilled.
Hence ⇒ If we allocate 1 less resource to each process then we can have deadlock. So (4-1)+(5-
1)+(7-1)=3+4+6=13
So, For 13 resources also there can be deadlock in system.
Another Approach: (Formula based) Sum of all the demands< no of resources(m)+no of
processes(n)(For no deadlock)
Now here: m is what we have to find and n =3, Sum of all the demands of processes=
4+5+7=16.
So, m+n>16 => m+3>16 => m >13. Hence m =13 will lead to deadlock.
****
57