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

Assignment 0

The document discusses a machine learning assignment with multiple choice questions about topics like natural language processing, computer vision, neural networks and more. It contains the questions, their explanations and the correct answers.

Uploaded by

ss
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views

Assignment 0

The document discusses a machine learning assignment with multiple choice questions about topics like natural language processing, computer vision, neural networks and more. It contains the questions, their explanations and the correct answers.

Uploaded by

ss
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Machine Learning (ML) in Hindi

Week-0 Assignment
[Ungraded]
• All are MCQs with single correct answer.

1. What does GPT stand for in ChatGPT?


a. Generative Pre-trained Transformer
b. Generative Perfect Transformer
c. Generative Pre-trained Transistor
d. Great Perfect Translator

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.

2. Google Translate primarily uses which ML application?


a. Computer Vision (CV)
b. Natural Language Processing (NLP)
c. Speech Recognition
d. Robotics

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.

3. Which of the following is NOT an ML problem?


a. Sorting folders in your computer system
b. Classifying if an email is a spam
c. Identifying bird species using its photograph
d. Predicting house price in an area

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 𝑥 .

8. Which of the following is/are TRUE with respect to triangular inequality.


i. |𝑥 + 𝑦| ≤ |𝑥| + |𝑦|, ∀ 𝑥, 𝑦 ∈ ℝ
ii. |𝑥 − 𝑦| ≥ |𝑥| − |𝑦|, ∀ 𝑥, 𝑦 ∈ ℝ
a. Only (i)
b. Only (ii)
c. Both (i) and (ii)
d. None of the above

Solution: (c)

Both (i) and (ii) are correct.


9. Which of the following is/are TRUE property(ies) with respect to combinations.
i. 𝑛𝐶0 = 0
ii. 𝑛𝐶𝑛 = 1
iii. If 𝑛𝐶𝑟 = 𝑛𝐶𝑘 , then the statement 𝑟 = 𝑘 must always be True
iv. 𝑛𝐶𝑟 + 𝑛𝐶𝑟−1 = 𝑛+1𝐶𝑟
a. Only (i) and (iii)
b. All (i), (ii), (iii), and (iv)
c. Only (ii) and (iv)
d. Only (ii), (iii), and (iv)

Solution: (c)

• 𝑛
𝐶0 = 𝑛𝐶𝑛 = 1 ⇒ (i) is False, (ii) is True
• If 𝑛𝐶𝑟 = 𝑛𝐶𝑘 , then either 𝑟 = 𝑘 or 𝑛 − 𝑟 = 𝑘 ⟹ (iii) is False
• 𝑛
𝐶𝑟 + 𝑛𝐶𝑟−1 = 𝑛+1𝐶𝑟 ⟹ (iv) is True

10. Which of the following best describes a diagonal matrix?


a. A matrix in which all the elements below the main diagonal are zero
b. A matrix in which all the elements above the main diagonal are zero
c. A matrix in which all the elements off the main diagonal are zero
d. A matrix in which all the elements on and below the main diagonal are zero

Solution: (c)

11. What is the output for the following code snippet?

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?

my_list = [i for i in range(1, 10) if i % 2 == 0]


my_list.append([10])
print(my_list)

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)

13. What is the output for the following code snippet?

my_list = [i for i in range(1, 10) if i % 2 != 0]


my_tuple = tuple(my_list)
my_tuple[0] = 1
print(my_tuple)

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)

Tuples are immutable in Python.

14. The below code was run in a python environment.

string = input("Enter a string: ")


reverse_string = string[::-1]
palindrome = string + reverse_string
print(palindrome)
The following output was produced initially, which asked for an input.

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)

You might also like