Assignment 0
Assignment 0
Week-0 Assignment
[Ungraded]
• All are MCQs with single correct answer.
Solution: (a)
GPT stands for "Generative Pre-trained Transformer." It refers to the architecture of the language
model used to create ChatGPT. The model was pre-trained on a large corpus of text data and is
capable of generating human-like responses to natural language prompts.
Solution: (b)
Google Translate primarily uses machine learning (ML) technology called neural machine translation
(NMT), a subfield of Natural Language Processing (NLP). NMT is a type of deep learning that uses
neural networks to translate text from one language to another. Google Translate's NMT model was
trained on a large corpus of multilingual text data and is able to generate more accurate and natural-
sounding translations than previous machine translation methods. The system is constantly
improving as it is trained on more data and feedback from users.
Solution: (a)
Spam email classification, image classification, and house price prediction are all examples of
problems that can be solved using machine learning techniques. However, sorting algorithms are not
typically considered to be an ML problem.
4. Which of the following technologies use AI? You may search about these and then answer.
a. Digi Yatra enables smooth check-in on Airports
b. e-KYC (Know your customer) enables customer verification remotely
c. Pragyan rover, a lander for Chandrayaan 2, communicates from the Moon
d. All of the above
Solution: (d)
• Digi Yatra, changing the airport experience with AI and Computer Vision
(https://indiaai.gov.in/article/digi-yatra-changing-the-airport-experience-with-ai-and-
computer-vision)
• FIVE ways that AI augments FinTech (https://indiaai.gov.in/article/five-ways-that-ai-
augments-fintech )
• The Pragyan rover, a lander for Chandrayaan 2, uses AI technology to communicate from the
Moon (https://indiaai.gov.in/article/how-ai-helped-isro-to-reach-its-pinnacle)
5. Go through the National Strategy for AI Report published by NITI Aayog in June 2018
(https://niti.gov.in/sites/default/files/2019-01/NationalStrategy-for-AI-Discussion-Paper.pdf
). Which of the below mentioned areas are the key focus areas for AI intervention according
to this report?
i. Healthcare
ii. Agriculture
iii. Education
iv. Smart Cities and Infrastructure
v. Smart Mobility and Transportation
a. Only (i), (ii), and (iii)
b. Only (iv) and (v)
c. All except (iv)
d. All of the five
Solution: (d)
6. If a given set has 𝑛 eelements in it, then the total number of proper subsets is:
a. 2𝑛
b. 𝑛
c. 2𝑛 − 1
d. 2𝑛 + 1
Solution: (c)
7. Which of the following show the correct visualization (using Python numpy module) of
tanh(𝑥) function. 𝑥 ranges in [−5,5].
Solution: (a)
The plots are (a) tanh(𝑥), (b) sinh(𝑥), (c) cosh(𝑥), and (d) tan 𝑥 .
Solution: (c)
Solution: (c)
• 𝑛
𝐶0 = 𝑛𝐶𝑛 = 1 ⇒ (i) is False, (ii) is True
• If 𝑛𝐶𝑟 = 𝑛𝐶𝑘 , then either 𝑟 = 𝑘 or 𝑛 − 𝑟 = 𝑘 ⟹ (iii) is False
• 𝑛
𝐶𝑟 + 𝑛𝐶𝑟−1 = 𝑛+1𝐶𝑟 ⟹ (iv) is True
Solution: (c)
l = []
for i in range(1, 6):
if i == 3:
continue
l.append(i)
print(l)
a. [1, 2, 3, 4, 5]
b. [1, 2, 4, 5]
c. [1, 2, 4, 5, 6]
d. [1, 2, 4, 5, 7]
Solution: (b)
12. What is the output for the following code snippet?
a. [2, 4, 6, 8, 10]
b. [2, 4, 6, 8, [10]]
c. [2, 4, 6, 8], [10]
d. [2, 4, 6, 8], 10
Solution: (b)
a. [1, 3, 5, 7, 9]
b. [1, 1, 3, 5, 7, 9]
c. TypeError: ‘tuple’ object does not support item assignment
d. Syntax error
Solution: (c)
On giving ‘Bharat’ as the input string, select which of the following will be the output of the print
statement written in the code.
a. BharattarahB
b. BharatBharat
c. Bharat
d. tarahB
Solution: (a)
15. What is the output for the following code snippet?
import pandas as pd
data = {'name': ['Anil', 'Brijesh', 'Cauvery'], 'age': [25, 30,
35], 'salary': [50000, 60000, 70000]}
df = pd.DataFrame(data)
df.drop(index=[1], inplace=True)
df.reset_index(drop=True, inplace=True)
print(df.loc[0][0])
a. 5000
b. ‘Anil’
c. ‘name’
d. 60000
Solution: (b)