GATE 2022
65 questions
MCQ 32 · MSQ 15 · NAT 181-mark 30 · 2-mark 35
Questions 36–40 of 65
Which one of the following is the closed form for the generating function of the sequence defined below?
Answer: (A)
Split the sequence as . Here when n is odd, and otherwise.
- The part gives
- For the odd terms: , and so
Adding both parts gives
Answer: (A)
- The part gives
- For the odd terms: , and so
Adding both parts gives
Answer: (A)
Consider a simple undirected unweighted graph with at least three vertices. If is the adjacency matrix of the graph, then the number of 3-cycles in the graph is given by the trace of
Answer: (D)
counts the closed walks of length 3 that start at vertex i. These are the triangles through i, and each is counted twice (once per direction).
In the trace, a triangle shows up at each of its 3 vertices 2 directions, so 6 times.
Number of triangles
Answer: divided by 6
In the trace, a triangle shows up at each of its 3 vertices 2 directions, so 6 times.
Number of triangles
Answer: divided by 6
Which one of the following statements is FALSE?
Answer: (C)
Go through each option. We need the FALSE statement.
- (A) The TLB is associative memory. It compares the page number with all its valid entries in parallel. The statement is TRUE.
- (B) A TLB hit means the page is in main memory. So even after a cache miss, the word is surely in main memory. The statement is TRUE.
- (C) In an inverted page table the frame is found by searching (or by hashing and then following a chain). So the access time depends on the address and is not always the same. The statement is FALSE.
- (D) In a hashed page table, addresses that collide lie on the same chain at different places. So their access times are different. The statement is TRUE.
Answer: (C)
- (A) The TLB is associative memory. It compares the page number with all its valid entries in parallel. The statement is TRUE.
- (B) A TLB hit means the page is in main memory. So even after a cache miss, the word is surely in main memory. The statement is TRUE.
- (C) In an inverted page table the frame is found by searching (or by hashing and then following a chain). So the access time depends on the address and is not always the same. The statement is FALSE.
- (D) In a hashed page table, addresses that collide lie on the same chain at different places. So their access times are different. The statement is TRUE.
Answer: (C)
Let and denote read and write operations on a data element by a transaction , respectively. Consider the schedule with four transactions.
S:
Which one of the following serial schedules is conflict equivalent to ?
S:
Which one of the following serial schedules is conflict equivalent to ?
Answer: (A)
Pairs of operations in S that conflict:
- comes before , so T4 T2
- comes before , so T3 T2
- comes before , so T1 T3
- comes before , so T1 T4
- comes before , so T3 T4
The topological order is T1 T3 T4 T2.
Answer:
- comes before , so T4 T2
- comes before , so T3 T2
- comes before , so T1 T3
- comes before , so T1 T4
- comes before , so T3 T4
The topological order is T1 T3 T4 T2.
Answer:
Consider a digital display system (DDS) shown in the figure that displays the contents of register X. A 16-bit code word is used to load a word in X, either from S or from R. S is a 1024-word memory segment and R is a 32-word register file. Based on the value of mode bit M, T selects an input word to load in X. P and Q interface with the corresponding bits in the code word to choose the addressed word. Which one of the following represents the functionality of P, Q, and T?
Answer: (C)
Match each block to its job:
- S has 1024 words, so its address needs bits. P takes these 10 bits and must select exactly one of the 1024 words, so P is a decoder.
- R has 32 words, so its address needs bits. So Q is a decoder.
- T chooses one of two inputs (the word from S or the word from R) using the mode bit M, so T is a 2 : 1 multiplexer.
The code word is bits (M, S-address, R-address), which agrees with the 16-bit code word.
Answer: (C)
- S has 1024 words, so its address needs bits. P takes these 10 bits and must select exactly one of the 1024 words, so P is a decoder.
- R has 32 words, so its address needs bits. So Q is a decoder.
- T chooses one of two inputs (the word from S or the word from R) using the mode bit M, so T is a 2 : 1 multiplexer.
The code word is bits (M, S-address, R-address), which agrees with the 16-bit code word.
Answer: (C)