Question text and figures as in the official paper, with the answer from the official key. Worked solutions for every question are in your report after you take the paper as a 3-hour test.
In the given figure, the numbers associated with the rectangle, triangle, and ellipse are 1, 2, and 3, respectively. Which one among the given options is the most appropriate combination of P, Q, and R?
(A)
P = 6; Q = 5; R = 3
(B)
P = 5; Q = 6; R = 3
(C)
P = 3; Q = 6; R = 6
(D)
P = 5; Q = 3; R = 6
Answer (official key): A
Worked solution: in your report after you take this paper.
Q2 · General Aptitude · MCQ · 1 mark
Courage : Bravery :: Yearning : __________
Select the most appropriate option to complete the analogy.
(A)
Longing
(B)
Yelling
(C)
Yawning
(D)
Glaring
Answer (official key): A
Worked solution: in your report after you take this paper.
Q3 · General Aptitude · MCQ · 1 mark
A 4 × 4 digital image has pixel intensities (U) as shown below. The number of pixels with U≤4 is:
0
1
0
2
4
7
3
3
5
5
4
4
6
7
3
2
(A)
3
(B)
8
(C)
11
(D)
9
Answer (official key): C
Worked solution: in your report after you take this paper.
Q4 · General Aptitude · MCQ · 1 mark
We __________ tennis in the lawn when it suddenly started to rain.
Select the most appropriate option to complete the above sentence.
(A)
have been playing
(B)
had been playing
(C)
would have been playing
(D)
could be playing
Answer (official key): B
Worked solution: in your report after you take this paper.
Q5 · General Aptitude · MCQ · 1 mark
A rectangle has a length L and a width W, where L>W. If the width, W, is increased by 10%, which one of the following statements is correct for all values of L and W?
(A)
Perimeter increases by 10%.
(B)
Length of the diagonals increases by 10%.
(C)
Area increases by 10%.
(D)
The rectangle becomes a square.
Answer (official key): C
Worked solution: in your report after you take this paper.
Q6 · General Aptitude · MCQ · 2 marks
If a real variable x satisfies
3x2=27×9x,
then the value of
(2x)22x2
is:
(A)
2−1
(B)
20
(C)
23
(D)
215
Answer (official key): C
Worked solution: in your report after you take this paper.
Q7 · General Aptitude · MCQ · 2 marks
Weight of a person can be expressed as a function of their age. The function usually varies from person to person. Suppose this function is identical for two brothers, and it monotonically increases till the age of 50 years and then it monotonically decreases. Let a1 and a2 (in years) denote the ages of the brothers and a1<a2.
Which one of the following statements is correct about their age on the day when they attain the same weight?
A regular dodecagon (12-sided regular polygon) is inscribed in a circle of radius r cm as shown in the figure. The side of the dodecagon is d cm. All the triangles (numbered 1 to 12) in the figure are used to form squares of side r cm and each numbered triangle is used only once to form a square.
The number of squares that can be formed and the number of triangles required to form each square, respectively, are:
Column-I has statements made by Shanthala; and, Column-II has responses given by Kanishk.
Column-I
Column-II
P. This house is in a mess.
1. Alright, I won’t bring it up during our conversations.
Q. I am not happy with the marks given to me.
2. Well, you can easily look it up.
R. Politics is a subject I avoid talking about.
3. No problem, let me clear it up for you.
S. I don’t know what this word means.
4. Don’t worry, I will take it up with your teacher.
Identify the option that has the correct match between Column-I and Column-II.
(A)
P – 2; Q – 3; R – 1; S – 4
(B)
P – 3; Q – 4; R – 1; S – 2
(C)
P – 4; Q – 1; R – 2; S – 3
(D)
P – 1; Q – 2; R – 4; S – 3
Answer (official key): B
Worked solution: in your report after you take this paper.
Q10 · General Aptitude · MCQ · 2 marks
The number of patients per shift (X) consulting Dr. Gita in her past 100 shifts is shown in the figure. If the amount she earns is ₹ 1000(X−0.2), what is the average amount (in ₹) she has earned per shift in the past 100 shifts?
Note: The figure shown is representative.
(A)
6,100
(B)
6,300
(C)
6,000
(D)
6,500
Answer (official key): A
Worked solution: in your report after you take this paper.
Q11 · Calculus and Optimization · MCQ · 1 mark
Let
f(x)=2ex−e−x,x∈R.
Let f(k)(a) denote the kth derivative of f evaluated at a.
What is the value of f(10)(0)? (Note: ! denotes factorial)
(A)
0
(B)
1
(C)
10!1
(D)
10!2
Answer (official key): A
Worked solution: in your report after you take this paper.
Q12 · Programming, Data Structures and Algorithms · MCQ · 1 mark
Consider a hash table of size 10 with indices {0,1,…,9}, with the hash function
h(x)=3x(mod10),
where linear probing is used to handle collisions. The hash table is initially empty and then the following sequence of keys is inserted into the hash table: 1, 4, 5, 6, 14, 15. The indices where the keys 14 and 15 are stored are, respectively
(A)
2 and 5
(B)
2 and 6
(C)
4 and 5
(D)
4 and 6
Answer (official key): D
Worked solution: in your report after you take this paper.
Q13 · Database Management and Warehousing · MCQ · 1 mark
If a relational decomposition is not dependency-preserving, which one of the following relational operators will be executed more frequently in order to maintain the dependencies?
(A)
Selection
(B)
Projection
(C)
Join
(D)
Set union
Answer (official key): C
Worked solution: in your report after you take this paper.
Q14 · Linear Algebra · MCQ · 1 mark
The sum of the elements in each row of A∈Rn×n is 1. If B=A3−2A2+A, which one of the following statements is correct (for x∈Rn)?
(A)
The equation Bx=0 has no solution
(B)
The equation Bx=0 has exactly two solutions
(C)
The equation Bx=0 has infinitely many solutions
(D)
The equation Bx=0 has a unique solution
Answer (official key): C
Worked solution: in your report after you take this paper.
Q15 · Artificial Intelligence · MCQ · 1 mark
Let p and q be any two propositions. Consider the following propositional statements.
S1:p→q,S2:¬p∧q,S3:¬p∨q,S4:¬p∨¬q,
where ∧ denotes conjunction (AND operation), ∨ denotes disjunction (OR operation), and ¬ denotes negation (NOT operation). Which one of the following options is correct? (Note: ≡ denotes logical equivalence)
(A)
S1≡S3
(B)
S2≡S3
(C)
S2≡S4
(D)
S1≡S4
Answer (official key): A
Worked solution: in your report after you take this paper.
Q16 · Probability and Statistics · MCQ · 1 mark
Let X be a continuous random variable whose cumulative distribution function (CDF) FX(x), for some t, is given as follows:
FX(x)=⎩⎨⎧0,4−tx−t,1,x≤tt≤x≤4x≥4
If the median of X is 3, then what is the value of t?
(A)
2
(B)
1
(C)
-1
(D)
0
Answer (official key): A
Worked solution: in your report after you take this paper.
Q17 · Probability and Statistics · MCQ · 1 mark
Let X=aZ+b, where Z is a standard normal random variable, and a,b are two unknown constants. It is given that
E[X]=1,E[(X−E[X])Z]=−2,E[(X−E[X])2]=4,
where E[X] denotes the expectation of random variable X. The values of a,b are:
(A)
a=−2,b=1
(B)
a=2,b=−1
(C)
a=−2,b=−1
(D)
a=1,b=1
Answer (official key): A
Worked solution: in your report after you take this paper.
Q18 · Probability and Statistics · MCQ · 1 mark
Suppose X and Y are random variables. The conditional expectation of X given Y is denoted by E[X∣Y]. Then E[E[X∣Y]] equals
(A)
E[X∣Y]
(B)
E[Y]E[X]
(C)
E[X]
(D)
E[Y]
Answer (official key): C
Worked solution: in your report after you take this paper.
Q19 · Database Management and Warehousing · MCQ · 1 mark
Consider the following three relations:
Car (model, year, serial, color)
Make (maker, model)
Own (owner, serial)
A tuple in Car represents a specific car of a given model, made in a given year, with a serial number and a color. A tuple in Make specifies that a maker company makes cars of a certain model. A tuple in Own specifies that an owner owns the car with a given serial number. Keys are underlined; (owner,serial) together form key for Own. (./) denotes natural join.
Which of the following statements is/are correct in a Bayesian network?
(A)
Variable elimination is an approximate inference algorithm
(B)
Gibbs sampling is an exact inference algorithm
(C)
Variable elimination is used to determine conditional probabilities
(D)
Rejection sampling is an approximate inference algorithm
Answer (official key): C, D
Worked solution: in your report after you take this paper.
Q23 · Machine Learning · MCQ · 1 mark
Consider designing a linear classifier
y=sign(f(x;w,b)),f(x;w,b)=w⊤x+b
on a dataset D={(x1,y1),(x2,y2),…,(xN,yN)}, xi∈Rd, yi∈{+1,−1}, i=1,2,…,N. Recall that the sign function outputs +1 if the argument is positive, and −1 if the argument is non-positive. The parameters w and b are updated as per the following training algorithm:
wnew=wold+ynxn,bnew=bold+yn
whenever sign(f(xn;wold,bold))=yn. In other words, whenever the classifier wrongly predicts a sample (xn,yn) from the dataset, wold gets updated to wnew, and likewise bold gets updated to bnew. Consider the case (xn,+1), f(xn;wold,bold)<0. Then
(A)
f(xn;wnew,bnew)>f(xn;wold,bold)
(B)
f(xn;wnew,bnew)<f(xn;wold,bold)
(C)
f(xn;wnew,bnew)=f(xn;wold,bold)
(D)
ynf(xn;wold,bold)>1
Answer (official key): A
Worked solution: in your report after you take this paper.
Q24 · Probability and Statistics · MCQ · 1 mark
It is given that P(X≥2)=0.25 for an exponentially distributed random variable X with E[X]=λ1, where E[X] denotes the expectation of X. What is the value of λ? (ln denotes natural logarithm)
(A)
ln2
(B)
ln4
(C)
ln3
(D)
ln0.25
Answer (official key): A
Worked solution: in your report after you take this paper.
Q25 · Machine Learning · MSQ · 1 mark
Let C1 and C2 be two sets of objects. Let D(x,y) be a measure of dissimilarity between two objects x and y. Consider the following definitions of dissimilarity between C1 and C2:
Worked solution: in your report after you take this paper.
Q26 · Programming, Data Structures and Algorithms · MCQ · 1 mark
Consider the following Python declarations of two lists.
A = [1,2,3]
B = [4,5,6]
Which one of the following statements results in A = [1, 2, 3, 4, 5, 6]?
(A)
A.extend(B)
(B)
A.append(B)
(C)
A.update(B)
(D)
A.insert(B)
Answer (official key): A
Worked solution: in your report after you take this paper.
Q27 · Programming, Data Structures and Algorithms · MSQ · 1 mark
For which of the following inputs does binary search take time O(logn) in the worst case?
(A)
An array of n integers in any order
(B)
A linked list of n integers in any order
(C)
An array of n integers in increasing order
(D)
A linked list of n integers in increasing order
Answer (official key): C
Worked solution: in your report after you take this paper.
Q28 · Programming, Data Structures and Algorithms · MSQ · 1 mark
Suppose that insertion sort is applied to the array [1, 3, 5, 7, 9, 11, x, 15, 13] and it takes exactly two swaps to sort the array. Select all possible values of x.
(A)
10
(B)
12
(C)
14
(D)
16
Answer (official key): A, C
Worked solution: in your report after you take this paper.
Q29 · Linear Algebra · MSQ · 1 mark
Let A=In+xx⊤, where In is the n×n identity matrix and x∈Rn, x⊤x=1. Which of the following options is/are correct?
(A)
Rank of A is n
(B)
A is invertible
(C)
0 is an eigenvalue of A
(D)
A−1 has a negative eigenvalue
Answer (official key): A, B
Worked solution: in your report after you take this paper.
Q30 · Calculus and Optimization · MSQ · 1 mark
Consider two functions f:R→R and g:R→(1,∞). Both functions are differentiable at a point c. Which of the following functions is/are ALWAYS differentiable at c? The symbol ⋅ denotes product and the symbol ∘ denotes composition of functions.
(A)
f±g
(B)
f⋅g
(C)
gf
(D)
f∘g+g∘f
Answer (official key): A, B, C
Worked solution: in your report after you take this paper.
Q31 · Database Management and Warehousing · Numerical · 1 mark
On a relation named Loan of a bank:
loan_number
branch_name
amount
L11
Banjara Hills
90000
L14
Kondapur
50000
L15
SR Nagar
40000
L22
SR Nagar
25000
L23
Balanagar
80000
L25
Kondapur
70000
L19
SR Nagar
65000
the following SQL query is executed.
SELECT L1.loan_number
FROM Loan L1
WHERE L1.amount > (
SELECT MAX(L2.amount)
FROM Loan L2
WHERE L2.branch_name = 'SR Nagar'
);
The number of rows returned by the query is __________.
Q32 · Calculus and Optimization · Numerical · 1 mark
t→+∞lim(t2+t−t)=
(Round off to one decimal place)
Answer (official key): 0.5
Worked solution: in your report after you take this paper.
Q33 · Machine Learning · Numerical · 1 mark
Given data {(−1,1),(2,−5),(3,5)} of the form (x,y), we fit a model y=wx using linear least-squares regression. The optimal value of w is __________.
(Round off to three decimal places)
Answer (official key): 0.285 to 0.287
Worked solution: in your report after you take this paper.
Q34 · Probability and Statistics · Numerical · 1 mark
There are three boxes containing white balls and black balls.
Box-1 contains 2 black and 1 white ball.
Box-2 contains 1 black and 2 white balls.
Box-3 contains 3 black and 3 white balls.
In a random experiment, one of these boxes is selected, with probabilities of 21 for Box-1, 61 for Box-2, and 31 for Box-3. A ball is drawn at random from the selected box. Given that the ball drawn is white, the probability that it is drawn from Box-2 is __________.
(Round off to two decimal places)
Answer (official key): 0.25
Worked solution: in your report after you take this paper.
Q35 · Machine Learning · Numerical · 1 mark
The naive Bayes classifier is used to solve a two-class classification problem with class labels y1,y2. Suppose the prior probabilities are
P(y1)=31,P(y2)=32.
Assuming a discrete feature space with
P(x∣y1)=43,P(x∣y2)=41
for a specific feature vector x. The probability of misclassifying x is __________.
(Round off to two decimal places)
Answer (official key): 0.39 to 0.41
Worked solution: in your report after you take this paper.
Q36 · Linear Algebra · MCQ · 2 marks
Let {x1,x2,…,xn} be a set of linearly independent vectors in Rn. Let the (i,j)-th element of matrix A∈Rn×n be given by Aij=xi⊤xj, 1≤i,j≤n. Which one of the following statements is correct?
(A)
A is invertible
(B)
0 is a singular value of A
(C)
Determinant of A is 0
(D)
z⊤Az=0 for some non-zero z∈Rn
Answer (official key): A
Worked solution: in your report after you take this paper.
Q37 · Artificial Intelligence · MCQ · 2 marks
Consider game trees Tree-1 and Tree-2 as shown. The first level is a MAX agent and the second level is a MIN agent. The value in the square node is the output of the utility function.
For what ranges of x and y, the right child of node B and the right child of node E will be pruned by alpha-beta pruning algorithm?
Consider the cumulative distribution function (CDF) of a random variable X:
FX(x)=⎩⎨⎧0,41(x+1)2,1,x≤−1−1≤x≤1x≥1
The value of P(X2≤0.25) is
(A)
0.625
(B)
0.25
(C)
0.5
(D)
0.5625
Answer (official key): C
Worked solution: in your report after you take this paper.
Q39 · Machine Learning · MCQ · 2 marks
Consider the neural network shown in the figure with inputs: u,v, weights: a,b,c,d,e,f, and output: y. R denotes the ReLU function, R(x)=max(0,x).
Given u=2, v=3, a=1, b=1, c=1, d=−1, e=4, f=−1, which one of the following is correct?
(A)
∂y/∂a = 8, ∂y/∂f = 0
(B)
∂y/∂a = 1, ∂y/∂f = 0
(C)
∂y/∂a = 1, ∂y/∂f = -1
(D)
∂y/∂a = 2, ∂y/∂f = -1
Answer (official key): A
Worked solution: in your report after you take this paper.
Q40 · Linear Algebra · MCQ · 2 marks
Let A∈Rn×n be such that A3=A. Which one of the following statements is ALWAYS correct?
(A)
A is invertible
(B)
Determinant of A is 0
(C)
The sum of the diagonal elements of A is 1
(D)
A and A2 have the same rank
Answer (official key): D
Worked solution: in your report after you take this paper.
Q41 · Artificial Intelligence · MCQ · 2 marks
The state graph shows the action cost along the edges and the heuristic function h associated with each state.
Suppose A* algorithm is applied on this state graph using priority queue to store the frontier. In what sequence are the nodes expanded?
(A)
S,A,E,C,B,D,G
(B)
S,E,A,C,B,D,G
(C)
S,A,E,B,C,D,G
(D)
S,A,B,E,C,D,G
Answer (official key): C
Worked solution: in your report after you take this paper.
Q42 · Probability and Statistics · MCQ · 2 marks
A random experiment consists of throwing 100 fair dice, each die having six faces numbered 1 to 6. An event A represents the set of all outcomes where at least one of the dice shows a 1. Then, P(A)=
(A)
0
(B)
1
(C)
1−(65)100
(D)
(65)100
Answer (official key): C
Worked solution: in your report after you take this paper.
Q43 · Probability and Statistics · MCQ · 2 marks
For x∈R, the floor function is denoted by f(x)=⌊x⌋ and defined as follows
⌊x⌋=k,k≤x<k+1,
where k is an integer. Let Y=⌊X⌋, where X is an exponentially distributed random variable with mean ln101, where ln denotes natural logarithm. For any positive integer ℓ, one can write the probability of the event Y=ℓ as follows
P(Y=ℓ)=qℓ(1−q)
The value of q is
(A)
0.1
(B)
0.01
(C)
0.5
(D)
0.434
Answer (official key): A
Worked solution: in your report after you take this paper.
Q44 · Probability and Statistics · MCQ · 2 marks
A random variable X is said to be distributed as Bernoulli(θ), denoted by X∼Bernoulli(θ), if
P(X=1)=θ,P(X=0)=1−θ
for 0<θ<1. Let
Y=i=1∑300Xi,
where Xi∼Bernoulli(θ), i=1,2,…,300 be independent and identically distributed random variables with θ=0.25. The value of P(60≤Y≤90), after approximation through Central Limit Theorem, is given by
Recall that
ϕ(x)=2π1∫−∞xe−t2/2dt
(A)
ϕ(2)−ϕ(−2)
(B)
ϕ(1)−ϕ(−1)
(C)
ϕ(3)−ϕ(−3)
(D)
ϕ(90)−ϕ(60)
Answer (official key): A
Worked solution: in your report after you take this paper.
Q45 · Probability and Statistics · MCQ · 2 marks
Let Y=Z2, Z=σX−μ, where X is a normal random variable with mean μ and variance σ2. The variance of Y is
(A)
1
(B)
2
(C)
3
(D)
4
Answer (official key): B
Worked solution: in your report after you take this paper.
Q46 · Linear Algebra · MSQ · 2 marks
Let x1,x2,x3,x4,x5 be a system of orthonormal vectors in R10. Consider the matrix
A=x1x1⊤+⋯+x5x5⊤.
Which of the following statements is/are correct?
(A)
Singular values of A are also its eigenvalues
(B)
Singular values of A are either 0 or 1
(C)
Determinant of A is 1
(D)
A is invertible
Answer (official key): A, B
Worked solution: in your report after you take this paper.
Q47 · Calculus and Optimization · MSQ · 2 marks
Let f:R→R be a twice-differentiable function and suppose its second derivative satisfies f′′(x)>0 for all x∈R. Which of the following statements is/are ALWAYS correct?
(A)
f has a local minima
(B)
There do not exist distinct x,y such that f′(x)=f′(y)=0
(C)
f has at most one global minimum
(D)
f has at most one local minimum
Answer (official key): B, C, D
Worked solution: in your report after you take this paper.
Q48 · Programming, Data Structures and Algorithms · MCQ · 2 marks
Consider the following Python code snippet.
A = {"this", "that"}
B = {"that", "other"}
C = {"other", "this"}
while "other" in C:
if "this" in A:
A, B, C = A-B, B-C, C-A
if "that" in B:
A, B, C = C|A, A|B, B|C
When the above program is executed, at the end, which of the following sets contains "this"?
(A)
Only A
(B)
Only B
(C)
Only C
(D)
A, C
Answer (official key): B
Worked solution: in your report after you take this paper.
Q49 · Programming, Data Structures and Algorithms · MSQ · 2 marks
Let G be a simple, unweighted, and undirected graph. A subset of the vertices and edges of G are shown below.
It is given that a−b−c−d is a shortest path between a and d; e−f−g−h is a shortest path between e and h; a−f−c−h is a shortest path between a and h. Which of the following is/are NOT the edges of G?
(A)
(b,d)
(B)
(b,g)
(C)
(b,h)
(D)
(e,g)
Answer (official key): A, C, D
Worked solution: in your report after you take this paper.
Q50 · Database Management and Warehousing · MSQ · 2 marks
Consider the following two relations, named Customer and Person, in a database:
Person ( aadhaar CHAR(12) PRIMARY KEY, name VARCHAR(32))
aadhaar is a candidate key in the Customer relation
(B)
phone can be NULL in the Customer relation
(C)
aadhaar is a candidate key in the Person relation
(D)
aadhaar can be NULL in the Person relation
Answer (official key): B, C
Worked solution: in your report after you take this paper.
Q51 · Calculus and Optimization · MSQ · 2 marks
Consider the function
f(x)=3x3+27x2+10x+2133,x∈[−8,0].
Which of the following statements is/are correct?
(A)
The maximum value of f is attained at x=−5
(B)
The minimum value of f is attained at x=−2
(C)
The maximum value of f is 133/2
(D)
The minimum value of the derivative of f is attained at x=−7/2
Answer (official key): C, D
Worked solution: in your report after you take this paper.
Q52 · Machine Learning · MSQ · 2 marks
Consider a two-class problem in Rd with class labels red and green. Let μred and μgreen be the means of the two classes. Given test sample x∈Rd, a classifier calculates the squared Euclidean distance between x and the means of the two classes and assigns the class label that the sample x is closest to. That is, the classifier computes
f(x)=∥μred−x∥22−∥μgreen−x∥22
and assigns the label red to x if f(x)<0, and green otherwise. Which of the following statements is/are correct?
(A)
The sample x=0 is assigned the label green if ∥μred∥<∥μgreen∥
(B)
f is a linear function of x
(C)
f(x)=w⊤x+b, where w and b are functions of the class means
(D)
f is a quadratic polynomial in x
Answer (official key): B, C
Worked solution: in your report after you take this paper.
Q53 · Machine Learning · MSQ · 2 marks
Consider designing a linear binary classifier
f(x)=sign(w⊤x+b),x∈R2
on the following training data:
Class-1:
{(20),(02),(22)},
Class-2:
{(00)}.
Hard-margin support vector machine (SVM) formulation is solved to obtain w and b. Which of the following options is/are correct?
(A)
w=(44) and b=1
(B)
The number of support vectors is 3
(C)
The margin is 2
(D)
Training accuracy is 98%
Answer (official key): B, C
Worked solution: in your report after you take this paper.
Q54 · Probability and Statistics · MSQ · 2 marks
Consider a coin-toss experiment where the probability of head showing up is p. In the ith coin toss, let Xi=1 if head appears, and Xi=0 if tail appears. Consider
p^b=n1i=1∑nXi
where n is the total number of independent coin tosses. Which of the following statements is/are correct?
(A)
E[p^b]=p
(B)
E[p^b]=np
(C)
As n increases, variance of p^b decreases
(D)
Variance of p^b does not depend on n
Answer (official key): A, C
Worked solution: in your report after you take this paper.
Q55 · Linear Algebra · MSQ · 2 marks
An n×n matrix A with real entries satisfies the property:
∥Ax∥2=∥x∥2,for all x∈Rn,
where ∥⋅∥ denotes the Euclidean norm. Which of the following statements is/are ALWAYS correct?
(A)
A must be orthogonal
(B)
A=I is the only solution
(C)
The eigenvalues of A are either +1 or −1
(D)
A has full rank
Answer (official key): A, D
Worked solution: in your report after you take this paper.
Q56 · Database Management and Warehousing · MSQ · 2 marks
Consider a database relation R with attributes ABCDEFG, and having the following functional dependencies:
A→BCEF,E→DG,BC→A
Which of the following statements is/are correct?
(A)
A is the only candidate key of R
(B)
A,BC are the candidate keys of R
(C)
A,BC,E are the candidate keys of R
(D)
Relation R is not in Boyce-Codd Normal Form (BCNF)
Answer (official key): B, D
Worked solution: in your report after you take this paper.
Q57 · Database Management and Warehousing · MCQ · 2 marks
Consider a fact table in an OLAP application: Facts(D1, D2, val), where D1 and D2 are its dimension attributes and val is a dependent attribute. Suppose attribute D1 takes 3 values and D2 takes 2 values, and all combinations of these values are present in the table Facts. How many tuples are there in the result of the following query?
SELECT D1, D2, sum(val)
FROM Facts
GROUP BY CUBE (D1, D2);
(A)
1
(B)
6
(C)
9
(D)
12
Answer (official key): D
Worked solution: in your report after you take this paper.
Q58 · Machine Learning · MSQ · 2 marks
Which of the following statements is/are correct about the rectified linear unit (ReLU) activation function defined as ReLU(x)=max(x,0), where x∈R?
(A)
ReLU is continuous everywhere
(B)
ReLU is differentiable everywhere
(C)
ReLU is not differentiable at x=0
(D)
ReLU(x)=ReLU(ax), for all a∈R
Answer (official key): A, C
Worked solution: in your report after you take this paper.
Q59 · Probability and Statistics · Numerical · 2 marks
A bag contains 5 white balls and 10 black balls. In a random experiment, n balls are drawn from the bag one at a time with replacement. Let Sn denote the total number of black balls drawn in the experiment.
The expectation of S100 denoted by E[S100]= __________
(Round off to one decimal place)
Answer (official key): 66.6 to 66.7
Worked solution: in your report after you take this paper.
Q60 · Programming, Data Structures and Algorithms · Numerical · 2 marks
Consider the following Python code snippet.
def f(a,b):
if (a==0):
return b
if (a%2==1):
return 2*f((a-1)/2,b)
return b+f(a-1,b)
print(f(15,10))
The value printed by the code snippet is __________
(Answer in integer)
Answer (official key): 160
Worked solution: in your report after you take this paper.
Q61 · Database Management and Warehousing · Numerical · 2 marks
Consider the following tables, Loan and Borrower, of a bank.
The number of tuples returned by the above relational algebra query is __________
(Answer in integer)
Answer (official key): 1
Worked solution: in your report after you take this paper.
Q62 · Programming, Data Structures and Algorithms · Numerical · 2 marks
Consider the following pseudocode.
Create empty stack S
Set x=0, flag=0, sum=0
Push x onto S
while (S is not empty){
if (flag equals 0){
Set x = x+1
Push x onto S
}
if (x equals 8):
Set flag=1
if (flag equals 1){
x = Pop(S)
if (x is odd):
Pop(S)
Set sum = sum + x
}
}
Output sum
The value of sum output by a program executing the above pseudocode is __________
(Answer in integer)
Answer (official key): 24
Worked solution: in your report after you take this paper.
Q63 · Calculus and Optimization · Numerical · 2 marks
Let f:R→R be such that
∣f(x)−f(y)∣≤(x−y)2
for all x,y∈R. Then
f(1)−f(0)=
(Answer in integer)
Answer (official key): 0
Worked solution: in your report after you take this paper.
Q64 · Programming, Data Structures and Algorithms · Numerical · 2 marks
Consider a directed graph G=(V,E), where
V={0,1,2,…,100}
and
E={(i,j):0<j−i≤2,for all i,j∈V}.
Suppose the adjacency list of each vertex is in decreasing order of vertex number, and depth-first search (DFS) is performed at vertex 0.
The number of vertices that will be discovered after vertex 50 is __________
(Answer in integer)
Answer (official key): 75
Worked solution: in your report after you take this paper.
Q65 · Machine Learning · Numerical · 2 marks
Let D={x(1),…,x(n)} be a dataset of n observations where each x(i)∈R100. It is given that
i=1∑nx(i)=0.
The covariance matrix computed from D has eigenvalues
λi=1002−i,1≤i≤100.
Let u∈R100 be the direction of maximum variance with
u⊤u=1.
The value of
n1i=1∑n(u⊤x(i))2=
(Answer in integer)
Answer (official key): 100
Worked solution: in your report after you take this paper.