A car covers its journey at the speed of 60 km/hr in 10 hours. If the same distance is to be covered in 4 hours, by how much the speed of the car will have to increase?
90 km/hr
150 km/hr
120 km/hr
125 km/hr
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66

A man can row with a speed of 12 kmph in still water. If the stream flows at 4 kmph, then the speed downstream is?

12 kmph

16 kmph

8 kmph

20 kmph

Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
What number has a 6:1 ratio to the number 12?
72
36
48
2
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Ramesh professes to sell his goods at the cost price but he made use of 900gms instead of a kg, what is the gain percentage?
10.89%
11.11%
12.04%
11.43%
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66

If a number is chosen at random from the set {11,12,13,14,...99},then the probability that the chosen number is a perfect square is:

1/25

6/89

9/13

14/17

Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66

The ratio in which the price at Rs 7.20 a kg be mixed with rice at Rs 5.70 a kg to produce a mixture worth Rs 6.30 a kg is:

2/3

4/3

5/6

4/5

Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
The ________ fighter ace of the First World War, Baron Manfred Von Richthofen, was known as the Red Baron.

great
greater
greatest
bigger
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33

What is the synonym of the word 'pitcher'?

bounce

kettle

hitting hard

catcher

Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33

Assertion (A): Plants are green.

Reason (R) : Plants contain chlorophyll which gives it the color green.

Both A and R are true

Both A and R are false

A is true but R is false

R is true but A is false

Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33

Find the odd one out.

Banquet, Carnival, Ravenous, Merry -making.

Merry -making

Ravenous

Carnival

Banquet

Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Suppose cursor points to a node in a linked list (using the node definition with member functions called data and link). What statement changes the cursor so that it points to the next node?
cursor == NULL
cursor->link( ) == NULL
cursor->data( ) == NULL
cursor = cursor->link()
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Consider the following pseudocode:

declare a stack of characters

while ( there are more characters in the word to read )

{

read a character

push the character on the stack

}

while ( the stack is not empty )

{

write the stack's top character to the screen

pop a character off the stack

}

What is written to the screen for the input "doodles"?

seldood
doodles
lesdood
selodod
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Here is an infix expression: 4+3*(63-12). Suppose that we are using the usual stack algorithm to convert the expression from infix to postfix notation. What is the maximum number of symbols that will appear on the stack AT ONE TIME during the conversion of this expression? __
4
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.00
What is the meaning of the following declaration?

int(*ptr[5])();

ptr is pointer to function.
ptr is array of pointer to function
ptr is pointer to such function which return type is array
ptr is pointer to array of function
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
What will be the output of the following program?

#include <stdio.h>

typedef struct { int k; int l; int a[2]; } T;

typedef struct { int i; T t; } S;

T x = {.l = 43, .k = 42, .a[1] = 19, .a[0] = 18 };

// x initialized to {42, 43, {18, 19} }

int main(void)

{

S l = { 1,

.t = x,

.t.l = 41,

.t.a[1] = 17

};

printf(" %d\n", l.t.k);

}

42
43
18
19
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
A Perfect Binary Tree of height h (where height is the number of nodes on path from root to leaf) has :
(2^h) – 1 nodes
(2^h) nodes
(2^(h-1)) – 1 nodes
(2^(h-1)) nodes
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
What will be the output of the following program?

#include<stdio.h>

struct Cricket

{

char team1[20];

char team2[20];

char ground[18];

int result;

}match[4] = {

{"IND","AUS","PUNE",1},

{"IND","PAK","NAGPUR",1},

{"IND","NZ","MUMBAI",0},

{"IND","SA","DELHI",1}

};

void main()

{

struct Cricket *ptr = match;

ptr+=2;

ptr--;

printf("\n%s Vs %s",ptr->team1,ptr->team2);

}

IND Vs AUS
IND Vs PAK
IND Vs NZ
IND Vs SA
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
What will be output if you will compile and execute the following c code?

#include<stdio.h>

int main(){

int a[2][4]={3,6,9,12,15,18,21,24};

printf("%d %d %d",*(a[1]+2),*(*(a+1)+2),2[1[a]]);

return 0;

}

15 18 21
21 21 21
24 24 24
Compiler error
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Which of the following statement(s) is/are False?

P: An arbitrary Directed Acyclic Graph(DAG) G=(V,E) is given as an adjacency list. Topological sort: the vertices of G can be completed in linear time?

Q: In the merge-sort execution tree, roughly the same amount of work is done at each level of the tree

Only P
Only Q
Both P and Q
Neither P nor Q
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
What will be the complexity of finding all pairs shortest pair paths by repeatedly running the Bellman Ford algorithm from each vertex?
O(V^4)
O(V^3)
O(V2^)
O(V^5)
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
The runtime of a divide-and-conquer algorithm is described by the following recurrence: T(n) = 5T(n/2) + O(1). How many subproblems will we have at the 7th level of recursion if the top level is considered to be the 0th level__________?
78125
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33

Suppose we have a heap containing n = 2^k elements in an array of size ‘n’, and suppose that we repeatedly extract the minimum element, ‘n’ times, never performing insertions. To make the heap space efficient, we move the heap over to an array of size 2^j whenever an extraction decreases the number of elements to 2^j for any integer j. Suppose that the cost of each such move is Θ(2^j). What is the total movement cost caused by ‘n’ extract-mins starting from the heap of n elements? (Ignore the Θ(n log n) cost from the heapify operations themselves.)

Θ(n)

Θ(2^n)

Θ(logn)

Θ(nlogn)

Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.33
Suppose we store n elements in an m-slot hash table using chaining, but we store each chain (set of elements hashing to the same slot) using a heap instead of a linked list. Each element corresponds to a key/value pair and there are no duplicates. Also suppose that m = n, so the load factor α = n/m = 1. What is the worst case time complexity to insert in this new hash table ? (Assume that there will be no resizing of the table.)
O(1)
O(logn)
O(n)
None
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Consider a set containing ‘n’ positive numbers and a value ‘m’. Check whether the subset of the given set with sum equal to given sum exists or not.

Consider the following recursive implementation of the given problem

What will be the X and Y ?

X = SubsetSum(set, n-1, m – 1) , Y = SubsetSum(set, n - 1, m - set[n-1])
X = SubsetSum(set, n-1, m), Y = SubsetSum(set, n-1, m - set[n-1])
X = SubsetSum(set, n-1, m), Y = SubsetSum(set, n, m – set[n-1])
X = SubsetSum(set, n-1, m-1), Y = SubsetSum(set, n, m – set[n-1])
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Consider the following NFA

The language accepted by the NFA is

(a+b)*
(a+b)*b
a*b
a*+a*b
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Let L be a language defined as L = {w | w contain ‘aba’ as substring, w ∈ (a + b)*}. Which of the following DFA will recognize the language L?
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Consider the given below regular expressions over ∑={a,b}

r1: (a*b*)*

r2: b*a*

r3: ba*

The regular expression for L(r1) ∩ L(r2) ∩ L(r3) is:

Φ
b*a*
(a*+b*)
None
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Consider the following grammar G: [MSQ]

S-> AB

A->aA | ϵ

B-> Bb | ϵ

Which of the following is/ are true about grammar G:

L(G) is regular
Grammar G is a linear grammar
L(G) is not cofinite
If x ϵ L(G) and y ϵ L(G) then xy may or may not belong L(G)
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
Consider the following languages. [MSQ]

L1 ={<M,w> | M is a TM that accept w}

L2 ={<M,w> | M is a TM that doesn’t accept w}

Select the correct option.

L2 is a complement of L1
L1 is recursively enumerable but not recursive
L2 is not recursively enumerable
L1 ∩ L2 =∅
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
Consider the following string S “GATE2021” .

Select the correct option

prefix(S) ⊂ suffix(S)
prefix(S) ∩ suffix(S)= ∅
prefix(S) ⊆ substring(S)
subsequence(S) ⊂ substring(S)
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Consider the grammar G, whose productions are given below. [MSQ]

S→S+S /a

Select the correct option

The grammar is an operator grammar
The grammar is ambiguous
The grammar has only one parse tree for string “a+a”
The grammar is LL(1)
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.00
Consider the following grammar G [MSQ]

S→ Ba | bBc | pc | bpa

B→p

Select the correct option.

Grammar G is unambiguous
Grammar G is SLR(1) but not LR(0)
Grammar G is LALR(1) but not SLR(1)
Grammar G is LR(1) and also LALR(1)
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
Consider the following languages: [MSQ]

L1= {w | w ϵ {a,b}* & number of (a) in w = number of (b) in w }

L2= { 0^n1^n | n >0 } UNION { 0^n1^2n | n >0 }

Select the correct option.

L1 is linear.
L2 is linear.
L1 is not a linear language.
L2 is not a linear language.
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00

Both L1 and L2 are regular.
L1 is regular but L2 is not regular.
L1 is not regular but L2 is regular.
Both L1 and L2 are not regular.
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Which one is the guideline of Referential integrity in a relationship ?
Do not enter a value in the primary key field of child table if that value does not exist in the primary key of the parent table
Do not enter a value in the foreign key field of a parent table if that value does not exist in the primary key of the child table
Do not enter a value in the foreign key field of a child table if that value does not exist in the primary key of the parent table
Do not enter a value in the foreign key field of child table if that value does not exist in the foreign key of the parent table
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Consider the join of a relation R with relation S. If R has 20 tuples and S have 10 tuples, then the maximum size of join is:
200
30
15
60
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Consider the following four relational schemas. For each schema, all non-trivial functional dependencies are listed. The underlined attributes are the respective primary keys.

Schema I: Registration (rollno, courses)

Field ‘courses’ is a set-valued attribute containing the set of courses a student has registered for.

Non-trivial functional dependency: rollno → courses

Schema II: Registration (rollno, courseid, email)

Non-trivial functional dependencies:

rollno, courseid → email

email → rollno

Schema III: Registration (rollno, courseid, marks, grade)

Non-trivial functional dependencies:

rollno, courseid → marks, grade

marks → grade

Schema IV: Regstration (rollno, courseid, credit)

Non-trivial functional dependencies:

rollno, courseid → credit

courseid → credit

Which one of the relational schemas above is in 3NF but not in BCNF?

Schema I
Schema II
Schema III
Schema IV
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Consider the database table by name Student given below:

Course_Id

Course_Title

Course_Fee

C01

C02

C03

C04

Oracle

Java

C++

Oracle

8000

5000

4000

7000

What is the output of the following SQL query?

SELECT Count (*)

FROM (

(SELECT Course_Id, Course_Title

FROM Student) AS S

NATURAL JOIN

(SELECT Course_Title, Course_Fee

FROM Student) AS T

);

5
6
7
16
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Consider a computer system with a 32 bit logical address and 4KB page size. The system supports up to 512MB of physical memory. What is the page table size using an inverted page table architecture, if 4 bits in each entry is used to indicate valid/invalid and permissions bits ?
2MB
384KB
272KB
2.125MB
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Consider the following page reference string: 7,2,3,1,2,5,3,4,6,7,7,1,0,5, 4,6,2,3,0,1. Assume demand paging with 3 frames, how many page faults would occur for the Optimal page replacement algorithm?
14
18
17
13
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Consider a system having m resources of the same type being shared by n processes. Resources can be requested and released by processes only one at a time. The system is deadlock free if and only if
The sum of all max needs is < m+n
The sum of all max needs is > m+n
Both of above
None of these
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Consider a process with 4 pages, numbered 0–3. The page table of the process consists of the following logical page number to physical frame number mappings: (0, 11), (1, 35), (2, 3), (3, 1). The process runs on a system with 16 bit virtual addresses and a page size of 256 bytes. The process accesses virtual address 770, which logical page number does this virtual address correspond to?
Page 3
Page 0
No entry found.
Page 1
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Consider a system running on a 48-bit CPU hardware. The OS uses hierarchical paging, with 8 KB pages and 4 byte page table entries. Which of the following is/are TRUE [MSQ]
The maximum number of levels in the page table of a process, including both the outermost page directory and the innermost page tables is 4.
The bits of the virtual address are used to index into each of the levels of the page table are 2, 11, 11, 11.
The maximum number of levels in the page table of a process, including both the outermost page directory and the innermost page tables is 3.
None
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
For a class C network if IP address of a computer is 200.99.39.112 and subnet mask is 255.255.255.224 the decimal value of the last octet of the last host of sixth subnet is
222
223
224
225
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
A network has a data transmission bandwidth of 80 × 109 bps. It uses CSMA/CD in the MAC layer. The maximum signal propagation time from one node to another node is 100 nsec. The minimum size of a frame in network is ________ bytes.

2000
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.00
There are 8 stations in a slotted LAN. Each station attempts to transmit with probability 0.3 in each time state. The probability that only one station transmits in a given time slot is _______ (up to 3 decimal places).
0.198
0.199
0.189
0.188
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Suppose that the stop-and-wait protocol is used on a link with a bit rate of 32 × 106 bps and 11 μsec propagation delay. Assume that the transmission time for the acknowledgement and the processing time at nodes is negligible. To achieve a link utilization of 50%, the minimum frame size required is __________ bytes.
88
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
There are 8 couples on vacation. They have planned to play a mixed double tennis game. The number of ways a match can be played that no husband and wife play in the same match is ---
840
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.00
The coefficient of x^3 in the expansion of 1/ ( 1+3x) is --
27
-27
8
-8
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
0
1
-∞
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
The number of faces of the graph ____

4
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.00

  1. Let propositions

p: Pint is smart

q: Pint is honest

r: Pint is great

Then choose the correct translations. [MSQ]

Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
The derivative of Sin(Cos x^2) is _______
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Choose the correct options [MSQ]
A linear system within variables with an unique solution is also a consistent system
A linear system with n variables and infinitely many solutions is also called a consistent system
A linear system with n variables and zero solution is also called a consistent system
Two systems of linear equations with same number of variables are called equivalent, if they have precisely the same set of solutions.
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
Rank of the matrix

is

3
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
A processor has 200 distinct instructions and 100 general purpose registers. A 32-bit instruction word has an opcode, two register operands and an immediate operand. The maximum possible value of the immediate operand field is__________
1023
1024
512
2047
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Consider a direct mapped cache with 16KB and a block size of 32 bytes. What is the block number to which the byte address 4800 map to?
100
150
256
511
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Consider the following statements: [MSQ]

Choose the correct statement/s

In a set associative cache, keeping cache size and associativity unchanged if the block size is decreased to half, the TAG directory size decreases
In a set associative cache, keeping cache size and associativity unchanged if the block size is decreased to half, the tag field in the physical address remains the same as before
In a set associative cache, keeping cache size and block size unchanged if the associativity is doubled, the tag field in the physical address increases by 1 bit.
In a set associative cache, keeping cache size and block size unchanged if the associativity is doubled, the overall TAG directory size remains the same as before
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
A processor has 32 registers and uses 32-bit instruction format. It has two types of instructions: I-type and R-type. Each I-type instruction contains an opcode, two register names, and a 7-bit immediate value. Each R-type instruction contains an opcode, one register name, and two 8-bit immediate values . If there are 64 distinct I-type opcodes, then the maximum number of distinct R-type opcodes is _____.
2044
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
Consider a 4 GHz (gigahertz) processor with a three-stage pipeline and stage latencies v1, v2, and v3 such that v1 = (4*v2)/9 = 3*v3. If the longest pipeline stage is split into three pipeline stages of equal latency, the new frequency is _________ GHz, ignoring delays in the pipeline registers
2
3
6
9
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Consider the following function.

f(w,x,y,z)= Σ(1,5,6,7,11,12,13,15)

Which of the following statements is valid?

xz is an implicant
xz is a prime implicant
xz is not an essential prime implicant
All of the above
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Consider the following functions

F(x,y)= x’y+xy’

G(x,y)= x+y

Which of the following statements is true?

The function G(x,y) covers the function H(x,y)
The function H(x,y) covers the function G(x,y)
The functions G(x,y ) and H(x,y) cover each other
None
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Consider the following multiplier.

M= 111100011000.

If Booth’s algorithm is used for multiplication, then the number of addition and subtraction operations required is______

1 ADD, 1 SUB
2 ADD, 1 SUB
1 ADD, 2 SUB
2 ADD, 2 SUB
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Consider the following function which is implemented by a 4x1 MUX with selection inputs S1=y and S0=z.

f(w,x,y,z)= wx’ + wy’ + yz’

Which of the following are valid inputs? [MSQ]

I0= w
I1= w
I2= 0
I3= w’
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
Number of covering functions possible for the function

f(x,y,z)= x ⊕y ⊕z is ___

4
8
32
16
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66