Question 1 of 65
If ROAD is written as URDG, then SWAN should be written as:
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.
If ROAD is written as URDG, then SWAN should be written as:
The Tamil version of _____ John Abraham-starrer Madras Cafe _____ cleared by the Censor Board with no cuts last week, but the film's distributors _____ no takers among the exhibitors for a release in Tamil Nadu this Friday.
Extreme focus on syllabus and studying for tests has become such a dominant concern of Indian students that they close their minds to anything _____ to the requirements of the exam.
Select the pair that best expresses a relationship similar to that expressed in the pair:
Children : Pediatrician
A function is linear and has a value of 29 at and 39 at . Find its value at .
Alexander turned his attention towards India, since he had conquered Persia.
Which one of the statements below is logically valid and can be inferred from the above sentence?
The head of a newly formed government desires to appoint five of the six selected members P, Q, R, S, T, and U to portfolios of Home, Power, Defense, Telecom, and Finance. U does not want any portfolio if S gets one of the five. R wants either Home or Finance or no portfolio. Q says that if S gets either Power or Telecom, then she must get the other one. T insists on a portfolio if P gets one.
Which is the valid distribution of portfolios?
Most experts feel that in spite of possessing all the technical skills required to be a batsman of the highest order, he is unlikely to be so due to lack of requisite temperament. He was guilty of throwing away his wicket several times after working hard to lay a strong foundation. His critics pointed out that until he addressed this problem, success at the highest level will continue to elude him.
Which of the statement(s) below is/are logically valid and can be inferred from the above passage?
(i) He was already a successful batsman at the highest level.
(ii) He has to improve his temperament in order to become a great batsman.
(iii) He failed to make many of his good starts count.
(iv) Improving his technical skills will guarantee success.
The exports and imports (in crores of Rs.) of a country from the year 2000 to 2007 are given in the following bar chart. In which year is the combined percentage increase in imports and exports the highest?
A number: digits, one decimal point and an optional minus sign at the start.
The maximum number of processes that can be in Ready state for a computer system with CPUs is
Let be a binary operator defined as
where and are Boolean variables.
Consider the following two statements.
(S1)
(S2)
Which of the following is/are true for the Boolean variables , and ?
Consider the following relation
Which of the following options will be needed at the end of the SQL query
SELECT P1.address
FROM Cinema P1
such that it always finds the addresses of theaters with maximum capacity?
Consider the equality and the following choices for
The equality above remains correct if is replaced by
The number of 4 digit numbers having their digits in non-decreasing order (from left to right) constructed by using the digits belonging to the set is _____.
A number: digits, one decimal point and an optional minus sign at the start.
Consider a CSMA/CD network that transmits data at a rate of 100 Mbps ( bits per second) over a 1 km (Kilometer) cable with no repeaters. If the minimum frame size required for this network is 1250 bytes, what is the signal speed (km/sec) in the cable?
Consider the following C program segment.
#include <stdio.h>
int main()
{
char s1[7] = "1234", *p;
p = s1 + 2;
*p = '0';
printf("%s", s1);
}
What will be printed by the program?
In a web server, ten WebPages are stored with the URLs of the form http://www.yourname.com/var.html; where, var is a different number from 1 to 10 for each Webpage. Suppose, the client stores the Webpage with var = 1 (say W1) in local machine, edits and then tests. Rest of the WebPages remains on the web server. W1 contains several relative URLs of the form "var.html" referring to the other WebPages. Which one of the following statements needs to be added in W1, so that all the relative URLs in W1 refer to the appropriate WebPages on the web server?
The value of is
Two processes X and Y need to access a critical section. Consider the following synchronization construct used by both the processes
/* Process X */
while (true) {
varP = true;
while (varQ == true) {
/* Critical Section */
varP = false;
}
}
/* Process Y */
while (true) {
varQ = true;
while (varP == true) {
/* Critical Section */
varQ = false;
}
}
Here, varP and varQ are shared variables and both are initialized to false. Which one of the following statements is true?
Consider a software program that is artificially seeded with 100 faults. While testing this program, 159 faults are detected, out of which 75 faults are from those artificially seeded faults. Assuming that both real and seeded faults are of same nature and have same distribution, the estimated number of undetected real faults is _____.
A number: digits, one decimal point and an optional minus sign at the start.
The result evaluating the postfix expression
is
While inserting the elements 71, 65, 84, 69, 67, 83 in an empty binary search tree (BST) in the sequence shown, the element in the lowest level is
Consider a machine with a byte addressable main memory of bytes, block size of 16 bytes and a direct mapped cache having cache lines. Let the addresses of two consecutive bytes in main memory be and . What are the tag and cache line address (in hex) for main memory address ?
In the given matrix
one of the eigenvalues is 1. The eigenvectors corresponding to the eigenvalue 1 are
Among simple LR (SLR), canonical LR, and look-ahead LR (LALR), which of the following pairs identify the method that is very easy to implement and the method that is the most powerful, in that order?
Given a hash table with 25 slots that stores 2000 elements, the load factor for is _____.
A number: digits, one decimal point and an optional minus sign at the start.
Let be the language represented by the regular expression where . What is the minimum number of states in a DFA that recognizes (complement of )?
Consider the following array of elements
The minimum number of interchanges needed to convert it into a max-heap is
Consider the relation with the following set of functional dependencies
Which of the following is the trivial functional dependency in , where is closure of ?
Consider a software project with the following information domain characteristics for calculation of function point metric.
It is given that the complexity weighting factors for I, O, E, F and N are 4, 5, 4, 10 and 7, respectively. It is also given that, out of fourteen value adjustment factors that influence the development effort, four factors are not applicable, each of the other four factors have value 3, and each of the remaining factors have value 4. The computed value of function point metric is _____.
A number: digits, one decimal point and an optional minus sign at the start.
Consider the following statements.
I. TCP connections are full duplex
II. TCP has no option for selective acknowledgement
III. TCP connections are message streams
Which of the following is correct?
Suppose is the power set of the set . For any , let denote the number of elements in and denote the complement of . For any , let be the set of all elements in which are not in . Which one of the following is true?
In a room there are only two types of people, namely Type 1 and Type 2. Type 1 people always tell the truth and Type 2 people always lie. You give a fair coin to a person in that room, without knowing which type he is from and tell him to toss it and hide the result from you till you ask for it. Upon asking, the person replies the following:
"The result of the toss is head if and only if I am telling the truth."
Which of the following options is correct?
Consider a binary tree that has 200 leaf nodes. Then, the number of nodes in that have exactly two children are _____.
A number: digits, one decimal point and an optional minus sign at the start.
Consider the following C program.
#include <stdio.h>
int main()
{
static int a[] = {10, 20, 30, 40, 50};
static int *p[] = {a, a + 3, a + 4, a + 1, a + 2};
int **ptr = p;
ptr++;
printf("%d%d", ptr - p, **ptr);
}
The output of the program is _____.
A number: digits, one decimal point and an optional minus sign at the start.
Assume that a mergesort algorithm in the worst case takes 30 seconds for an input of size 64. Which of the following most closely approximates the maximum input size of a problem that can be solved in 6 minutes?
Consider a network connecting two systems located 8000 kilometers apart. The bandwidth of the network is bits per second. The propagation speed of the media is meters per second. It is needed to design a Go-Back-N sliding window protocol for this network. The average packet size is bits. The network is to be used to its full capacity. Assume that processing delays at nodes are negligible. Then, the minimum size in bits of the sequence number field has to be _____.
A number: digits, one decimal point and an optional minus sign at the start.
Consider the following partial Schedule involving two transactions and . Only the read and the write operations have been shown. The read operation on data item is denoted by and the write operation on data item is denoted by .
| Time instance | T1 | T2 |
|---|---|---|
| 1 | read(A) | |
| 2 | write(A) | |
| 3 | read(C) | |
| 4 | write(C) | |
| 5 | read(B) | |
| 6 | write(B) | |
| 7 | read(A) | |
| 8 | commit | |
| 9 | read(B) |
Suppose that the transaction fails immediately after time instance 9. Which one of the following statements is correct?
Consider the following two C code segments. and are one and two dimensional arrays of size and respectively, where . Assume that in both code segments, elements of are initialized to 0 and each element of array is initialized to . Further assume that when stored in main memory all elements of are in same main memory page frame.
Code Segment 1:
// initialize elements of Y to 0
// initialize elements X[i][j] of X to i + j
for (i = 0; i < n; i++)
Y[i] += X[0][i];
Code Segment 2:
// initialize elements of Y to 0
// initialize elements X[i][j] of X to i + j
for (i = 0; i < n; i++)
Y[i] += X[i][0];
Which of the following statements is/are correct?
S1: Final contents of array will be same in both code segments
S2: Elements of array accessed inside the for loop shown in code segment 1 are contiguous in main memory
S3: Elements of array accessed inside the for loop shown in code segment 2 are contiguous in main memory
Consider the following grammar
where and are non-terminal symbols, and are terminal symbols. Which of the following statement(s) is/are correct?
S1. LL(1) can parse all strings that are generated using grammar
S2. LR(1) can parse all strings that are generated using grammar
Which of the following languages are context-free?
If the following system has non-trivial solution,
then which one of the following options is TRUE?
For the processes listed in the following table, which of the following scheduling schemes will give the lowest average turnaround time?
| Process | Arrival Time | Processing Time |
|---|---|---|
| A | 0 | 3 |
| B | 1 | 6 |
| C | 4 | 4 |
| D | 6 | 2 |
Consider the equation where and are unknown. The number of possible solutions is _____.
A number: digits, one decimal point and an optional minus sign at the start.
Two hosts are connected via a packet switch with bits per second links. Each link has a propagation delay of 20 microseconds. The switch begins forwarding a packet 35 microseconds after it receives the same. If 10000 bits of data are to be transmitted between the two hosts using a packet size of 5000 bits, the time elapsed between the transmission of the first bit of data and the reception of the last bit of the data in microseconds is _____.
A number: digits, one decimal point and an optional minus sign at the start.
Suppose for are independent and identically distributed random variables whose probability mass functions are for . Define another random variable , where denotes XOR. Then
is _____.
A number: digits, one decimal point and an optional minus sign at the start.
In the network 200.10.11.144/27, the fourth octet (in decimal) of the last IP address of the network which can be assigned to a host is _____.
A number: digits, one decimal point and an optional minus sign at the start.
Consider the following recursive C function.
void get(int n)
{
if (n < 1) return;
get(n - 1);
get(n - 3);
printf("%d", n);
}
If get(6) function is being called in main() then how many times will the get() function be invoked before returning to the main()?
Let be a connected undirected graph of 100 vertices and 300 edges. The weight of a minimum spanning tree of is 500. When the weight of each edge of is increased by five, the weight of a minimum spanning tree becomes _____.
A number: digits, one decimal point and an optional minus sign at the start.
Let be a relation on the set of ordered pairs of positive integers such that if and only if . Which one of the following is true about ?
Let and , where is a positive integer. Which of the following statements is/are correct?
I.
II.
The total number of prime implicants of the function is _____.
A number: digits, one decimal point and an optional minus sign at the start.
Given the function , where is a function in three Boolean variables and and , consider the following statements.
(S1)
(S2)
(S3)
(S4)
Which of the following is true?
If for non-zero ,
where then is
Consider a B+ tree in which the search key is 12 bytes long, block size is 1024 bytes, record pointer is 10 bytes long and block pointer is 8 bytes long. The maximum number of keys that can be accommodated in each non-leaf node of the tree is _____.
A number: digits, one decimal point and an optional minus sign at the start.
Consider the following code sequence having five instructions to . Each of these instructions has the following format.
OP Ri, Rj, Rk
where operation OP is performed on contents of registers Rj and Rk and the result is stored in register Ri.
: ADD R1, R2, R3
: MUL R7, R1, R3
: SUB R4, R1, R5
: ADD R3, R2, R4
: MUL R7, R8, R9
Consider the following three statements.
S1: There is an anti-dependence between instructions and
S2: There is an anti-dependence between instructions and
S3: Within an instruction pipeline an anti-dependence always creates one or more stalls
Which one of above statements is/are correct?
Consider the following C program:
#include <stdio.h>
int main()
{
int i, j, k = 0;
j = 2 * 3 / 4 + 2.0 / 5 + 8 / 5;
k -= --j;
for (i = 0; i < 5; i++)
{
switch (i + k)
{
case 1:
case 2: printf("\n%d", i + k);
case 3: printf("\n%d", i + k);
default: printf("\n%d", i + k);
}
}
return 0;
}
The number of times printf statement is executed is _____.
A number: digits, one decimal point and an optional minus sign at the start.
Suppose is an array of length , where all the entries are from the set . For any positive integers and , consider the following pseudocode:
DOSOMETHING (c, a, n)
z = 1
for i = 0 to k - 1
do z = z^2 mod n
if c[i] == 1
then z = (z * a) mod n
return z
If and , then the output of DOSOMETHING(c, a, n) is _____.
A number: digits, one decimal point and an optional minus sign at the start.
The velocity (in kilometer/minute) of a motorbike which starts from rest, is given at fixed intervals of time (in minutes) as follows:
| t | 2 | 4 | 6 | 8 | 10 | 12 | 14 | 16 | 18 | 20 |
|---|---|---|---|---|---|---|---|---|---|---|
| v | 10 | 18 | 25 | 29 | 32 | 20 | 11 | 5 | 2 | 0 |
The approximate distance (in kilometers) rounded to two places of decimals covered in 20 minutes using Simpson's rule is _____.
A number: digits, one decimal point and an optional minus sign at the start.
Consider the following reservation table for a pipeline having three stages and :
| Stage \ Time | 1 | 2 | 3 | 4 | 5 |
|---|---|---|---|---|---|
| S1 | X | X | |||
| S2 | X | X | |||
| S3 | X |
The minimum average latency (MAL) is _____.
A number: digits, one decimal point and an optional minus sign at the start.
Consider the following policies for preventing deadlock in a system with mutually exclusive resources:
I. Processes should acquire all their resources at the beginning of execution. If any resource is not available, all resources acquired so far are released.
II. The resources are numbered uniquely, and processes are allowed to request for resources only in increasing resource numbers.
III. The resources are numbered uniquely, and processes are allowed to request for resources only in decreasing resource numbers.
IV. The resources are numbered uniquely. A process is allowed to request only for a resource with resource number larger than its currently held resources.
Which of the above policies can be used for preventing deadlock?
Language is polynomial time reducible to language . Language is polynomial time reducible to , which in turn is polynomial time reducible to language . Which of the following is/are true?
I. if , then
II. if or , then
III. if and only if
IV. if , then and
Consider the following C program.
#include <stdio.h>
int f1(void);
int f2(void);
int f3(void);
int x = 10;
int main()
{
int x = 1;
x += f1() + f2() + f3() + f2();
printf("%d", x);
return 0;
}
int f1() { int x = 25; x++; return x; }
int f2() { static int x = 50; x++; return x; }
int f3() { x *= 10; return x; }
The output of the program is _____.
A number: digits, one decimal point and an optional minus sign at the start.
Consider three software items: Program-X, Control Flow Diagram of Program-Y and Control Flow Diagram of Program-Z as shown below.
Program-X:
sumcal(int maxint, int value)
{
int result = 0, i = 0;
if (value < 0)
{
value = -value;
}
while ((i < value) AND (result <= maxint))
{
i = i + 1;
result = result + 1;
}
if (result <= maxint)
{
printf(result);
}
else
{
printf("large");
}
printf("end of program");
}
The values of McCabe's Cyclomatic complexity of Program-X, Program-Y, and Program-Z respectively are
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