PREVIOUS YEAR SOLVED PAPERS MCQ - GATE 2017 Shift 2

Correct AnswerOption A
Rate difficulty Rate difficulty:
Choose a difficulty.
Found this useful?
Follow:

Given:
code1 00000
code2 01011
code3 10101
code4 11110
Hamming distance between code 1 and code 2 is 3
Hamming distance between code 1 and code 3 is 3
Hamming distance between code 1 and code 4 is 4
Hamming distance between code 2 and code 3 is 4
Hamming distance between code 2 and code 4 is 3
Hamming distance between code 3 and code 4 is 3
So, as per Hamming code, minimum Hamming distance of all code words is considered as Hamming distance i.e., 3 (p).
Now, the max number of erroneous bits that can be corrected by the Hamming code is 2d + 1
So,
So option A is correct.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *

Correct AnswerOption B
Rate difficulty Rate difficulty:
Choose a difficulty.
PIDCurrent allocationMax NeedAvailableNeeded
P13320
P216-5
P335-2
     
Hence, system is in safe state , because P1 and P3 anyone can execute first and after them P2 can be executed, no deadlocked option B is correct.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *

Correct AnswerOption A
Rate difficulty Rate difficulty:
Choose a difficulty.

Conflict conditions RW WR WW
∴ 5 conflicts
T1 - T2
a  b  c  d 
r1(X) w1(X) r1(Y) w1(Y)
r2(Y) w2(Y) r2(Z) r2(Z)
1  2  3  4 
Constraints:
a<b<c<d
1<2<3<4
d<1 (or) 2<c
only 1 way
Total = 70 - (12 + 5) = 53
Therefore total no of, 53 + 1 = 54
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *

Correct AnswerOption C
Rate difficulty Rate difficulty:
Choose a difficulty.

A)LHS: wx + w(x + y) + x(x+y) = x + wy
RHS
⇒ wx + wx + wy + x + xy
⇒ wx + wy + x + xy [∵ xx = x]
⇒ x(w+y+1) + wy [∵1 + x = 1]
⇒ x + wy
⇒ L.H.S = R.H.S

L.H.S ≠ R.H.S
D) L.H.S.:(w + y)(wxy + wyz) = wxy + wyz
(w + y)(wxy + wyz)
wxy + wyz + wxy + wyz
wxy + wyz
L.H.S = R.H.S
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *

Correct AnswerOption A
Rate difficulty Rate difficulty:
Choose a difficulty.
Share this question
Share:

Assume starting address of string is 100 to make the whole expression is easy to understand.

Note: Whenever we have characters in the arithmetic expressions, we can replace those with their ASCII values
strlen (100 + x + 11 - x - 1)[assume x has the ASCII value of I]
⇒Strlen(110)
is printed
It gives address of second last character in the string. So it prints length 2.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *

Why Practice with Avatto?
High Quality MCQsExam-focused questions with accurate answers
Detailed ExplanationsStep-by-step explanations to enhance learning
Latest Exam PatternBased on updated syllabus and pattern
Performance AnalyticsTrack performance and improve weak areas
100% Free PracticePractice unlimited questions for free
Boost Your PreparationAttempt mock tests, previous year papers and topic-wise quizzes.Explore All Tests →