PREVIOUS YEAR SOLVED PAPERS - GATE 2017 Shift 1

21. Consider a TCP client and a TCP server running on two different machines. After completing data transfer, the TCP client calls close to terminate the connectional and a FIN segment is sent to the TCP server. Server-side TCP responds by sending an ACK which is received by the client-side TCP. As per the TCP connections state diagram (RFC 793), in which state does the client-side TCP connection wait for the FIN from the sever-side TCP?

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 *


22. Consider the following context-free grammar over the alphabet ∑ = {a, b, c} with S as the start symbol:
S → abScT | abcT
T → bT | b
Which of the following represents the language generated by the above grammar?

  • Option : B
  • Explanation :
    The given Grammar over Σ = {a, b, c} with S as the start symbol is
    S → abScT | abcT
    T→ bT | b
    The minimum length string generated by the grammar is 1:
    S→abcT→abcb; hence all variable greater than 1.
    Other cases
    S → abScT→ ab abScT cT → ab ab abScT cT cT →........→ (ab)n (cT)n.
    Here T can generate any number of b’s starting with single b.
    Hence The language is
    {(abncbm1cbm2…cbmn | n, m1, m2, ….., mn ≥ 1 }
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 *


23. Consider the first-order logic sentence
F: ∀ x (∃ y R(x,y)).
Assuming non-empty logical domains, which of the sentences below are implied by F?
I. ∃y (∃x R(x,y)) II. ∃y (∀x R(x,y)) III. ∀y (∃x R(x,y)) IV. ∼∃x (∀y ~R(x,y))

  • Option : B
  • Explanation :
    ∀x(∃yR(x,y)) ⇒ ∃y∃xR(x,y)
    ∃y∀xR(x,y) ⇒ ∀x∃yR(x,y)
    ∀x∃yR(x,y) ⇏ ∃y∀xR(x,y)
    -∃x(∀y - R(x,y)) ⇔ ∀x∃yR(x,y)
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 *


24. When two 8-bit numbers A7…A0 and B7…B0 in 2’s complement representation (with A0 and B0 as the least significant bits) are added using a ripple-carry adder, the sum bits obtained are S7….S0 and the carry bits are C7…..C0. An overflow is said to have occurred if

  • Option : C
  • Explanation :
    Overflow flag indicates an over flow condition for a signed operation. Some points to remember in a signed operation:
    * MSB is always reserved to indicate sign of the number.
    * Negative numbers are represented in 2’s – complement.
    * An overflow results in invalid operation.
    2's complement overflow rules:
    * If the sum of two positive numbers yields a negative result, the sum has- overflowed.
    * If the sum of two negative number yields a positive result, the sum has overflowed.
    * Otherwise, the sum has not overflowed.
    Overflow for signed numbers occurs when the carry-in into the MSB (most significant bit) is not equal to carry-out. Conveniently, an XOR-operation on these two bits can quickly determine if an overflow condition exists.
    Therefore, ((A7.B7) ⊕ S7 = (A7.B7.S7 + A7.B7.S7) = 1 has overflowed.
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 *


25. The following functional dependencies hold true for the relational schema R{V, W, X, Y, Z}:
V → W
VW → X
Y → VX
Y → Z
Which of the following is irreducible equivalent for this set of functional dependencies?

  • Option : A
  • Explanation :
    V → W,VW → X,Y → V,Y → X,Y → Z (W is extraneous)
    V → W,V → X,Y → V,Y → X,Y → Z
    ∴ Y → X is redundant
    ∴ {V → W,V → X,Y → V,Y → Z}
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 *


Related Quiz.
GATE 2017 Shift 1