Question 1 of 65
Out of the following four sentences, select the most suitable sentence with respect to grammar and usage.
Mock test · GATE marking
You have submitted this test.See your result
This browser is not letting the page save anything. The test will work, but a refresh would lose your answers, and the result cannot be shown after you submit.
The clock starts when you press Start and does not stop. An answer counts only after Save & Next or Mark for Review & Next.
Out of the following four sentences, select the most suitable sentence with respect to grammar and usage.
A rewording of something written or spoken is a ______________.
Archimedes said, "Give me a lever long enough and a fulcrum on which to place it, and I will move the world."
The sentence above is an example of a ___________ statement.
If 'relftaga' means carefree, 'otaga' means careful and 'fertaga' means careless, which of the following could mean 'aftercare'?
A cube is built using 64 cubic blocks of side one unit. After it is built, one cubic block is removed from every corner of the cube. The resulting surface area of the body (in square units) after the removal is __________.
A shaving set company sells 4 different types of razors, Elegance, Smooth, Soft and Executive. Elegance sells at Rs. 48, Smooth at Rs. 63, Soft at Rs. 78 and Executive at Rs. 173 per piece. The table below shows the numbers of each razor sold in each quarter of a year.
| Quarter \ Product | Elegance | Smooth | Soft | Executive |
|---|---|---|---|---|
| Q1 | 27300 | 20009 | 17602 | 9999 |
| Q2 | 25222 | 19392 | 18445 | 8942 |
| Q3 | 28976 | 22429 | 19544 | 10234 |
| Q4 | 21012 | 18229 | 16595 | 10109 |
Which product contributes the greatest fraction to the revenue of the company in that year?
Indian currency notes show the denomination indicated in at least seventeen languages. If this is not an indication of the nation's diversity, nothing else is.
Which of the following can be logically inferred from the above sentences?
Consider the following statements relating to the level of poker play of four players P, Q, R and S.
I. P always beats Q
II. R always beats S
III. S loses to P only sometimes
IV. R always loses to Q
Which of the following can be logically inferred from the above statements?
(i) P is likely to beat all the three other players
(ii) S is the absolute worst player in the set
If , which of the following is a factor of ?
In a process, the number of cycles to failure decreases exponentially with an increase in load. At a load of 80 units, it takes 100 cycles for failure. When the load is halved, it takes 10000 cycles for failure. The load for which the failure will happen in 5000 cycles is ________.
Let represent the following propositions.
is a composite number
is a perfect square
is a prime number
The integer which satisfies is _____.
A number: digits, one decimal point and an optional minus sign at the start.
Let be the number of -bit strings that do NOT contain two consecutive 1s. Which one of the following is the recurrence relation for ?
The value of
is _____.
A number: digits, one decimal point and an optional minus sign at the start.
A probability density function on the interval is given by and outside this interval the value of the function is zero. The value of is _____.
A number: digits, one decimal point and an optional minus sign at the start.
Two eigenvalues of a real matrix are and . The determinant of is _____.
A number: digits, one decimal point and an optional minus sign at the start.
Consider the Boolean operator with the following properties:
, , and . Then is equivalent to
The 16-bit 2's complement representation of an integer is 1111 1111 1111 0101; its decimal representation is _____.
A number: digits, one decimal point and an optional minus sign at the start.
We want to design a synchronous counter that counts the sequence 0-1-0-2-0-3 and then repeats. The minimum number of J-K flip-flops required to implement this counter is _____.
A number: digits, one decimal point and an optional minus sign at the start.
A processor can support a maximum memory of 4 GB, where the memory is word-addressable (a word consists of two bytes). The size of the address bus of the processor is at least _____ bits.
A number: digits, one decimal point and an optional minus sign at the start.
A queue is implemented using an array such that ENQUEUE and DEQUEUE operations are performed efficiently. Which one of the following statements is CORRECT ( refers to the number of items in the queue)?
Consider the following directed graph:
The number of different topological orderings of the vertices of the graph is _____.
A number: digits, one decimal point and an optional minus sign at the start.
Consider the following C program.
void f(int, short);
void main()
{
int i = 100;
short s = 12;
short *p = &s;
__________ ; // call to f()
}
Which one of the following expressions, when placed in the blank above, will NOT result in a type checking error?
The worst case running times of Insertion sort, Merge sort and Quick sort, respectively, are:
Let be a weighted connected undirected graph with distinct positive edge weights. If every edge weight is increased by the same value, then which of the following statements is/are TRUE?
: Minimum spanning tree of does not change
: Shortest path between any pair of vertices does not change
Consider the following C program.
#include <stdio.h>
void mystery(int *ptra, int *ptrb) {
int *temp;
temp = ptrb;
ptrb = ptra;
ptra = temp;
}
int main() {
int a = 2016, b = 0, c = 4, d = 42;
mystery(&a, &b);
if (a < c)
mystery(&c, &a);
mystery(&a, &d);
printf("%d\n", a);
}
The output of the program is _____.
A number: digits, one decimal point and an optional minus sign at the start.
Which of the following languages is generated by the given grammar?
Which of the following decision problems are undecidable?
I. Given NFAs and , is ?
II. Given a CFG and a string , does ?
III. Given CFGs and , is ?
IV. Given a TM , is ?
Which one of the following regular expressions represents the language: the set of all binary strings having two consecutive 0s and two consecutive 1s?
Consider the following code segment.
x = u - t;
y = x * v;
x = y + w;
y = t - z;
y = x * y;
The minimum number of total variables required to convert the above code segment to static single assignment form is _____.
A number: digits, one decimal point and an optional minus sign at the start.
Consider an arbitrary set of CPU-bound processes with unequal CPU burst lengths submitted at the same time to a computer system. Which one of the following process scheduling algorithms would minimize the average waiting time in the ready queue?
Which of the following is NOT a superkey in a relational schema with attributes and primary key ?
Which one of the following is NOT a part of the ACID properties of database transactions?
A database of research articles in a journal uses the following schema.
The primary key is and the following functional dependencies exist in the schema.
The database is redesigned to use the following schemas.
Which is the weakest normal form that the new database satisfies, but the old one does not?
Which one of the following protocols is NOT used to resolve one form of address to another one?
Which of the following is/are example(s) of stateful application layer protocols?
(i) HTTP
(ii) FTP
(iii) TCP
(iv) POP3
The coefficient of in is _____.
A number: digits, one decimal point and an optional minus sign at the start.
Consider the recurrence relation , . Let . The value of is _____.
A number: digits, one decimal point and an optional minus sign at the start.
A function , defined on the set of positive integers , satisfies the following properties:
Let be the set of distinct values that takes. The maximum possible size of is _____.
A number: digits, one decimal point and an optional minus sign at the start.
Consider the following experiment.
Step 1. Flip a fair coin twice.
Step 2. If the outcomes are (TAILS, HEADS) then output Y and stop.
Step 3. If the outcomes are either (HEADS, HEADS) or (HEADS, TAILS), then output N and stop.
Step 4. If the outcomes are (TAILS, TAILS), then go to Step 1.
The probability that the output of the experiment is Y is (up to two decimal places) _____.
A number: digits, one decimal point and an optional minus sign at the start.
The size of the data count register of a DMA controller is 16 bits. The processor needs to transfer a file of 29,154 kilobytes from disk to main memory. The memory is byte addressable. The minimum number of times the DMA controller needs to get the control of the system bus from the processor to transfer the file from the disk to main memory is _____.
A number: digits, one decimal point and an optional minus sign at the start.
The stage delays in a 4-stage pipeline are 800, 500, 400 and 300 picoseconds. The first stage (with delay 800 picoseconds) is replaced with a functionally equivalent design involving two stages with respective delays 600 and 350 picoseconds. The throughput increase of the pipeline is _____ percent.
A number: digits, one decimal point and an optional minus sign at the start.
Consider a carry lookahead adder for adding two -bit integers, built using gates of fan-in at most two. The time to perform addition using this adder is
The following function computes the maximum value contained in an integer array p[] of size ().
int max(int *p, int n) {
int a = 0, b = n - 1;
while (__________) {
if (p[a] <= p[b]) {
a = a + 1;
} else {
b = b - 1;
}
}
return p[a];
}
The missing loop condition is
What will be the output of the following C program?
#include <stdio.h>
void count(int n) {
static int d = 1;
printf("%d ", n);
printf("%d ", d);
d++;
if (n > 1) count(n - 1);
printf("%d ", d);
}
void main() {
count(3);
}
What will be the output of the following pseudo-code when parameters are passed by reference and dynamic scoping is assumed?
a = 3;
void n(x) { x = x * a; print(x); }
void m(y) { a = 1; a = y - a; n(a); print(a); }
void main() { m(a); }
An operator delete(i) for a binary heap data structure is to be designed to delete the item in the -th node. Assume that the heap is implemented in an array and refers to the -th index of the array. If the heap tree has depth (number of edges on the path from the root to the farthest leaf), then what is the time complexity to re-fix the heap efficiently after the removal of the element?
Consider the weighted undirected graph with 4 vertices, where the weight of edge is given by the entry in the matrix :
The largest possible integer value of , for which at least one shortest path between some pair of vertices will contain the edge with weight is _____.
A number: digits, one decimal point and an optional minus sign at the start.
Let be a complete undirected graph on 4 vertices, having 6 edges with weights being 1, 2, 3, 4, 5, and 6. The maximum possible weight that a minimum weight spanning tree of can have is _____.
A number: digits, one decimal point and an optional minus sign at the start.
is an undirected simple graph in which each edge has a distinct weight, and is a particular edge of . Which of the following statements about the minimum spanning trees (MSTs) of is/are TRUE?
I. If is the lightest edge of some cycle in , then every MST of includes
II. If is the heaviest edge of some cycle in , then every MST of excludes
Let denote a queue containing sixteen numbers and be an empty stack. returns the element at the head of the queue without removing it from . Similarly returns the element at the top of without removing it from . Consider the algorithm given below.
while Q is not Empty do
if S is Empty OR Top(S) <= Head(Q) then
x := Dequeue(Q);
Push(S, x);
else
x := Pop(S);
Enqueue(Q, x);
end
end
The maximum possible number of iterations of the while loop in the algorithm is _____.
A number: digits, one decimal point and an optional minus sign at the start.
Consider the following context-free grammars:
Which one of the following pairs of languages is generated by and , respectively?
Let be a recursive language and be a recursively enumerable but not recursive language. Let and be two languages such that reduces to , and reduces to (reduction means the standard many-one reduction). Which one of the following statements is TRUE?
The attributes of three arithmetic operators in some programming language are given below.
| Operator | Precedence | Associativity | Arity |
| + | High | Left | Binary |
| - | Medium | Right | Binary |
| * | Low | Left | Binary |
The value of the expression in this language is _____.
A number: digits, one decimal point and an optional minus sign at the start.
Consider the following Syntax Directed Translation Scheme (SDTS), with non-terminals and terminals :
Using the above SDTS, the output printed by a bottom-up parser, for the input aab is:
Consider a computer system with 40-bit virtual addressing and page size of sixteen kilobytes. If the computer system has a one-level page table per process and each page table entry requires 48 bits, then the size of the per-process page table is _____ megabytes.
A number: digits, one decimal point and an optional minus sign at the start.
Consider a disk queue with requests for I/O to blocks on cylinders 47, 38, 121, 191, 87, 11, 92, 10. The C-LOOK scheduling algorithm is used. The head is initially at cylinder number 63, moving towards larger cylinder numbers on its servicing pass. The cylinders are numbered from 0 to 199. The total head movement (in number of cylinders) incurred while servicing these requests is _____.
A number: digits, one decimal point and an optional minus sign at the start.
Consider a computer system with ten physical page frames. The system is provided with an access sequence , where each is a distinct virtual page number. The difference in the number of page faults between the last-in-first-out page replacement policy and the optimal page replacement policy is _____.
A number: digits, one decimal point and an optional minus sign at the start.
Consider the following proposed solution for the critical section problem. There are processes: . In the code, function pmax returns an integer not smaller than any of its arguments. For all , t[i] is initialized to zero.
Code for Pi :
do {
c[i]=1; t[i] = pmax(t[0],. . .,t[n-1])+1; c[i]=0;
for every j != i in {0,. . .,n-1} {
while (c[j]);
while (t[j] != 0 && t[j]<=t[i]);
}
Critical Section;
t[i]=0;
Remainder Section;
} while (true);
Which one of the following is TRUE about the above solution?
Consider the following two phase locking protocol. Suppose a transaction accesses (for read or write operations), a certain set of objects . This is done in the following manner:
Step 1. acquires exclusive locks to in increasing order of their addresses.
Step 2. The required operations are performed.
Step 3. All locks are released.
This protocol will
Consider that wants to send a message that is digitally signed to . Let the pair of private and public keys for and be denoted by and for , respectively. Let represent the operation of encrypting with a key and represent the message digest. Which one of the following indicates the CORRECT way of sending the message along with the digital signature to ?
An IP datagram of size 1000 bytes arrives at a router. The router has to forward this packet on a link whose MTU (maximum transmission unit) is 100 bytes. Assume that the size of the IP header is 20 bytes.
The number of fragments that the IP datagram will be divided into for transmission is _____.
A number: digits, one decimal point and an optional minus sign at the start.
For a host machine that uses the token bucket algorithm for congestion control, the token bucket has a capacity of 1 megabyte and the maximum output rate is 20 megabytes per second. Tokens arrive at a rate to sustain output at a rate of 10 megabytes per second. The token bucket is currently full and the machine needs to send 12 megabytes of data. The minimum time required to transmit the data is _____ seconds.
A number: digits, one decimal point and an optional minus sign at the start.
A sender uses the Stop-and-Wait ARQ protocol for reliable transmission of frames. Frames are of size 1000 bytes and the transmission rate at the sender is 80 Kbps (1Kbps = 1000 bits/second). Size of an acknowledgement is 100 bytes and the transmission rate at the receiver is 8 Kbps. The one-way propagation delay is 100 milliseconds.
Assuming no frame is lost, the sender throughput is _____ bytes/second.
A number: digits, one decimal point and an optional minus sign at the start.
Not saved yet. Press Save & Next (or Mark for Review & Next) to record this selection.
M
Your answers are being marked.
The result page did not open. Your answers are saved in this browser.Open the result