0% found this document useful (0 votes)
55 views

Vired

This document provides a sample test for an accelerator program in artificial intelligence and machine learning. The test has three sections: 1) pseudo code problems, 2) calculus and linear algebra problems, and 3) a coding problem. The pseudo code and calculus/linear algebra sections each contain 4 multiple choice questions. The coding section contains one coding problem. The test is 45 minutes long and will be administered online with remote proctoring. A sample pseudo code problem, two calculus/linear algebra problems, and a coding problem description are provided.

Uploaded by

ARCHANA R
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
55 views

Vired

This document provides a sample test for an accelerator program in artificial intelligence and machine learning. The test has three sections: 1) pseudo code problems, 2) calculus and linear algebra problems, and 3) a coding problem. The pseudo code and calculus/linear algebra sections each contain 4 multiple choice questions. The coding section contains one coding problem. The test is 45 minutes long and will be administered online with remote proctoring. A sample pseudo code problem, two calculus/linear algebra problems, and a coding problem description are provided.

Uploaded by

ARCHANA R
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Sample Test – Accelerator Program in Artificial Intelligence and Machine Learning

This is an indicative test, to give potential test takers the opportunity to understand what kind of
problems may be asked in the screening exam. The actual problems asked in the exam will be
different from the ones shown here.

The test has three sections

1. Pseudo Code Section : Problems that involve pseudo code and test a learners ability to
work with basic programming constructs such as loops, conditional statements etc
There will be four problems in this section

2. Calculus and Linear Algebra : This tests learners on elementary concepts of calculus
such as differentiation, finding maxima/minima. Also basic linear algebra tasks such as
vector and matrix operations are tested. Some problems on simple probability concepts
can also be there.
There will be four problems in this section

3. Coding (This tests the learners ability to write actual code in the programming language
of their choice: Python, C, C++, Java etc)
There will be one problem from this section

All problems carry the same weightage. The test duration will be 45 minutes. This test will be
conducted on the DoSelect platform with remote proctoring enabled. The test will require you to
keep your camera on, navigation between browser tabs and windows will be disabled.

1. Sample Problem Pseudo Code (MCQ)

Consider the pseudo code fragment below and choose the correct option.

procedure proc( var a as array )


if ( n == 1 ) return a
var l1 as array = a[0] ... a[n/2]
var l2 as array = a[n/2+1] ... a[n]

1
l1 = proc( l1 )
l2 = proc( l2 )
return f( l1, l2 )

end proc
procedure f( var a as array, var b as array )
var c as array
while ( a and b have elements )
if ( a[0] > b[0] )
add b[0] to the end of c
remove b[0] from b
else
add a[0] to the end of c
remove a[0] from a
end if
end while

while ( a has elements )


add a[0] to the end of c
remove a[0] from a
end while

while ( b has elements )


add b[0] to the end of c
remove b[0] from b
end while

return c

end procedure

If an input of A = [5,9,0,-1,4,9,10] is given then what would be the output?

(a) A = [5,9,0,-1,4,9,10]
(b) A = 10
(c) A = -1
(d) A = [10,9,9,5,4,0,-1]

2. Calculus and Linear Algebra (MCQ: Options in the sample have not
been provided)

2
1. Consider a function f(x) = 𝑥 2 + 64𝑥 − 90. At what value of x will the slope of the graph
created using {(𝑥, 𝑓(𝑥)) 𝑓𝑜𝑟 𝑥 ∈ 𝑅}, be zero?

2. What are the chances of seeing an odd number if 3 dice are rolled and the sum of the
number on each face is taken?

3. Consider the following vectors


𝑎 = (1,5,7) and 𝑏 = (3,9,5)
What is the Euclidean distance (l2 norm) between these two?

3. Coding Problem

DESCRIPTION
Problem Statement
Anil is afraid of solving coding challenges. So to help him out, his friends used a scale to measure
the fear level every time he faces a problem. The fear level of each problem is known in advance.
HIs friends observed that Anil falters at odd numbered problems. Now they want to quantify his fear
levels by summing up the fear levels of odd numbered problems. Can you help them?

Input Format

● The first line contains an integer, N, denoting the number of problems Anil
faced.
● The subsequent N lines are the fear levels of the problem.
Constraints

● The number of problems, N : 1<=N<=105 .


● The fear level of each problem : arr[i] : 1<=arr[i]<=105 .
Output Format

● The output should be an integer, denoting the fear level for Anil.
Evaluation Parameters

● Sample Input
5 (Number of integers)
4 (position 0)
5 (position 1)

3
6 (position 2)
7 (position 3)
1( position 4)

● Sample Output
12

● Explanation
The fear level at odd indices are : 5(1) and 7(3), hence the sum is 5+7 = 12

You might also like