CT Endterm
CT Endterm
CT Endterm
Correct Marks : 3
Find the P(X ≥ 2).Enter the answer correct to two decimal places.
Possible Answers :
0.08 to 0.14
Sem1 CT
Section Id : 64065338396
Section Number : 7
Number of Questions : 21
Sub-Section Number : 1
Sub-Section Id : 64065380887
Correct Marks : 0
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS
REGISTERED BY YOU)
Options :
6406531891210. YES
6406531891211. NO
Correct Marks : 0
6406531891213. This data attachment is just for a reference & not for an evaluation.
Sub-Section Number : 2
Sub-Section Id : 64065380888
Correct Marks : 3
Options :
6406531891214. Number of students who are either female or are from Chennai.
6406531891216. Number of female students from Chennai + number of male students from
other than Chennai.
6406531891217. Number of all students except female students from other than Chennai.
Correct Marks : 3
The following pseudocode is executed using the "Words" dataset. What will B represent at the end
of the execution?
Options :
6406531891219. Number of words other than nouns with letter count more than 4.
6406531891221. Number of words other than nouns with letter count less than or equal to 4.
Sub-Section Number : 3
Sub-Section Id : 64065380889
Correct Marks : 4
The following pseudocode is executed using the "Words" dataset. The variable count stores the
number of words which are either nouns or have letter count at most 5, but not both. Choose the
correct code fragment to complete the pseudocode.
Options :
6406531891222.
6406531891223.
6406531891224.
6406531891225.
Correct Marks : 4
The following pseudocode is executed using the "Library" dataset. At the end of the execution, N
captures the name of a book written in a language other than English with the maximum number
of pages, and A captures the number of pages in the book.
Assume that the rows of the table are shuffled in any random order, choose the correct option.
Options :
6406531891226. There might be some change in the values of both A and N, based on the
order of rows
6406531891227. There might be a change in the value of N, based on the order of rows
6406531891228. There will be NO change in the values of both A and N, based on the order of
rows
6406531891229. There might be a change in the value of A, based on the order of rows
Correct Marks : 4
The following pseudocode is executed using the "Scores" dataset. What will B represent at the end
of the execution?
Options :
6406531891230. Number of female students with Physics marks less than 90 and Mathematics
marks more than 90
6406531891231. Number of male students with either Physics marks less than 90 or with
Mathematics marks more than 90
6406531891232. Number of male students with Physics marks less than 90 and Mathematics
marks more than 90
6406531891233. Number of female students with either Physics marks less than 90 or with
Mathematics marks more than 90
Correct Marks : 4
The following pseudocode is executed using the "Olympics" dataset. What will dict represent at
the end of the execution?
Options :
6406531891234. A dictionary with player's names as keys mapped to the list of all the medals
won by the player
6406531891235. A dictionary with player's names as keys mapped to the list of distinct medal
types won by the player
6406531891236. A dictionary with medal types as keys mapped to the list of players who have
won that medal
6406531891237. A dictionary with medal types as keys mapped to the list of unique players who
have won that medal
Correct Marks : 4
The following pseudocode is executed using the "Scores" dataset. What will first(D[i]) - last(D[i])
represent for a given key i ?
Options :
6406531891238. The difference between highest and lowest Mathematics marks of the city i
6406531891239. The difference between overall highest and lowest Mathematics marks of the
dataset
6406531891240. The difference between highest and second highset Mathematics marks of the
city i
Sub-Section Number : 4
Sub-Section Id : 64065380890
Correct Marks : 6
The following pseudocode is executed using the “Words” dataset. What will wordCount represent
at the end of the execution?
Options :
6406531891245. Number of words in which no two vowels and no two consonants occur
consecutively
Correct Marks : 6
Question Label : Multiple Choice Question
Consider the following graph with six nodes. M is the 6 × 6 adjacency matrix corresponding to the
graph below. Assume that M has already been computed.
Options :
6406531891246. L = [2, 0, 1, 3, 4, 5]
6406531891247. L = [2, 0, 1, 3, 5, 4]
6406531891248. L = [2, 0, 1, 5, 4, 3]
6406531891249. L = [2, 0, 1, 5, 3, 4]
Sub-Section Number : 5
Sub-Section Id : 64065380891
Correct Marks : 4
Consider the procedure given below where A and B are two rows in the "Words" dataset. Let
procedure getSomething(A) returns a dictionary with characters of A.Word as keys mapped to
their frequency in A.Word.
Sub-Section Number : 6
Sub-Section Id : 64065380892
Correct Marks : 5
Possible Answers :
Sub-Section Number : 7
Sub-Section Id : 64065380893
Question Shuffling Allowed : Yes
Let D be a dictionary. Choose the correct statement(s) about the dictionary D. It is a Multiple Select
Question (MSQ).
Options :
Sub-Section Number : 8
Sub-Section Id : 64065380894
Sub-Section Number : 9
Sub-Section Id : 64065380895
The procedure visitedShop(B) returns the list of names of customers who have visited shop B in
the "Shopping Bills" dataset. Additionally, each customer must be represented exactly once in the
returned list. The following pseudocode may have mistakes. Identify all such mistakes(if any).
Assume that all statements not listed in the options below are free of errors. It is a Multiple Select
Question (MSQ).
Options :
6406531891264. No error
Sub-Section Number : 10
Sub-Section Id : 64065380896
The following pseudocode is executed using the "Shopping Bills" dataset. At the end of the
execution, L stores the list of distinct shops from which only one category of items have been
bought. But the pseudocode may have mistakes. Identify all such mistakes (if any). Assume that all
statements not listed in the options below are free of errors. It is a Multiple Select Question (MSQ).
Options :
Sub-Section Number : 11
Sub-Section Id : 64065380897
stations is a list that contains the sequence of stations visited by a train from the "Trains" dataset.
Each element in stations is a pair: [Name, Distance], the first entry is the name of the station, while
the second entry is the distance of this station from the first station in the list.
maxDist is a procedure that accepts stations as a parameter and returns the names of a pair of
consecutive stations which have the longest distance between them on this route. Complete the
following procedure.
Sub questions
Question Number : 194 Question Id : 640653565874 Question Type : MCQ Is Question
Mandatory : No Calculator : None Response Time : N.A Think Time : N.A Minimum Instruction
Time : 0
Correct Marks : 4
There may be multiple pairs having the same maximum distance. If we wish to find a pair of
stations closest to the first station in the list, which of the following is the correct code fragment?
Options :
6406531891270.
6406531891271.
6406531891272.
6406531891273.
Correct Marks : 4
There may be multiple pairs having the same maximum distance. If we wish to find a pair of
stations closest to the last station in the list, which of the following is the correct code fragment?
Options :
6406531891274.
6406531891275.
6406531891276.
6406531891277.
Sub-Section Number : 12
Sub-Section Id : 64065380898
trains is a list that contains information about trains associated with a station stn. Specifically,
each element in this list is a pair: [Arrival, Departure]. If the arrival or departure time is empty, it is
represented as "None".
Sub questions
Correct Marks : 3
Which of the following statements about the variable flag1 is True at the end of execution of the
given pseudocode?
Options :
6406531891278. It is True if and only if stn is a starting or ending station for at least one train in
the list
6406531891279. It is False if and only if stn is a starting or ending station for at least one train
in the list
6406531891280. It is True if and only if stn is a starting station for one train and ending station
for some other train in the list
6406531891281. It is False if and only if stn is a starting station for one train and ending station
for some other train in the list
Correct Marks : 3
What does the variable count represent at the end of execution of the given pseudocode?
Options :
6406531891285. It is the number of trains for which stn is neither a starting nor an ending
station
Correct Marks : 4
At the end of execution of the code given, what can be said about the values stored by the
Boolean variables flag1 and flag2?
Options :
6406531891286.
flag1 and flag2 always store the same value
Let M be the adjacency matrix of the graph G given below. Consider the procedure given below.
Based on above information, answer the given subquestions.
Sub questions
Correct Marks : 3
What will be the value of B at the end of the execution of the pseudocode given below?
Possible Answers :
Correct Marks : 3
What will be the value of B at the end of execution of pseudocode given below?
Possible Answers :
Correct Marks : 4
What will be the value of B at the end of execution of pseudocode given below?
Response Type : Numeric
Possible Answers :
Sub-Section Number : 13
Sub-Section Id : 64065380899
Consider the procedure evaluate given below, where P and Q are the lists of same length. If L1 =
[1, 2, 0, 4, 3] and L2 = [0, 2, 3, 5, 1] then answer the given subquestions.
Sub questions