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.
Worked solution: in your report after you take this paper.
Q2 · General Aptitude · MCQ · 1 mark
Consider two distinct positive real numbers m,n, with m>n.
Let
x=nlog10(m)andy=mlog10(n).
The relation between x and y is _______.
(A)
x>y
(B)
x<y
(C)
x=y
(D)
x=log10(y)
Answer (official key): C
Worked solution: in your report after you take this paper.
Q3 · General Aptitude · MCQ · 1 mark
The four pieces of a puzzle are shown in the figure below.
Which one of the figures labelled as P, Q, R, and S can be constructed by using each of the four pieces only once without overlaps?
(A)
P
(B)
Q
(C)
R
(D)
S
Answer (official key): A
Worked solution: in your report after you take this paper.
Q4 · General Aptitude · MCQ · 1 mark
‘If his latest movie had been a commercial success, the actor would have made enough money to sponsor his next movie.’
Based only on the above sentence, which one of the following statements is true?
(A)
The actor will certainly sponsor his next movie.
(B)
His latest movie was a commercial success.
(C)
The actor made enough money from his latest movie.
(D)
His latest movie was not commercially successful.
Answer (official key): D
Worked solution: in your report after you take this paper.
Q5 · General Aptitude · MCQ · 1 mark
The product of the digits of a three-digit number is 70. The sum of the digits of this three-digit number is _____
(A)
12
(B)
14
(C)
16
(D)
18
Answer (official key): B
Worked solution: in your report after you take this paper.
Q6 · General Aptitude · MCQ · 2 marks
‘My friend and I parted __ the door __ the cabin that I had rented __ the night.’
Choose the option with the correct sequence of words to fill the blanks.
(A)
at; of; for
(B)
for; at; of
(C)
of; for; in
(D)
in; of; for
Answer (official key): A
Worked solution: in your report after you take this paper.
Q7 · General Aptitude · MCQ · 2 marks
P,Q,R,S,X, and Y are distinct single-digit whole numbers taking values from 0 to 9.
PQ is a two-digit number with Q being in the units place and P in the tens place. Similarly, RS is a two-digit number.
It is known that PQ and RS are consecutive numbers and
(PQ)2+(RS)2=XYP,
with XYP being a three-digit number.
The value of Y is __________
(A)
4
(B)
5
(C)
6
(D)
7
Answer (official key): C
Worked solution: in your report after you take this paper.
Q8 · General Aptitude · MCQ · 2 marks
In the given figure, P, Q, and R are three points on a circle of radius 10 cm with O as its center, PQ=RQ, and ∠PQR=45∘. The figure is representative.
The area of the shaded region PQRO is ______________ cm2.
Rishi and Swathi are students of Class 5. Pavan and Tanvi are students of Class 4. Rishi and Pavan are boys. Swathi and Tanvi are girls. The four students played a total of three games of chess. The games were played one after another. A player who lost a game did not participate in any more games. It was observed that:
(i) the first game was the only game where two students of the same class played against each other,
(ii) the students of Class 5 won more games than the students of Class 4, and
(iii) the boys won two games and the girls won one game.
The student who did not lose any game is __________.
Which of the following is the correct output of this program?
(A)
[1]
[2]
[3]
(B)
[1]
[1, 2]
[3]
(C)
[1]
[2]
[1, 2, 3]
(D)
[1]
[1, 2]
[1, 3]
Answer (official key): B
Worked solution: in your report after you take this paper.
Q13 · Machine Learning · MCQ · 1 mark
For a classification problem, Principal Component Analysis (PCA) has been used to reduce the dimensionality of a feature space from 100 to 10.
Which of the following options is true about the angle θ between the first and the tenth principal components?
(A)
θ=0∘
(B)
θ=90∘
(C)
90∘<θ≤180∘
(D)
0∘<θ<90∘
Answer (official key): B
Worked solution: in your report after you take this paper.
Q14 · Probability and Statistics · MCQ · 1 mark
Suppose that a computer program provides a non-negative and integer-valued random solution to the equation
n1+n2+n3+n4=20.
Which of the following is the probability that all of n1,n2,n3,n4 in the provided solution are positive?
(A)
(323)(319)
(B)
(424)(420)
(C)
(323)(320)
(D)
(424)(419)
Answer (official key): A
Worked solution: in your report after you take this paper.
Q15 · Programming, Data Structures and Algorithms · MCQ · 1 mark
Consider that the quick sort algorithm is used to sort an array of n distinct randomly ordered elements. In every call, the pivot is chosen as the first element of the current subarray.
Let T(n) denote the expected time to sort the array. Assume that the time to partition is linear in the size of the current subarray.
Which of the following recurrence relations correctly represents T(n) in this scenario?
(A)
T(n)=T(1)+T(n−1)+O(n)
(B)
T(n)=T(4n)+T(43n)+O(n)
(C)
T(n)=2T(2n)+O(n)
(D)
T(n)=n1∑k=0n−1[T(k)+T(n−k−1)]+O(n)
Answer (official key): D
Worked solution: in your report after you take this paper.
Q16 · Database Management and Warehousing · MCQ · 1 mark
Consider that the visualization of a 3-dimensional data cube is showing Sales Quantity for each combination of the attributes Product Type, Month and Country.
From this, if we want to further visualize the Sales Quantity for each combination of Product Type, Month and State, which of the following OLAP operations should be performed?
(A)
Slicing
(B)
Dicing
(C)
Roll-up
(D)
Drill-down
Answer (official key): D
Worked solution: in your report after you take this paper.
Q17 · Artificial Intelligence · MCQ · 1 mark
Which of the following statements is NOT true?
(The names of the predicates are intuitive.)
(A)
∀x∀yClassmate(x,y)⇒Classmate(y,x)
(B)
∀xLikes(x,Icecream)⇒¬∃x¬Likes(x,Icecream)
(C)
“Each king is a person” is equivalent to ∀xIsKing(x)∧IsPerson(x)
(D)
“All humans are mortal” is equivalent to ∀xIsHuman(x)⇒IsMortal(x)
Answer (official key): C
Worked solution: in your report after you take this paper.
Q18 · Database Management and Warehousing · MCQ · 1 mark
Let R(A,B,C,D,E) be a relational schema with functional dependency set
F={A→BC,CD→E,E→A}.
Which of the following statements is correct?
(A)
AD, ED and CD are the only candidate keys of R.
(B)
AD and ED are the only candidate keys of R.
(C)
A, E and CD are the only candidate keys of R.
(D)
A and CD are the only candidate keys of R.
Answer (official key): A
Worked solution: in your report after you take this paper.
Q19 · Artificial Intelligence · MCQ · 1 mark
Which of the following algorithms is NOT an example of uninformed search?
(A)
Breadth First Search
(B)
Depth First Search
(C)
A* Search
(D)
Depth-limited Search
Answer (official key): C
Worked solution: in your report after you take this paper.
Q20 · Machine Learning · MCQ · 1 mark
Consider that you are training a classifier for a 10-class classification problem. Each input is represented as a 512-dimensional vector. There are 1000 samples, out of which first 100 will be used for testing. Let Leave-One-Out-Cross-Validation (LOOCV) be used for selection of the classifier model before testing.
Which of the following options is the correct number of validation splits that will be generated?
(A)
10
(B)
512
(C)
900
(D)
1000
Answer (official key): C
Worked solution: in your report after you take this paper.
Q21 · Programming, Data Structures and Algorithms · MSQ · 1 mark
You are given the following Pre-order and In-order traversals of a Binary Tree T with nodes E, F, G, P, Q, R, S.
Pre-order: P Q S E R F G
In-order: S Q E P F R G
Which of the following statements is/are true about the Binary Tree T?
Q22 · Database Management and Warehousing · MSQ · 1 mark
Consider two relations r and s defined on the relational schemas R(A,B) and S(E,C), respectively. A is the primary key of R and E is a foreign key of S referencing A in R.
Which of the following operations will NEVER violate the foreign key constraint?
(A)
Inserting records into relation r
(B)
Deleting records from relation s
(C)
Deleting records from relation r
(D)
Inserting records into relation s
Answer (official key): A, B
Worked solution: in your report after you take this paper.
Q23 · Artificial Intelligence · MSQ · 1 mark
Sentence X is said to entail Sentence Y if whenever X is TRUE, Y also must hold TRUE.
Which of the following statements is/are correct if X entails Y?
(A)
X⇒Y
(B)
X∧¬Y is FALSE
(C)
if X then Y
(D)
if Y then X
Answer (official key): A, B, C
Worked solution: in your report after you take this paper.
Q24 · Machine Learning · Numerical · 1 mark
Consider that for a supervised learning task, the objective function being minimized is
fw(x)=wx,
where x∈R is the input and w∈R is the parameter. Stochastic Gradient Descent with learning rate of 0.10 is used for parameter updates.
Suppose that at the end of iteration i, the value of w becomes 10.00.
Let x=10.00 be the input for iteration (i+1).
The value of w at the end of iteration (i+1) is __________ .
(Rounded off to two decimal places)
Q25 · Artificial Intelligence · Numerical · 1 mark
Consider the game tree for a two-player turn-taking minimax game as shown in the figure. The value of a terminal node represents the utility of the game state if the game ends there. The numbers written next to the edges denote the strategies.
There are two players MAX and MIN. At any particular state of the game, MAX prefers to move to a state of maximum value. On the other hand, MIN prefers to move to a state of minimum value.
Suppose MAX starts the game at the root and has three strategies: 1, 2 and 3. Next, MIN plays and also has three strategies: 1, 2 and 3. The game ends there. Both players always take optimal strategies throughout the game.
At the root, the best strategy for MAX is __________ . (Answer in integer)
Worked solution: in your report after you take this paper.
Q27 · Linear Algebra · MCQ · 1 mark
Consider a set
S1={x=(x1,x2,x3)T∈R3∣xTx≤16}.
Let S2 be another set which is a subspace of R3 with dimension two.
Which of the following gives the area of S1∩S2?
(A)
16π
(B)
4π
(C)
4π2
(D)
16π2
Answer (official key): A
Worked solution: in your report after you take this paper.
Q28 · Machine Learning · MSQ · 1 mark
In the following table, the Task column lists a few tasks related to machine learning. The Algorithm column lists a few algorithms.
Each entry “t” from the Task column is to be matched with an appropriate entry “a” from the Algorithm column such that the task “t” can be solved using the algorithm “a”. Denote such a match as t:a.
Task
Algorithm
T1 – Clustering
A1 – Markov Chain Monte Carlo
T2 – Classification
A2 – K-Medoid
T3 – Sampling
A3 – Linear Discriminant Analysis
T4 – Feature Extraction
A4 – Naive Bayes
Which of the following options is/are the correct matching(s)?
(A)
T1:A4, T2:A3, T3:A1, T4:A2
(B)
T1:A2, T2:A4, T3:A1, T4:A3
(C)
T1:A3, T2:A4, T3:A1, T4:A2
(D)
T1:A4, T2:A2, T3:A1, T4:A3
Answer (official key): B
Worked solution: in your report after you take this paper.
Q29 · Calculus and Optimization · MSQ · 1 mark
Let
f(x)=x3−3x2+2
be a function defined on (−1,3].
Which of the following statements is/are correct?
(A)
f(x) has exactly two roots in [−0.9,0]
(B)
f(x) has a minimum at 2 only.
(C)
f(x) has maximum at 0 only.
(D)
f(x) has a root at 1.
Answer (official key): B, D
Worked solution: in your report after you take this paper.
Q30 · Probability and Statistics · MSQ · 1 mark
Suppose a random variable Z follows Normal(μ=0,σ2=1) distribution with probability density function g(z) and cumulative distribution function G(z). Another random variable Y follows t1 distribution with probability density function h(y) and cumulative distribution function H(y). Let c be the positive real number for which g(c)=h(c).
Which of the following statements is/are correct?
(A)
G(0)=H(0)
(B)
G(c)<H(c)
(C)
G(−c)<H(−c)
(D)
g(0)=h(0)
Answer (official key): A, C
Worked solution: in your report after you take this paper.
Q31 · Probability and Statistics · Numerical · 1 mark
The number of bijections f(⋅) from the set
S={1,2,3,4}
to itself such that
f(f(n))=n, for all n∈S,
is __________ .
(Answer in integer)
Answer (official key): 10
Worked solution: in your report after you take this paper.
Q32 · Calculus and Optimization · Numerical · 1 mark
The value of
i=0∑∞j=1∑∞2−i3−j
is ______________ .
(Answer in integer)
Answer (official key): 1
Worked solution: in your report after you take this paper.
Q33 · Programming, Data Structures and Algorithms · Numerical · 1 mark
Let A be a sorted array containing 1000 distinct integers. You perform a recursive binary search on A to find an element y. Suppose each comparison checks whether the middle element computed during the current recursive step is equal to, less than, or greater than y.
The maximum number of comparisons that may have to be performed if y is not an element of A is _______ .
(Answer in integer)
Answer (official key): 10
Worked solution: in your report after you take this paper.
Q34 · Database Management and Warehousing · Numerical · 1 mark
In a relational database, a B+ Tree Index is to be constructed for a relation on a key field. In a B+ Tree, a Node Pointer points to a sub-tree and a Data Record Pointer points to a block of database records.
Let:
Node size = 4096 bytes
Node Pointer size = 10 bytes
Search Key Field size = 11 bytes
Data Record Pointer size = 12 bytes
The maximum number of Node Pointers that can be present in a non-leaf node of the B+ Tree is ________ .
(Answer in integer)
Answer (official key): 195
Worked solution: in your report after you take this paper.
Q35 · Probability and Statistics · Numerical · 1 mark
Let X be an exponentially distributed random variable with mean λ(>0). If
P(X>5)=0.35,
then the conditional probability
P(X>10∣X>5)
is ___________ .
(Rounded off to two decimal places)
Answer (official key): 0.34 to 0.36
Worked solution: in your report after you take this paper.
Q36 · Artificial Intelligence · MCQ · 2 marks
Assume that a Creative (C) person will Succeed (S) if the person is also Disciplined (D), but will not succeed otherwise. Now, consider the following statements:
(i) C∧S⇔D
(ii) C⇒(S⇔D)
(iii) C⇔((D⇒S)∨¬S)
Which of the following options is correct?
(A)
Both (i) and (ii) are TRUE
(B)
Only (ii) is TRUE
(C)
Both (ii) and (iii) are TRUE
(D)
Only (iii) is TRUE
Answer (official key): B
Worked solution: in your report after you take this paper.
Q37 · Machine Learning · MCQ · 2 marks
Which of the following statements is true for Ridge Regression?
(A)
The regularizer in the objective function of Ridge Regression is used to guard against scenarios where the model works well for the test data, but poorly for the training data.
(B)
The regularizer of Ridge Regression uses L1 norm.
(C)
Ridge Regression aims to reduce the number of parameters that have negative values.
(D)
The regularizer of Ridge Regression may increase the bias of the model, but it helps in reducing the variance in predictions.
Answer (official key): D
Worked solution: in your report after you take this paper.
Q38 · Programming, Data Structures and Algorithms · MCQ · 2 marks
Consider a directed graph G=(V,E), where V is the finite set of vertices and E is the set of directed edges between the vertices. G may contain cycles but there is no self-loop. Further, G may not be strongly connected.
Let GR be the graph obtained by reversing the directions of all the edges in G without changing the set of vertices.
Assume that Breadth First Search (BFS) or Depth First Search (DFS) from any given vertex v of a graph visits only the reachable vertices from v in that graph.
Which of the following statements must always be true, regardless of the structure of G?
(A)
If u is a reachable vertex in the BFS of GR from v, then u is also a reachable vertex in the DFS of G from v.
(B)
In GR, the BFS traversal from v will visit exactly the same set of vertices as the DFS from v in G.
(C)
The order of vertices visited in the BFS of GR from v is the reverse of the order of vertices visited in the DFS of G from v.
(D)
If u is a reachable vertex in the DFS of G from v, then v is also a reachable vertex in the BFS of GR from u.
Answer (official key): D
Worked solution: in your report after you take this paper.
Hierarchical Agglomerative Clustering is used to cluster the above points. If Manhattan Distance is used as the distance metric during clustering, which of the following options indicates the two points that will be merged first?
(A)
P1,P2
(B)
P2,P3
(C)
P3,P4
(D)
P2,P4
Answer (official key): D
Worked solution: in your report after you take this paper.
Q40 · Programming, Data Structures and Algorithms · MCQ · 2 marks
A recursive function in Python is given.
def mystery(n):
if n <= 0:
return 1
else:
return mystery(n-1) + mystery(n-2)
Now, consider the following function call:
mystery(4)
Assume that a typical runtime stack is used to manage function calls. Each function call is pushed onto the stack and removed only after it finishes execution.
Which of the following options denotes the total number of function calls (i.e., the total number of stack activations), including the initial call, to compute mystery(4)?
(A)
5
(B)
9
(C)
15
(D)
17
Answer (official key): C
Worked solution: in your report after you take this paper.
Q41 · Programming, Data Structures and Algorithms · MSQ · 2 marks
Consider the problem of sorting the given array in ascending order:
P=[1,2,3,5,4]
Consider two sorting algorithms Bubble Sort (BS) and Insertion Sort (IS). Let N1 be the total number of comparisons done by BS on the elements of P and N2 be the total number of comparisons done by IS on the elements of P.
Which of the following options is/are correct?
(A)
N1=10,N2=4
(B)
N1>N2
(C)
IS on P will perform only one swap
(D)
Both BS and IS on P will make at least one unnecessary comparison (i.e., comparing elements that are already in correct order)
Answer (official key): B, C, D
Worked solution: in your report after you take this paper.
Q42 · Database Management and Warehousing · MCQ · 2 marks
Consider the given relations X, Y and Z. The relation X has three columns P, Q and R. The relation Y has three columns P, Q and S. The relation Z has two columns P and T.
X.P
X.Q
X.R
P1
Q1
R1
P2
Q2
R2
P3
Q3
R2
Y.P
Y.Q
Y.S
P1
Q1
2
P1
Q2
5
P2
Q1
6
P3
Q3
1
Z.P
Z.T
P1
T1
P3
T2
P4
T3
Consider the relational algebra expression
ΠPRS[(σ(Q=Q3∨R=R2)[X⋈Y])⋈(σ(S>1)[Y⋈Z])]
where ⋈ denotes natural join operation.
Which of the following options is the correct output for the given expression?
(A)
Two rows (P1,R1,2) and (P1,R1,5)
(B)
Three rows (P1,R1,2), (P1,R1,5) and (P2,R2,6)
(C)
One row (P1,R1,2)
(D)
Zero rows
Answer (official key): D
Worked solution: in your report after you take this paper.
Q43 · Database Management and Warehousing · MCQ · 2 marks
Consider the concept hierarchies as shown in the figure.
Which of the following options denotes the total number of possible data cuboids from these concept hierarchies?
(A)
43
(B)
23
(C)
2!
(D)
4!
Answer (official key): A
Worked solution: in your report after you take this paper.
Q44 · Linear Algebra · MCQ · 2 marks
Let γ1,γ2,γ3 be the eigenvalues of the matrix
1000cost−sint0sintcost,
where t∈[−π,π] is in radians.
Which one of the following options lists all the possible values of t satisfying
γ1+γ2+γ3=1+2?
(A)
{3π,−4π}
(B)
{4π,−3π}
(C)
{4π,−4π}
(D)
{3π,−3π}
Answer (official key): C
Worked solution: in your report after you take this paper.
Q45 · Probability and Statistics · MCQ · 2 marks
Let X and Y be two independent random variables. X follows Bernoulli(p=0.3) distribution and Y follows Normal(μ=0,σ2=100) distribution.
Which of the following options is the variance of (2X−1)Y ?
(A)
100
(B)
90
(C)
49
(D)
21
Answer (official key): A
Worked solution: in your report after you take this paper.
Q46 · Programming, Data Structures and Algorithms · MSQ · 2 marks
Consider the given Python program.
def outer():
x = []
def inner(val):
x.append(val)
return x
return inner
f1 = outer()
f2 = outer()
print(f1(10)) # Line P
print(f1(20)) # Line Q
print(f2(30)) # Line R
print(f1(40)) # Line S
Which of the following options is/are correct?
(A)
f1 and f2 share the same list x
(B)
Output of Line Q is [10, 20]
(C)
Output of Line R is [10, 20, 30]
(D)
Output of Line S is [10, 20, 40]
Answer (official key): B, D
Worked solution: in your report after you take this paper.
Q47 · Database Management and Warehousing · MCQ · 2 marks
Consider a B+ Tree where the maximum number of key values in each leaf node is 2 and the maximum number of pointers in each non-leaf node is 3. Let the content of the B+ Tree be as shown in the figure.
Which of the following options denotes the key value(s) stored in the root node after inserting a key value 3 in the given B+ Tree?
(A)
5
(B)
8
(C)
3 and 5
(D)
3, 5 and 8
Answer (official key): A
Worked solution: in your report after you take this paper.
Q48 · Machine Learning · MSQ · 2 marks
Consider that 20 stories of Author X and 10 stories of Author Y were kept together without mentioning the names of the authors. A classifier was then asked to predict the author (X or Y) of each of these stories. Let, out of X’s stories, 6 were classified as that of Y. On the other hand, out of Y’s stories, 2 were classified as that of X.
Considering X and Y as two classes, which of the following statements is/are true?
(A)
Accuracy of the classifier is 11/15.
(B)
Precision of Class X is higher than the Precision of Class Y.
(C)
Recall of Class X is higher than the Recall of Class Y.
(D)
Accuracy of the classifier is 14/15.
Answer (official key): A, B
Worked solution: in your report after you take this paper.
Q49 · Artificial Intelligence · MSQ · 2 marks
Let P(x) be a predicate.
Which of the following statements is/are NOT valid in first-order logic?
(A)
∀xP(x)⇒∃xP(x)
(B)
∃xP(x)⇒∀xP(x)
(C)
∃xP(x)⇔∀xP(x)
(D)
∀xP(x)⇒∃x¬P(x)
Answer (official key): B, C, D
Worked solution: in your report after you take this paper.
Q50 · Probability and Statistics · MCQ · 2 marks
Let
L=n→∞limk=0∑ne−nk!nk.
Which of the following is the value of L?
(A)
0.5
(B)
1.0
(C)
0
(D)
e−1
Answer (official key): A
Worked solution: in your report after you take this paper.
Q51 · Probability and Statistics · Numerical · 2 marks
Let A5×5 be a matrix such that each of its elements follows Bernoulli(p=0.50) distribution independently.
The probability that the row-sum of the second row and the column-sum of the third column are both equal to 3 is ________ .
(Rounded off to two decimal places)
Answer (official key): 0.08 to 0.12
Worked solution: in your report after you take this paper.
Q52 · Machine Learning · Numerical · 2 marks
Consider a fully-connected feed-forward multi-layer perceptron. It has 30 neurons in the input layer, followed by two hidden layers and an output layer. The first hidden layer has 4 neurons and the second hidden layer has 3 neurons. The output layer has only one neuron. Assume that no bias parameters are used.
The number of learnable parameters in the multi-layer perceptron is __________ .
(Answer in integer)
Answer (official key): 135
Worked solution: in your report after you take this paper.
Q53 · Database Management and Warehousing · Numerical · 2 marks
Let there be two relations X and Y as shown. X has three columns P, Q and R. Y has two columns P and S.
Relation X
P
Q
R
P1
Q1
R1
P2
Q2
R2
P3
Q3
R2
Relation Y
P
S
P1
10
P1
15
P2
20
P3
1
Consider that the following tuple relational calculus expression is evaluated:
{t∣t∈X∧∃z∈X(t[P]=z[P])∧∃m∈Y(m[P]=t[P]∧m[S]>1)}
The number of tuples that will be returned is __________ .
(Answer in integer)
Answer (official key): 2 to 3
Worked solution: in your report after you take this paper.
Q54 · Database Management and Warehousing · Numerical · 2 marks
Consider an ER model with the entities E1(A11,A12,A13) and E2(A21,A22,A23), where A11,A12,A13 are the attributes of E1, and A21,A22,A23 are the attributes of E2. Let A22 be a multi-valued attribute. A11 and A21 are the primary keys of E1 and E2, respectively.
Let R12 be a many-to-many relationship between E1 and E2. Participation of both E1 and E2 in R12 is total.
The minimum number of relations required to convert the ER model into relational model (assuming there is no other functional dependency) where each relation is in third normal form (3NF) is __________ .
(Answer in integer)
Answer (official key): 4
Worked solution: in your report after you take this paper.
Q55 · Probability and Statistics · MSQ · 2 marks
Let X be a discrete valued random variable with cumulative distribution function F(x).
Which of the following statements is/are correct?
(A)
F(x) is always a positive function.
(B)
F(x) is a non-decreasing function.
(C)
F(x) has jump discontinuity.
(D)
F(x) is a left continuous function.
Answer (official key): B, C
Worked solution: in your report after you take this paper.
Q56 · Machine Learning · Numerical · 2 marks
Consider that Linear Ridge Regression is being used to learn a prediction function
ypred=wTx,
where w,x∈R2 and Mean Absolute Error (MAE) is used to measure the prediction error. A weight of 0.20 is associated with the regularizer.
At an intermediate step of the training process, assume that the parameter
w=[−3.00,4.00]T.
In the next step, for the input
x=[1.00,2.00]T,
the predicted value of y is noted. Let the relation between
x=[x1,x2]T
and the true value of y be
ytrue=x1+x2.
The value of the overall regularized loss function for this instance is _______ .
(Rounded off to two decimal places)
Answer (official key): 6.9 to 7.1
Worked solution: in your report after you take this paper.
Q57 · Database Management and Warehousing · MSQ · 2 marks
Consider a table Employee(EmpID, TeamID), where the column EmpID (ID of an employee) is the primary key. The column TeamID denotes the team ID of the team of which the employee is a member. TeamID is a NOT NULL column.
We want to display the size of the team (denoted as TeamSize) in which each employee is a member by using SQL. As an example, the desired output for the given Employee table is also shown in tabular form.
Employee.EmpID
Employee.TeamID
Output.EmpID
Output.TeamSize
1
8
1
3
2
8
2
3
3
8
3
3
4
7
4
2
5
7
5
2
6
9
6
1
Which of the following is/are correct?
(A)
Option A
(B)
Option B
(C)
Option C
(D)
Option D
Answer (official key): A
Worked solution: in your report after you take this paper.
Q58 · Probability and Statistics · Numerical · 2 marks
For a given data set {x1,x2,…,xn}, where n=100, it is known that
20001i=1∑nj=1∑n(xi−xj)2=99.
Let us denote
xˉ=n1i=1∑nxi.
The value of
991i=1∑n(xi−xˉ)2
is __________ .
(Answer in integer)
Answer (official key): 10
Worked solution: in your report after you take this paper.
Q59 · Probability and Statistics · MSQ · 2 marks
Let X1,X2,…,Xn be n independent random variables. Each of the random variables follows Normal(μ=0,σ2=1) distribution. Define
Xˉ=n1i=1∑nXi.
Which of the following statements is/are correct?
(A)
Option A
(B)
Option B
(C)
Option C
(D)
Option D
Answer (official key): A, B, C
Worked solution: in your report after you take this paper.
Q60 · Linear Algebra · Numerical · 2 marks
Let
A=(In−n111T)
be a matrix, where
1=(1,1,1,…,1)T∈Rn
and In is the identity matrix of order n.
The value of
x∈SmaxxTAx,where S={x∈Rn∣xTx=1},
is __________ .
(Answer in integer)
Answer (official key): 1
Worked solution: in your report after you take this paper.
Q61 · Database Management and Warehousing · Numerical · 2 marks
Let Account be a relation as shown.
AccNo
Balance
A1
5000
A2
5000
A3
10000
A4
15000
A5
18000
Consider the given SQL query:
SELECT AccNo
FROM Account AS A
WHERE
(SELECT COUNT(*) FROM Account AS B
WHERE A.Balance < B.Balance)
>=
(SELECT COUNT(*) FROM Account AS C
WHERE A.Balance > C.Balance);
The number of rows returned by the SQL query is __________ .
(Answer in integer)
Answer (official key): 3
Worked solution: in your report after you take this paper.
Q62 · Programming, Data Structures and Algorithms · Numerical · 2 marks
Consider the given Python program.
def fun(L, i=0):
if i >= len(L)-1:
return 0
if L[i] > L[i+1]:
L[i+1], L[i] = L[i], L[i+1]
return 1 + fun(L, i+1)
else:
return fun(L, i+1)
data = [5, 3, 4, 1, 2]
count = 0
for _ in range(len(data)):
count += fun(data)
print(count)
The output of the program is __________ .
(Answer in integer)
Answer (official key): 8
Worked solution: in your report after you take this paper.
Q63 · Probability and Statistics · Numerical · 2 marks
Let X be a random variable that follows Uniform(−1,1) distribution. The conditional distribution of the random variable Y given X=x is the Uniform(x2−0.1,x2+0.1) distribution.
The value of correlation(X,Y) is __________ .
(Answer in integer)
Answer (official key): 0
Worked solution: in your report after you take this paper.
Q64 · Linear Algebra · MSQ · 2 marks
Let
M=(In−n111T)
be a matrix, where
1=(1,1,1,…,1)T∈Rn
and In is the identity matrix of order n.
Which of the following options is/are correct?
(A)
MT=M
(B)
M2=In
(C)
Trace(M)=n
(D)
M is a projection matrix
Answer (official key): A, D
Worked solution: in your report after you take this paper.
Q65 · Probability and Statistics · Numerical · 2 marks
A clinic specializes in testing for a disease D. The result of the test can be either positive or negative.
A study revealed that if a person suffers from the disease D, the test result in that clinic comes out positive 80% of the time, and negative 20% of the time. If a person is not suffering from the disease D, the test comes out positive 10% of the time and negative 90% of the time. It is also known that among the general population, the disease D occurs in 30% of the individuals.
If a person tests positive for D in that clinic, the probability that he/she actually suffers from the disease D is __________ .
(Rounded off to two decimal places)
Answer (official key): 0.76 to 0.78
Worked solution: in your report after you take this paper.