Consider two sets A = {2,4,5,6,7} and B = {10,11,12,13,14}. Two numbers are selected randomly, one from each set. What is the probability that the difference of two numbers will be 9?
0.20
0.12
0.18
0.16
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Find the missing number.

54

63

76

12

?

30

42

12

46

51
48
24
54
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
The total revenue of a company during 2015-2019 is shown in the below bar graph. If the total expenditure of the company in each year is 400 million rupees, then the aggregate profit of loss (in percentage) on the total expenditure of the company during 2015-2019 is (2MARKS)

25% loss
50% profit
50% loss
16.67% profit
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66

Two trains start from the station A and B and travel towards each other at speeds of 36 km/hr and 48 km/hr respectively. At the time of their meeting, the second train had travelled 72 km more than the first. The distance between A and B is:

620 km

550 km

600 km

504 km

Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
The given question consists followed by three statements. Read the question and decide which of the statements necessary to answer the question.

Question: What is M’s share of profit in a joint venture?

Statements:

(I) L started a business investing Rs 80,000.

(II) M joined him after 3 months.

(III) K joined after 4 months with a capital of Rs.1,20,000 and got Rs.6000 as his share profit.

All I, II, III
I and III only
II and III only
Data inadequate
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Find the missing term in the sequence

5, 11, 17, ?, 31, 41

19
21
23
25
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Fill in the blanks with the suitable word.

Moses was watching the rain rattle the window ____

plane
pane
plain
pain
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Tyrant: Ruler :: Disciplinarian : ?
Teacher
Driver
Policy maker
Servant
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
Read the passage and answer the question below.

PASSAGE

Serotonin is a neurotransmitter that gets the most attention. It is derived from the protein that is amino acid tryptophan and belongs to the inhibitor group of relaxing neurotransmitters that gives in a sense of happiness and stabilizes one’s mood. In case you feel irritated, reprieved, depression, have insomnia or low-self esteem, you might want to give your serotonin levels a boost to improve your overall well being. Serotonin also works as a natural appetite suppressant and its deficiency is closely related to obesity or weight gain. Also, when we have low serotonin levels, we start getting carbohydrate or sugar cravings because tryptophan - the building block from which serotonin is derived, can only get into our brain after we eat sweet or starchy foods. So, the next time you get a sugar or carb craving, observe how you are feeling, as any cravings are closely related to mood.

Let’s look at things that we can do to improve serotonin levels in our brain.

Question:

Name the feel-good hormone.

Tryptophan
Serotonin
Oxytocin
Endorphin
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33

Consider the following tree

If the post order traversal gives pq-rs*+ then the label of the nodes 1,2,3,… will be?

+,-,*,p,q,r,s
p,-,q,+,r,*,s
p,q,r,s,-,*,+
-,p,q,+,*,r,s
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
What is the maximum height of an AVL tree with 9 nodes ? Assume the height of the tree with a single node is 0.
4
5
3
6
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Let G be a graph with n vertices and m edges. What is the tightest upper bound on the running time on Depth First Search of G? Assume that the graph is represented using an adjacency matrix. n is number of nodes m is number of edges.
O(n)
O(n + m)
O(n^2 )
O(nm)
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Which of the following is/are FALSE [MSQ]
Multiplying all edge weights by a positive number might change the graph’s minimum spanning tree
A graph can have more than one shortest path between two vertices
A graph where all edge weights are distinct can have more than one shortest path between two vertices is unique

Inserting an element into a binary search tree of size n always takes O(log n) time.

Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
List of keys (K) = 6, 17, 23, 34, 48, 99 are inserted into the hash table by using hash function H=Kmod10. For resolving collisions linear probing is used. Number of collisions occurred when we insert new elements ‘103’ and ’33’ respectively.
2 and 7
3 and 6
4 and 5
1 and 6
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Consider a modification of the insertion sort algorithm, which performs a binary search instead of sequential to find the position where the element to be inserted in each pass of the algorithm. What is the worst case running time of this algorithm?
O(n)

O(nlogn)

O(n^2)
None of these
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
If the DFS finishing time f[u] < f[v] for two vertices u and v in a directed graph G, and u and v are in the same DFS tree in the DFS forest, then u is an ancestor of v in the depth first tree
True
False
None
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
The in-order traversal of some binary tree produced the sequence HFIEJGZ, and the post-order traversal of the same tree produced the sequence HIFJZGE. What will be the total number of nodes in the left subtree of the given tree?
2
3
4
None
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Choose the correct options from the below. [MSQ]
Every graph has a unique minimum spanning tree .
A graph may have more than one minimum spanning tree .
A graph with distinct weights has a unique minimum spanning tree .

A graph with distinct weights may have more than one minimum span-

ning tree .

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

Identify the correct statement(s).

Responsibilities of Transaction-management component: [MSQ]

Ensures that the database remains in a consistent state despite Power failures
Ensures that the database remains in a consistent state despite Operating system crashes
Ensure the consistency of the database during interaction among the concurrent transactions
Ensure consistency of database by orchestrating all access requests issued by the transactions
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.00

Which of the following statements is/are CORRECT?

S1: CHECK constraints enforce domain integrity

S2: UNIQUE constraints enforce the uniqueness of the values in a set of columns

Only S1
Only S2
Both S1 and S2
Neither S1 nor S2
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33

Consider following two relations r1 and r2:

Identify the number of tuples in r1 ⨝ r2?

5
6
7
20
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66

Find names of employees with years of experience greater than at least one employee in the Accounts department. Identify the correct, "SQL Query" for this statement. [MSQ]

SELECT name FROM employee WHERE years_exp IS GREATER THAN (SELECT DISTINCT years_exp FROM employee WHERE dept_name = 'Accounts');

SELECT distinct E.name FROM employee AS E, employee AS F WHERE E.years_exp > F.years_exp AND F.dept_name& = 'Accounts';

SELECT name FROM employee WHERE years_exp > GREATER ( SELECT years_exp FROM employee WHERE dept_name = 'Accounts');

SELECT name FROM employee WHERE years_exp > SOME ( SELECT years_exp FROM employee WHERE dept_name = 'Accounts');

Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
Which of the following is an example of a categorical data type?
Integer
Boolean
String
Continuous
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Which of the following is an example of a concept hierarchy?
Year -> Quarter -> Month -> Day
Product -> Sales -> Region
Customer -> Address -> Purchase History
Database -> Table -> Field
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
You have a dataset with values [100, 200, 300, 400, 500]. After applying min-max normalization with a range of [0, 1], what is the normalized value of 300?
0.5
1.0
0.1
1.5
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Which of the four normal distributions probability density curves shown below has the lowest variance?

1
2
3
4
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
The following table shows the results of a recently conducted study on the correlation of the number of hours spent driving with the risk of developing acute backache. Find the equation of the best fit line for this data.

Choose which of the options is correct?

y = 4.59x + 12.58
y = 4.39x + 11.62
y = 2.31x + 12.12
y = 3.12x + 10.22
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
The dance festival is in this coming weekend and you like dancing as everyone does. You want to decide whether to go to the festival or not. And the decision depends on the stated three factors: ( x1, x2, x3 are boolean variables )

x1: Is the weather good? (x1=1 means good)

x2: Will your friend accompany you? (x2=1 means she will accompany)

x3: Is the festival near public transit? (x3=1 means ‘Yes’)

All of the above variables/factors are binary. You are using the following rules for deciding whether to go or not (1 means you will go):

Output:

Which of the given options will be the values of the correct weights for deciding with threshold=5 using the above rules, given the condition that you won't go unless the weather is good, and will definitely go if the weather is good?

[6,2,2]
[3,1,2]
[1,2,2]
[4,2,5]
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
In single linkage hierarchical clustering, how many distance computations are required for a dataset of 55 points before any clusters are merged?
1485
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
Which of the following metrics do we have for finding dissimilarity between two clusters in hierarchical clustering?

  1. Single-link
  2. Complete-link
  3. Average-link
1 and 3
1 and 2
2 and 3
1, 2 and 3
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Regarding bias and variance, which of the following statements are true? [MSQ]
Models which overfit are more likely to have high bias
Models which overfit are more likely to have low bias
Models which overfit are more likely to have high variance
Models which overfit are more likely to have low variance
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
Consider a neural network that uses batch normalization. What is the primary purpose of batch normalization in this context?
To prevent overfitting by randomly dropping neurons
To normalize the input data to a fixed range
To standardize the inputs to a layer, improving training stability and convergence speed
To introduce non-linearity into the model
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Which of the following is not a property of the Hill-climbing algorithm?
Terminates when a peak is reached.
Does not look ahead of the immediate neighbors of the current state
Chooses randomly among the set of best successors.
Does backtrack.
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
A tautulogy
A contradiction
Invalid
Contingency
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
A tautulogy
A contradiction
Invalid
Contingency
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66

Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Consider the following graph in which we are searching from start state A to goal state G. The number over each edge is the transition cost. Find the path to the goal found by Depth First Search with full duplicate detection, which explores children in lexicographical order.

Choose the correct answer from below mentioned options:

ABDEG
ABEGD
ABEDG
ABGED
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Suppose A and B are two independent events with probabilities P(A) ≠ 0 and P(B) ≠ 0. Let A̅ and B̅ be

their complements. Which one of the following statements is FALSE?

P(A∩B) = P(A)P(B)
P(A|B) = P(A)
P(A∪B) = P(A) + P(B)
P(A̅∩ B̅) = P(A̅) P((B̅)
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Let x be a Gaussian random variable with mean 0 and variance 2. Let y = max(x, 0) where max(a, b)

is the maximum of a and b. The median of y is _____

0
1
2
None
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Consider a random variable X that takes values +1 and –1 with probability 0.5 each. The values of the

cumulative distribution function F(x) at x = – 1 and +1 are

0 and 0.5
0 and 1
0.5 and 1
0.25 and 0.75
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Suppose P is the number of cars per minute passing through a certain road junction between 5 PM and 6PM,

and P has a Poisson distribution with mean 3. What is the probability of observing fewer than 3 cars during any

given minute in this interval?

Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
The probability density function of a random variable, x is

The mean, x of the random variable is_________

1.066
2
1.56
2.5
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Let U and V be two independent zero mean Gaussian random variables of variances 1/4 and 1/9 respectively.

The probability P(3V ≥ 2U) is

4/9
1/2
2/3
5/9
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Three values of x and y are to be fitted in a straight line in the form y = a + bx by the method of least squares.

Given: Σx = 6, Σy = 21, Σx^2 = 14 and Σxy = 46, the value of a and b are respectively.

2 and 3
1 and 2
2 and 1
3 and 2
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Let the probability density function of a random variable, X, be given as:

where u(x) is the unit step function. Then the value of ' a ' and Probability {X ≤ 0},respectively, are

2, ½
4, ½
2, ¼
4, 1/4
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
For a given vector w = [1 2 3]^T , the vector normal to the plane defined by w^Tx = 1 is
[–2 –2 2]^T
[3 0 –1]^T
[3 2 1]^T
[1 2 3]^T
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Cholesky decomposition is carried out on the following square matrix [A].

Let lij and aij be the (i,j)th elements of matrices [L] and [A], respectively. If the element l22 of the decomposed lower triangular matrix [L] is 1.968, what is the value (rounded off to the nearest integer) of the element a22?

5
7
9
11
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
The maximum value of the determinant among all 2 × 2 real symmetric matrices with trace 14 is_____
49
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33

matrix is equal to the inverse of the matrix, [M]^T = [M]^–1. The value of x is given by

-4/5
-3/5
3/5
4/5
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33

Which of the following are the values of triplet (x,y,z) for the solution of equations? [MSQ]

x=3
y=3
z=1
y=-2
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00

Which of the following are valid values of λ? [MSQ]

λ = -1
λ = -2
λ = 4
λ = 5
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
Consider solving the following system of simultaneous equations using LU decomposition.

where L and U are denoted as

Which one of the following is the correct combination of values for L32, U33, and x1?

L32 = 2, U33 = – 1/2, x1 = –1
L32 = -1/2, U33 = 2, x1 = 0
L32 = 2, U33 = 2, x1 = –1
L32 = -1/2, U33 = – 1/2, x1 = 0
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
If V1 and V2 are 4-dimensional subspaces of a 6- dimensional vector space V, then the smallest possible

dimension of V1 በ V2 is _____

2
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
Which of the following functions is differentiable at all points?

Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
If y = ln(3x^2 +5x+7) , find dy/dx at x = 1 (answer upto two decimal places)
((0.73,0.75))
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.00

Which of the following options are true? [MSQ]

y′(0) = 2
y′(0) = -2
y′(1) = e^2/2
y′(1) = e^2/4
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
Find the area bounded by y=x^3 and x axis from x=−3 to x=−2. [Upto 2 decimals]
16.25
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
The diameter and height of a right circular cylinder are 3 cm and 4 cm respectively. The absolute error in each of these two measurements is 0.02 cm. The absolute error in the compute volume (in cm^3)

5.184
6.032
4.256
2.326
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
The function f(x) = 8 logex - x^2 + 3 attains its global minimum over the interval [1, e] at x = ________

(Here logex is the natural logarithm of x and e^2 = 7.39)

2
1
e
(1+e)/2
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Consider a number series, series = [2, 9, 4, 12, 7] and the result of GATE(series, 5)?

GATE(series, k)

if k = 1

return 4

else if series[k] < series[k-1] and series[k] % 2 == 0

return GATE(series, k-1) + 6

else if series[k] > series[k-2]

return GATE(series, k-1) * 2 + series[k]

else

return GATE(series, k-1) - 3

end if

55
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
What is the correct option for given python code

try:

x = int("NaN")

except ValueError:

print("Caught ValueError")

else:

print("No exception")

finally:

print("Finally block executed")

Caught ValueError
Caught ValueError\nFinally block executed
No exception\nFinally block executed
Error due to invalid literal for int conversion
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
What will be the output of the following code?

def tester(**kwargs):

for key, value in kwargs.items():

print(key, value, end = " ")

tester(USA = 1, China = 2, Korea = 3, New Zealand= 4)

USA 1 China 2 Korea 3 New Zealand 4
USA 1
New Zealand 4
None of the above
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Given the following Python code, what will be the output?

import copy

class MyClass:

def _init_(self, value):

self.value = value

original = MyClass([1, 2, 3])

shallow_copied = copy.copy(original)

deep_copied = copy.deepcopy(original)

shallow_copied.value.append(4)

deep_copied.value.append(5)

print(original.value)

print(shallow_copied.value)

print(deep_copied.value)

[1, 2, 3]

[1, 2, 3, 4]

[1, 2, 3, 5]

[1, 2, 3, 4]

[1, 2, 3, 4]

[1, 2, 3]

[1, 2, 3, 4]

[1, 2, 3]

[1, 2, 3, 5]

[1, 2, 3]

[1, 2, 3]

[1, 2, 3]

Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
You are given a list of dictionaries, each representing a person with their name and age. You want to sort this list of people first by age in descending order and then by name in ascending order, using a lambda function. Which of the following code snippets correctly performs this operation?
people = [{'name': 'John', 'age': 25}, {'name': 'Alice', 'age': 30}, {'name': 'Bob', 'age': 25}]

sorted_people = sorted(people, key=lambda x: (x['age'], x['name']))

people = [{'name': 'John', 'age': 25}, {'name': 'Alice', 'age': 30}, {'name': 'Bob', 'age': 25}]

sorted_people = sorted(people, key=lambda x: (-x['age'], x['name']))

people = [{'name': 'John', 'age': 25}, {'name': 'Alice', 'age': 30}, {'name': 'Bob', 'age': 25}]

sorted_people = people.sort(key=lambda x: (x['age'], x['name']), reverse=True)

people = [{'name': 'John', 'age': 25}, {'name': 'Alice', 'age': 30}, {'name': 'Bob', 'age': 25}]

sorted_people = sorted(people, key=lambda x: (x['name'], -x['age']))

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