GATE 2014 (Session 3)
65 questions
MCQ 47 · NAT 181-mark 30 · 2-mark 35
Questions 16–20 of 65
If , then the value of k is equal to _______.
Answer: 4
The integral has a mod sign, so we must remove it first. Here is always positive. Also is positive from 0 to . From to , stays positive but changes sign. So we can split the integral like this:
Integrate by parts:
So the given integral =
So, k = 4.
Integrate by parts:
So the given integral =
So, k = 4.
Consider the following minterm expression for F.
F(P,Q,R,S) = 0, 2, 5, 7, 8, 10, 13, 15
The minterms 2, 7, 8 and 13 are 'do not care terms. The minimal sum of-products form for F is
F(P,Q,R,S) = 0, 2, 5, 7, 8, 10, 13, 15
The minterms 2, 7, 8 and 13 are 'do not care terms. The minimal sum of-products form for F is
Answer: (B)
The required minterms are 0, 5, 10, 15. The don't cares are 2, 7, 8, 13.
- Group has {0, 2, 8, 10}. It covers 0 and 10.
- Group has {5, 7, 13, 15}. It covers 5 and 15.
Minimal expression:
Answer:
- Group has {0, 2, 8, 10}. It covers 0 and 10.
- Group has {5, 7, 13, 15}. It covers 5 and 15.
Minimal expression:
Answer:
Consider the following combinational function block involving four Boolean variables x, y, a, b where x, a, b are inputs and y is the output.
f (x, y, a, b)
{
if (x is 1) y = a;
else y = b;
} Which one of the following digital logic blocks is the most suitable for implementing this function?Answer: (C)
The output y equals a when x = 1. Otherwise y equals b. So x picks one of the two inputs, which means x works as the select line of a 2-to-1 multiplexer.
Answer: Multiplexor
Answer: Multiplexor
Consider the following processors (ns stands for nanoseconds). Assume that the pipeline registers have zero latency.
P1: Four-stage pipeline with stage latencies 1 ns, 2 ns, 2 ns, 1 ns.
P2: Four-stage pipeline with stage latencies 1 ns, 1.5 ns, 1.5 ns, 1.5 ns.
P3: Five-stage pipeline with stage latencies 0.5 ns, 1 ns, 1 ns, 0.6 ns, 1 ns.
P4: Five-stage pipeline with stage latencies 0.5 ns, 0.5 ns, 1 ns, 1 ns, 1.1 ns.
Which processor has the highest peak clock frequency?
P1: Four-stage pipeline with stage latencies 1 ns, 2 ns, 2 ns, 1 ns.
P2: Four-stage pipeline with stage latencies 1 ns, 1.5 ns, 1.5 ns, 1.5 ns.
P3: Five-stage pipeline with stage latencies 0.5 ns, 1 ns, 1 ns, 0.6 ns, 1 ns.
P4: Five-stage pipeline with stage latencies 0.5 ns, 0.5 ns, 1 ns, 1 ns, 1.1 ns.
Which processor has the highest peak clock frequency?
Answer: (C)
The clock period is set by the slowest stage, so it equals the largest stage latency.
- P1: 2 ns 0.5 GHz
- P2: 1.5 ns 0.67 GHz
- P3: 1 ns 1 GHz
- P4: 1.1 ns 0.91 GHz
Answer: P3
- P1: 2 ns 0.5 GHz
- P2: 1.5 ns 0.67 GHz
- P3: 1 ns 1 GHz
- P4: 1.1 ns 0.91 GHz
Answer: P3
Let A be a square matrix size n x n. Consider the following pseudocode. What is the expected output?
C = 100;
for i = 1 to n do
for j = 1 to n do
{
Temp = A[ i ] [ j ] + C ;
A [ i ] [ j ] = A [ j ] [ i ] ;
A [ j ] [ i ] = Temp ? C ;
}
for i = 1 to n do
for j = 1 to n do
output (A[ i ] [ j ]); Answer: (A)
In each pass, A[i][j] and A[j][i] are swapped. Temp C returns the old value of A[i][j].
Both loops cover every pair (i, j). So each off-diagonal pair is swapped two times: once at (i, j) and once at (j, i). Two swaps undo each other, so A stays the same.
Answer: The matrix A itself
Both loops cover every pair (i, j). So each off-diagonal pair is swapped two times: once at (i, j) and once at (j, i). Two swaps undo each other, so A stays the same.
Answer: The matrix A itself