Question 1 of 65
Didn't you buy _____ when you went shopping?
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.
Didn't you buy _____ when you went shopping?
Which of the following options is the closest in meaning to the sentence below?
She enjoyed herself immensely at the party.
Given Set and Set , two numbers are randomly selected, one from each set. What is the probability that the sum of the two numbers equals ?
Based on the given statements, select the most appropriate option to solve the given question.
If two floors in a certain building are feet apart, how many steps are there in a set of stairs that extends from the first floor to the second floor of the building?
Statements:
I. Each step is foot high
II. Each step is foot wide
Which one of the following combinations is incorrect?
The number of students in a class who have answered correctly, wrongly, or not attempted each question in an exam, are listed in the table below. The marks for each question are also listed. There is no negative or partial marking.
| Q.No. | Marks | Answered Correctly | Answered Wrongly | Not Attempted |
|---|---|---|---|---|
| 1 | 2 | 21 | 17 | 6 |
| 2 | 3 | 15 | 27 | 2 |
| 3 | 1 | 11 | 29 | 4 |
| 4 | 2 | 23 | 18 | 3 |
| 5 | 5 | 31 | 12 | 1 |
What is the average of the marks obtained by the class in the examination?
Select the alternative meaning of the underlined part of the sentence.
The chain snatchers took to their heels when the police party arrived.
The given statement is followed by some courses of action. Assuming the statement to be true, decide the correct option.
Statement:
There has been a significant drop in the water level in the lakes supplying water to the city.
Courses of action:
I. The water supply authority should impose a partial cut in supply to tackle the situation.
II. The government should appeal to all the residents through mass media for minimal use of water.
III. The government should ban the water supply in lower areas.
The pie chart below has the breakup of the number of students from different departments in an engineering college for the year 2012. The proportion of male to female students in each department is . There are males in Electrical Engineering. What is the difference between the numbers of female students in the Civil department and the female students in the Mechanical department?
A number: digits, one decimal point and an optional minus sign at the start.
The probabilities that a student passes in Mathematics, Physics and Chemistry are and respectively. Of these subjects, the student has chance of passing in at least one, a chance of passing in at least two and a chance of passing in exactly two. Following relations are drawn in :
Which of the following options is correct?
Match the following:
| Testing Technique | Testing Category | ||
|---|---|---|---|
| (P) | Condition coverage | (i) | Black-box testing |
| (Q) | Equivalence class partitioning | (ii) | System testing |
| (R) | Volume testing | (iii) | White-box testing |
| (S) | Alpha testing | (iv) | Performance testing |
Which one of the following is the recurrence equation for the worst case time complexity of the Quicksort algorithm for sorting () numbers? In the recurrence equations given in the options below, is a constant.
For any two languages and such that is context-free and is recursively enumerable but not recursive, which of the following is/are necessarily true?
I. (complement of ) is recursive
II. (complement of ) is recursive
III. is context-free
IV. is recursively enumerable
is:
If and , then is:
Match the following:
| Algorithm | Design Paradigm | ||
|---|---|---|---|
| (P) | Prim's algorithm for minimum spanning tree | (i) | Backtracking |
| (Q) | Floyd-Warshall algorithm for all pairs shortest paths | (ii) | Greedy method |
| (R) | Mergesort | (iii) | Dynamic programming |
| (S) | Hamiltonian circuit | (iv) | Divide and conquer |
SELECT operation in SQL is equivalent to:
For computers based on three-address instruction formats, each address field can be used to specify which of the following:
(S1) A memory operand
(S2) A processor register
(S3) An implied accumulator register
The following two functions P1 and P2 that share a variable B with an initial value of execute concurrently.
P1() {
C = B - 1;
B = 2 * C;
}
P2() {
D = 2 * B;
B = D - 1;
}
The number of distinct values that B can possibly take after the execution is _____.
A number: digits, one decimal point and an optional minus sign at the start.
Which of the following is/are correct inorder traversal sequence(s) of binary search tree(s)?
I.
II.
III.
IV.
The output of the following C program is _____.
#include <stdio.h>
void f1(int a, int b) {
int c;
c = a; a = b; b = c;
}
void f2(int *a, int *b) {
int c;
c = *a; *a = *b; *b = c;
}
int main() {
int a = 4, b = 5, c = 6;
f1(a, b);
f2(&b, &c);
printf("%d", c - a - b);
return 0;
}
A number: digits, one decimal point and an optional minus sign at the start.
Consider a system with byte-addressable memory, 32-bit logical addresses, page size and page table entries of each. The size of the page table in the system in megabytes is _____.
A number: digits, one decimal point and an optional minus sign at the start.
Which one of the following is TRUE at any valid state in shift-reduce parsing?
Which one of the following is NOT equivalent to ?
Which of the following statements is/are FALSE?
I. XML overcomes the limitations in HTML to support a structured way of organizing content.
II. XML specification is not case sensitive while HTML specification is case sensitive.
III. XML supports user defined tags while HTML uses pre-defined tags.
IV. XML tags need not be closed while HTML tags must be closed.
For a set , the power set of is denoted by . If , which of the following options are TRUE?
I.
II.
III.
IV.
In one of the pairs of protocols given below, both the protocols can use multiple TCP connections between the same client and the server. Which one is that?
In the LU decomposition of the matrix , if the diagonal elements of are both , then the lower diagonal entry of is _____.
A number: digits, one decimal point and an optional minus sign at the start.
Suppose two hosts use a TCP connection to transfer a large file. Which of the following statements is/are FALSE with respect to the TCP connection?
I. If the sequence number of a segment is , then the sequence number of the subsequent segment is always .
II. If the estimated round trip time at any given point of time is , the value of the retransmission timeout is always set to greater than or equal to .
III. The size of the advertised window never changes during the course of the TCP connection.
IV. The number of unacknowledged bytes at the sender is always less than or equal to the advertised window.
Consider a 4-bit Johnson counter with an initial value of . The counting sequence of this counter is:
Suppose that everyone in a group of people wants to communicate secretly with the others using symmetric key cryptographic system. The communication between any two persons should not be decodable by the others in the group. The number of keys required in the system as a whole to satisfy the confidentiality requirement is:
Which one of the following fields of an IP header is NOT modified by a typical IP router?
What are the worst-case complexities of insertion and deletion of a key in a binary search tree?
A file is organized so that the ordering of data records is the same as or close to the ordering of data entries in some index. Then that index is called:
The height of a tree is the length of the longest root-to-leaf path in it. The maximum and minimum number of nodes in a binary tree of height are:
The value of the summation is _____.
A number: digits, one decimal point and an optional minus sign at the start.
Consider the following relations:
Student
| Roll No | Student Name |
|---|---|
| 1 | Raj |
| 2 | Rohit |
| 3 | Raj |
Performance
| Roll No | Course | Marks |
|---|---|---|
| 1 | Math | 80 |
| 1 | English | 70 |
| 2 | Math | 75 |
| 3 | English | 80 |
| 2 | Physics | 65 |
| 3 | Math | 80 |
Consider the following SQL query:
SELECT S.Student_Name, sum(P.Marks)
FROM Student S, Performance P
WHERE S.Roll_No = P.Roll_No
GROUP BY S.Student_Name
The number of rows that will be returned by the SQL query is _____.
A number: digits, one decimal point and an optional minus sign at the start.
The binary operator is defined by the following truth table:
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
Which one of the following is true about the binary operator ?
Consider a LAN with four nodes and . Time is divided into fixed-size slots, and a node can begin its transmission only at the beginning of a slot. A collision is said to have occurred if more than one node transmit in the same slot. The probabilities of generation of a frame in a time slot by and are and , respectively. The probability of sending a frame in the first slot without any collision by any of these four stations is _____.
A number: digits, one decimal point and an optional minus sign at the start.
Suppose the following disk request sequence (track numbers) for a disk with tracks is given: . Assume that the initial position of the R/W head is on track . The additional distance that will be traversed by the R/W head when the Shortest Seek Time First (SSTF) algorithm is used compared to the SCAN (Elevator) algorithm (assuming that SCAN algorithm moves towards when it starts execution) is _____ tracks.
A number: digits, one decimal point and an optional minus sign at the start.
Consider the following C function:
int fun1(int n) {
int i, j, k, p, q = 0;
for (i = 1; i < n; ++i) {
p = 0;
for (j = n; j > 1; j = j / 2)
++p;
for (k = 1; k < p; k = k * 2)
++q;
}
return q;
}
Which one of the following most closely approximates the return value of the function fun1?
Consider a max heap, represented by the array:
| Array Index | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
|---|---|---|---|---|---|---|---|---|---|
| Value | 40 | 30 | 20 | 10 | 15 | 16 | 17 | 8 | 4 |
Now consider that a value is inserted into this heap. After insertion, the new heap is:
Consider the following pseudo code, where and are positive integers:
begin
q := 0
r := x
while r >= y do
begin
r := r - y
q := q + 1
end
end
The post condition that needs to be satisfied after the program terminates is:
Suppose is a lattice represented by the following Hasse diagram:
For any , not necessarily distinct, and are join and meet of , respectively. Let be the set of all ordered triplets of the elements of . Let be the probability that an element chosen equiprobably satisfies . Then:
What is the output of the following C code? Assume that the address of x is (in decimal) and an integer requires four bytes of memory.
#include <stdio.h>
int main() {
unsigned int x[4][3] = {
{1, 2, 3},
{4, 5, 6},
{7, 8, 9},
{10, 11, 12}
};
printf("%u, %u, %u", x + 3, *(x + 3), *(x + 2) + 3);
return 0;
}
Consider the following matrix where two elements are unknown and are marked by and . The eigenvalues of this matrix are and . What are the values of and ?
A positive edge-triggered D flip-flop is connected to a positive edge-triggered JK flip-flop as follows. The Q output of the D flip-flop is connected to both the J and K inputs of the JK flip-flop, while the Q output of the JK flip-flop is connected to the input of the D flip-flop. Initially, the output of the D flip-flop is set to logic one and the output of the JK flip-flop is cleared. Which one of the following is the bit sequence (including the initial state) generated at the Q output of the JK flip-flop when the flip-flops are connected to a free-running common clock? Assume that is the toggle mode and is the state-holding mode of the JK flip-flop. Both the flip-flops have non-zero propagation delays.
Consider a non-pipelined processor with a clock rate of and average cycles per instruction of four. The same processor is upgraded to a pipelined processor with five stages; but due to the internal pipeline delay, the clock speed is reduced to . Assume that there are no stalls in the pipeline. The speed up achieved in this pipelined processor is _____.
A number: digits, one decimal point and an optional minus sign at the start.
Consider the operations:
Which one of the following is correct?
An algorithm performs find operations, insert operations, delete operations, and decrease-key operations on a set of data items with keys drawn from a linearly ordered set. For a delete operation, a pointer is provided to the record that must be deleted. For the decrease-key operation, a pointer is provided to the record that has its key decreased. Which one of the following data structures is the most suited for the algorithm to use, if the goal is to achieve the best total asymptotic complexity considering all the operations?
Consider an Entity-Relationship (ER) model in which entity sets and are connected by an relationship . and are connected by a ( on the side of and on the side of ) relationship .
has two single-valued attributes and of which is the key attribute. has two single-valued attributes and of which is the key attribute. has two single-valued attributes and of which is the key attribute. The relationships do not have any attributes.
If a relational model is derived from the above ER model, then the minimum number of relations that would be generated if all the relations are in 3NF is _____.
A number: digits, one decimal point and an optional minus sign at the start.
Consider the following C program segment.
while (first <= last)
{
if (array[middle] < search)
first = middle + 1;
else if (array[middle] == search)
found = TRUE;
else last = middle - 1;
middle = (first + last) / 2;
}
if (first > last) notPresent = TRUE;
The cyclomatic complexity of the program segment is _____.
A number: digits, one decimal point and an optional minus sign at the start.
The graph shown below has 8 edges with distinct integer edge weights. The minimum spanning tree (MST) is of weight 36 and contains the edges: {(A, C), (B, C), (B, E), (E, F), (D, F)}. The edge weights of only those edges which are in the MST are given in the figure shown below. The minimum possible sum of weights of all 8 edges of this graph is _____.
A number: digits, one decimal point and an optional minus sign at the start.
The value of the integral is _____.
A number: digits, one decimal point and an optional minus sign at the start.
Let be a simple undirected graph, and be a particular vertex in it called the source. For , let denote the shortest distance in from to . A breadth first search (BFS) is performed starting at . Let be the resultant BFS tree. If is an edge of that is not in , then which one of the following CANNOT be the value of ?
Consider a uniprocessor system executing three tasks , and , each of which is composed of an infinite sequence of jobs (or instances) which arrive periodically at intervals of , and milliseconds, respectively. The priority of each task is the inverse of its period, and the available tasks are scheduled in order of priority, with the highest priority task scheduled first. Each instance of , and requires an execution time of , and milliseconds, respectively. Given that all tasks initially arrive at the beginning of the millisecond and task preemptions are allowed, the first instance of completes its execution at the end of _____ milliseconds.
A number: digits, one decimal point and an optional minus sign at the start.
Consider a main memory with five page frames and the following sequence of page references: . Which one of the following is true with respect to page replacement policies First In First Out (FIFO) and Least Recently Used (LRU)?
Consider a disk pack with a seek time of milliseconds and rotational speed of rotations per minute (RPM). It has sectors per track and each sector can store bytes of data. Consider a file stored in the disk. The file contains sectors. Assume that every sector access necessitates a seek, and the average rotational latency for accessing each sector is half of the time for one complete rotation. The total time (in milliseconds) needed to read the entire file is _____.
A number: digits, one decimal point and an optional minus sign at the start.
Let represent the number of bit strings of length containing two consecutive 1s. What is the recurrence relation for ?
A variable is said to be live at a statement in a program if the following three conditions hold simultaneously:
i. There exists a statement that uses
ii. There is a path from to in the flow graph corresponding to the program
iii. The path has no intervening assignment to including at and
The variables which are live both at the statement in basic block 2 and at the statement in basic block 3 of the above control flow graph are
Consider the NPDA , where (as per usual convention) is the set of states, is the input alphabet, is the stack alphabet, is the state transition function, is the initial state, is the initial stack symbol, and is the set of accepting states. The state transition is as follows:
Which one of the following sequences must follow the string so that the overall string is accepted by the automaton?
Consider the DFAs and given below.
The number of states in a minimal DFA that accepts the language is _____.
A number: digits, one decimal point and an optional minus sign at the start.
Suppose that the stop-and-wait protocol is used on a link with a bit rate of kilobits per second and milliseconds propagation delay. Assume that the transmission time for the acknowledgement and the processing time at nodes are negligible. Then the minimum frame size in bytes to achieve a link utilization of at least is _____.
A number: digits, one decimal point and an optional minus sign at the start.
Let be a connected planar graph with vertices. If the number of edges on each face is three, then the number of edges in is _____.
A number: digits, one decimal point and an optional minus sign at the start.
The least number of temporary variables required to create a three-address code in static single assignment form for the expression is _____.
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