Distance between two stations A and B is 842 km. A train covers the journey from A to B at 74 km per hour and returns back to A with a uniform speed of 46 km per hour. Find the average speed of the train during the whole journey.

48.12 kmph

56.73 kmph

67.42 kmph

58.42 kmph

Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Three numbers are in ratio 1:2:3 and their H.C.F is 12. The numbers are:
6; 12; 18
12; 24; 32
11; 22; 33
12; 24; 36
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
16, 36, 72, 144, 196, 225

From these series find the odd number:

16
36
72
196
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66

The ratio of the circumferences of two circles is 4:5. What is the ratio of their areas?

2:3

5:6

4:5

2:5

Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Two vessels A and B contain 57.5% and 72.5% of alcohol respectively. If 2 litres from vessel A is mixed with 4 litres from vessel B, the ratio of alcohol and water in the resulting mixture is
27:13
39:14
12:13
1:2
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
A person buys an article at Rs. 750. At what price should he sell the article so as to make a profit of 20%?
300
150
450
900
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
_______ is the action of asking something humbly.
Application
Supplication
Germination
Segregation
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
What is the idiom for ' not speaking precisely or to the point'?
Beating around the bush
Over the moon
Bite the bullet
Break a leg
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
The house upon the rock ______ firm.
stand
stood
standing
stands
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
When all shapes given are connected in the corresponding edges (X to X, Y to Y and etc.)

The complete shape looks like shape:

1
2
3
4
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
In a BST, we can find the Kth smallest element to a given element in O(1) time. ___
True
False
None
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
In a BST, we can find the Kth smallest element to a given element in O(1) time. ___
False
True
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
In-order is same as :
Depth-first order
Topological order
Linear order
Breadth-first order
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Which of the following statement(s) is/are TRUE?

P: Adding an edge to a tree will form a loop. Removing an edge of a tree will result in two disconnected subtrees.

Q: Given Graph G, contains distinct edges, and a cycle C in G. The heaviest edge on C is not in the MST of G.

Only P
Only Q
Both P and Q
Neither P and Nor Q
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Find the total number of strongly connected components for a given graph is ____?

2
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.00
Consider the following array A[ ] with 10 elements

A[ 21, 7, 41, 22, 15, 18, 25, 58, 103 , 203 ]

Find the total number of inversions possible for the given array.

[ Hint: Inversion formal definition is two elements A[i] and A[j] form an inversion if A[i] > A[j] and i < j ]

9
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.00
Let A, B, C, D be four matrices of dimensions 10x5, 5x6, 6x7, 7x9 respectively. Find the maximum number of scalar multiplications required to find the product A B C D using the Matrix Chain Multiplication method is_____?
1350
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
Bob has wanted to send a message to Alice. Bob uses the encrypted message by using given letters along with probabilities of their occurrence.

Letter

A

L

G

O

R

I

T

H

M

Probability

20

18

16

12

10

6

5

2

1

Alice got a message in combination of 1’s and 0’s. Alice needs to apply a hamming code algorithm to understand the given message.

110100110011011110101

Find the decrypted message sent by Bob which considers two consecutive ‘1’ and ‘0’. The consecutive numbers may or may not be in continuous order ____? [ Hint: consider left node as 0 ] [MSQ]

M
I
T
H
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
Let P be a Quicksort algorithm to sort numbers in descending order. The quick sort using the last element as pivot. Let t1 and t2 be the number of comparisons made by P for the inputs {10, 15, 3, 9, 30} and {50, 40, 30, 20, 10} respectively. Which one of the following is not the correct relation by using quick sort in the context of time complexities ? [ MSQ ]
t1 = t2
t1< t2
t1 > t2
t1 ⊃ t2
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
Consider a relation R(A,B,C,D,E) and the following functional dependencies:

AB → C

C → D

BD → E

Which of the following is/are super key(s) of R? [MSQ]

AB
ABD
BCD
ACD
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.00
This Query can be replaced by which one of the following?

SELECT name, course_id

FROM instructor, teaches

WHERE instructor_ID= teaches_ID;

Select name,course_id from teaches,instructor where instructor_id=course_id;
Select name, course_id from instructor natural join teaches;
Select name, course_id from instructor;
Select course_id from instructor join teaches;
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Consider the following log sequence:

< T0, start >

< T0, A, 2000, 1950 >

< T0, B, 3000, 3050 >

< T0, commit >

< T1, start >

< T1, C, 1700, 1600 >

What will be the recovery action by immediate modification recovery?

undo T0, redo T1
redo T0, redo T1
redo T0, undo T1
undo T0, undo T1
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
There are five records in a database.

Name

Age

Occupation

Category

Shiva

Abdul

Dev

Anil

Anand

29

26

28

27

25

Professor 1

Engineer2

Teacher3

Business4

Doctor5

A

A

B

D

C

There is an index file associated with this and it contains the values 4, 5, 2, 1 and 3. Which one of the fields is the index built from?

Age
Name
Occupation
Category
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
In a snowflake schema, how do dimension tables relate to one another?
They are fully normalized
They are denormalized
They are connected through fact tables
They exist independently
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
A dataset contains 500 records, each with 10 attributes. How many possible 2-attribute combinations can you form?
45
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
A dataset has values ranging from 1 to 1,000. You want to apply decimal scaling normalization. What will be the normalized value of 250?
0.25
0.45
0.95
None
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
What happens when model complexity increases [MSQ]
Bias increases
Bias decreases
Variance increases
Variance decreases
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Consider 1d data 12,22,2,3,33,27,5,16,6,31,20,37,8 and 18. Given k=3 and initial cluster centers to be 5,6,and 31. What are the final cluster centres obtained after k means

algorithm(select approximate value)

5,18,30
5,18,32
6,19,32
4.8,17.6,32
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
The naive bayes classifier make the assumption that the ----- are indepdent given the ----

features,class lables
class lables,features
features,data points
No assumptions
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33

What is the recall(upto to one decimal in percentage)

66.7
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00

For above data what is precision(in percentage)

60
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00

For above data what is F1 score (Upto one decimal)

63.1
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
We have a dataset with 1000 samples and 5 classes for classification.What would be the training size for a 20 fold cross validation.
50
200
800
950
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Choose correct statements

A,B
A,B,C,D
B,C
None of the statements
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Tautology
Contingency
Contradiction
Invalid
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Which of the following statements about conditional independence and Bayesian networks is true? [MSQ]
In a Bayesian network, if (A) is independent of (B) given (C), then there cannot be a direct causal arrow from (A) to (B).
Conditional independence can be inferred from d-separation in a Bayesian network, regardless of the underlying causal relationships.
If (A) is conditionally independent of (B) given (C), it implies that knowing (C) renders (A) irrelevant to (B).
In a Bayesian network, every pair of nodes is conditionally independent if non-adjacent, regardless of any intervening variables.
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
Tautology
Contingency
Contradiction
Invalid
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
In Gibbs Sampling, what is the primary reason for using the Markov blanket of a variable?
To ensure the independence of sampled variables
To calculate the conditional probability of a variable efficiently

To ensure convergence to the exact posterior distribution
To avoid using the joint distribution of all variables
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Determine the standard devia-tion from the mean of the set of numbers:

{5, 6, 8, 4, 10, 3}

2.380
3.125
4.128
6.254
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Find the expectation of obtaining a 4 upwards with 3 throws of a fair dice.
0.23
0.50
1.23
None
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
A random variable X has a Poisson distribution with parameter λ such that P (X = 1) = (0.2) P (X = 2). Find P (X = 0).
0.0000454
0.2354
1.23524
None of the above
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Find the Laplace transforms of 6sin3t − 4cos5t

None
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
The frequency distribution for the value of resistance in ohms of 48 resistors is as shown. Determine the mean value of resistance.

21.919
23.458
15.258
11.258
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
A pair of six-faced dice is rolled twice, the probability that the sum of the outcomes in each roll equals 4 in exactly two of the three attempts is
0.02
0.05
0.07
0.09
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
The mean and the median of the following ten numbers in increasing order

10, 22, 26, 29, 34, x, 42, 67, 70, y are 42 and 35 respectively, then y/x is equal to:

9/4
7/2
7/3
None
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Which of the following probability distribution functions (PDFs) has the mean greater than the median?

Function 1
Function 2
Function 3
Function 4
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66

[MSQ]

Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.00
For matrices of same dimension M, N and scalar c, which one of these properties DOES NOT ALWAYS hold?
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
I only
II only
Both I and II
Neither I nor II
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
The determinant of matrix A below is

88
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.00
[A] is square matrix which is neither symmetric nor skew-symmetric and [A]^T is its transpose. The sum and difference of these matrices are defined as [S] = [A] + [A]^T and [D] = [A] – [A]^T, respectively. Which of the following statements is TRUE?
Both [S] and [D] are symmetric
Both [S] and [D] are skew-symmetric
[S] is skew-symmetric and [D] is symmetric
[S] is symmetric and [D] is skew-symmetric
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66

[MSQ]

Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
Ley y be a non-zero vector of the size 2022 × 1. Which of the following statement(s) is/are TRUE?
yy^T is symmetric matrix
yy^T is invertible
yy^T has a rank of 2022
y^Ty is an eigen value of yy^T
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33

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

[MSQ]

Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
0
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
Given a function f(x,y) = 4x2 +6y2 –8x–4y+8

Total optimal value of f(x, y)

Is a minimum equal to 10/3
Is a maximum equal to 10/3
Is a minimum equal to 8/3
Is a maximum equal to 8/3
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66

2
e
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
A function calculates the product of all elements in a list except the current element, without using division.

Complete the code to calculate the output for the list [1, 2, 3, 4].

def product_except_self(nums):

n = len(nums)

left, right, result = [1] * n, [1] * n, [1] * n

for i in range(1, n):

left[i] = left[i - 1] * nums[i - 1]

for i in range(n - 2, -1, -1):

right[i] = right[i + 1] * nums[i + 1]

for i in range(n):

result[i] = left[i] * right[i]

return resultresult = ___________

print(result)

[18, 12, 8, 6]
[6, 8, 24, 12]
[24, 12, 8, 6]
None
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
What will the following Python code snippet output?

x = [1, 2, 3]

y = x

y.append(4)

print(x)

[1, 2, 3]
[1, 2, 3, 4]
[4]
[1, 2, 3, 4, 4]
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Which of the following methods is used to convert a dictionary to a JSON string in Python?
json.load()
json.dump()
json.dumps()
json.loads()
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Given a directed acyclic graph (DAG) represented as an adjacency list, write a Python function to perform topological sorting. Identify the correct implementation.
def topological_sort(graph):

visited = set()

stack = []

def dfs(node):

if node not in visited:

visited.add(node)

for neighbor in graph[node]:

dfs(neighbor)

stack.append(node)

for node in graph:

dfs(node)

return stack[::-1]

def topological_sort(graph):

in_degree = {u: 0 for u in graph}

for u in graph:

for v in graph[u]:

in_degree[v] += 1

stack = [u for u in graph if in_degree[u] == 0]

result = []

while stack:

u = stack.pop()

result.append(u)

for v in graph[u]:

in_degree[v] -= 1

if in_degree[v] == 0:

stack.append(v)

return result

def topological_sort(graph):

return list(graph.keys())

def topological_sort(graph):

stack = []

for node in graph:

for neighbor in graph[node]:

stack.append(neighbor)

return stack

Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Given an integer array, return all subsets. Choose the implementation that generates subsets correctly.
def subsets(nums):

result = [[]]

for num in nums:

result += [curr + [num] for curr in result]

return result

def subsets(nums):

result = [[]]

for num in nums:

result.append([num])

return result

def subsets(nums):

result = []

for num in nums:

result.append([num])

return result

def subsets(nums):

return [nums]

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