SlideShare a Scribd company logo
NPTEL – PYTHON FOR DATA SCIENCE
ASSIGNMENT 2 – SOLUTION
1. Answer C: Tuples
Tuples is defined by enclosing the elements in parentheses ‘()’
2. Answer B: numpy arrays are immutable
Numpy Arrays are mutable, which means that you can change the value of an
element in the array after an array has been initialized.
3. Answer C: print (a[-1])
4. Answer D: x = np.arange(10); x[5::-2]
5. Answer C: 8,9,15
6. Answer C: extend()
extend () is the method used to increase the length of the list by number of
elements in its argument.
7. Answer A: np.argsort ()
np.argsort () returns the indices that would sort an array
8. Answer C: tuple[3] = 45
'tuple' object does not support item assignment
9. Answer A: len(N) & C: np.size(N)
10.Answer C: M = set([11,12],[13,14],[14,15])
11.Answer D: S={13,14}
12.Answer A: a | b
Union is performed using | operator in python
13.Answer B: Gives the number of axes or dimensions in the array
ndarray.ndim gives the number of axes or dimensions in the array
14.Answer C: d["oranges "] = 0.90
15.Answer D: all of the above
np.concatenate, np.hstack, and np.vstack help in joining arrays
16.Answer B: { 1: 2, '1': 2 }
17.Answer C: [0, 1, 4, 9]
18.Answer C: 8
19. Which of the following is not possible in sequence datatypes?
Answer B: Create a list inside a set
Create a list inside a set is not possible in sequence datatypes
For eg:
20.Answer D: np.full((3,3),True)
Ad

More Related Content

What's hot (20)

Day 2 examples u8f13
Day 2 examples u8f13Day 2 examples u8f13
Day 2 examples u8f13
jchartiersjsd
 
Day 8b examples
Day 8b examplesDay 8b examples
Day 8b examples
jchartiersjsd
 
Presenter name aizaz ali
Presenter name aizaz aliPresenter name aizaz ali
Presenter name aizaz ali
AizazAli21
 
Application of Derivative 7
Application of Derivative 7Application of Derivative 7
Application of Derivative 7
Lakshmikanta Satapathy
 
Aa4
Aa4Aa4
Aa4
CEYHUN KIRIMLI
 
8.1
8.18.1
8.1
nglaze10
 
Pc 1.8 notes
Pc 1.8 notesPc 1.8 notes
Pc 1.8 notes
Jonathan Fjelstrom
 
Metric k center
Metric k centerMetric k center
Metric k center
Hsiao-Fei Liu
 
香港六合彩
香港六合彩香港六合彩
香港六合彩
baoyin
 
2-Rainbow Domination of Hexagonal Mesh Networks
2-Rainbow Domination of Hexagonal Mesh Networks2-Rainbow Domination of Hexagonal Mesh Networks
2-Rainbow Domination of Hexagonal Mesh Networks
ijcoa
 
Steering Time-Dependent Estimation of Posteriors with Hyperparameter Indexing...
Steering Time-Dependent Estimation of Posteriors with Hyperparameter Indexing...Steering Time-Dependent Estimation of Posteriors with Hyperparameter Indexing...
Steering Time-Dependent Estimation of Posteriors with Hyperparameter Indexing...
Tomonari Masada
 
Ada boosting2
Ada boosting2Ada boosting2
Ada boosting2
Nassim Asbai
 
Javascript Array map method
Javascript Array map methodJavascript Array map method
Javascript Array map method
tanerochris
 
AP Calculus 1984 FRQs
AP Calculus 1984 FRQsAP Calculus 1984 FRQs
AP Calculus 1984 FRQs
A Jorge Garcia
 
DiffCalculus: September 10, 2012
DiffCalculus: September 10, 2012DiffCalculus: September 10, 2012
DiffCalculus: September 10, 2012
Carlos Vázquez
 
Data structure
Data structureData structure
Data structure
kavitha muneeshwaran
 
Operations With Functions May 25 2009
Operations With Functions May 25 2009Operations With Functions May 25 2009
Operations With Functions May 25 2009
ingroy
 
1988 FRQs AP Calculus
1988 FRQs AP Calculus1988 FRQs AP Calculus
1988 FRQs AP Calculus
A Jorge Garcia
 
Exercise set 3.7
Exercise set 3.7Exercise set 3.7
Exercise set 3.7
math265
 
TreatJS: Higher-Order Contracts for JavaScript
TreatJS: Higher-Order Contracts for JavaScriptTreatJS: Higher-Order Contracts for JavaScript
TreatJS: Higher-Order Contracts for JavaScript
Matthias Keil
 
Day 2 examples u8f13
Day 2 examples u8f13Day 2 examples u8f13
Day 2 examples u8f13
jchartiersjsd
 
Presenter name aizaz ali
Presenter name aizaz aliPresenter name aizaz ali
Presenter name aizaz ali
AizazAli21
 
香港六合彩
香港六合彩香港六合彩
香港六合彩
baoyin
 
2-Rainbow Domination of Hexagonal Mesh Networks
2-Rainbow Domination of Hexagonal Mesh Networks2-Rainbow Domination of Hexagonal Mesh Networks
2-Rainbow Domination of Hexagonal Mesh Networks
ijcoa
 
Steering Time-Dependent Estimation of Posteriors with Hyperparameter Indexing...
Steering Time-Dependent Estimation of Posteriors with Hyperparameter Indexing...Steering Time-Dependent Estimation of Posteriors with Hyperparameter Indexing...
Steering Time-Dependent Estimation of Posteriors with Hyperparameter Indexing...
Tomonari Masada
 
Javascript Array map method
Javascript Array map methodJavascript Array map method
Javascript Array map method
tanerochris
 
DiffCalculus: September 10, 2012
DiffCalculus: September 10, 2012DiffCalculus: September 10, 2012
DiffCalculus: September 10, 2012
Carlos Vázquez
 
Operations With Functions May 25 2009
Operations With Functions May 25 2009Operations With Functions May 25 2009
Operations With Functions May 25 2009
ingroy
 
Exercise set 3.7
Exercise set 3.7Exercise set 3.7
Exercise set 3.7
math265
 
TreatJS: Higher-Order Contracts for JavaScript
TreatJS: Higher-Order Contracts for JavaScriptTreatJS: Higher-Order Contracts for JavaScript
TreatJS: Higher-Order Contracts for JavaScript
Matthias Keil
 

Similar to A2 python basics_nptel_pds2_sol (20)

Topic20Arrays_Part2.ppt
Topic20Arrays_Part2.pptTopic20Arrays_Part2.ppt
Topic20Arrays_Part2.ppt
adityavarte
 
Learn Dynamic Programming Roadmap at Tutort Academy
Learn Dynamic Programming Roadmap at Tutort AcademyLearn Dynamic Programming Roadmap at Tutort Academy
Learn Dynamic Programming Roadmap at Tutort Academy
Tutort Academy
 
NUMPY-2.pptx
NUMPY-2.pptxNUMPY-2.pptx
NUMPY-2.pptx
MahendraVusa
 
NUMPY [Autosaved] .pptx
NUMPY [Autosaved]                    .pptxNUMPY [Autosaved]                    .pptx
NUMPY [Autosaved] .pptx
coolmanbalu123
 
Answers withexplanations
Answers withexplanationsAnswers withexplanations
Answers withexplanations
Gopi Saiteja
 
Lesson 18-20.pptx
Lesson 18-20.pptxLesson 18-20.pptx
Lesson 18-20.pptx
MIZANURRAHMANTUSHAR1
 
Permutations and Combinations IIT JEE+Olympiad Lecture 4
Permutations and Combinations IIT JEE+Olympiad Lecture 4Permutations and Combinations IIT JEE+Olympiad Lecture 4
Permutations and Combinations IIT JEE+Olympiad Lecture 4
Parth Nandedkar
 
The Ultimate Dynamic Programming RoadMap | Tutort Academy
The Ultimate Dynamic Programming RoadMap | Tutort AcademyThe Ultimate Dynamic Programming RoadMap | Tutort Academy
The Ultimate Dynamic Programming RoadMap | Tutort Academy
Tutort Academy
 
CE344L-200365-Lab2.pdf
CE344L-200365-Lab2.pdfCE344L-200365-Lab2.pdf
CE344L-200365-Lab2.pdf
UmarMustafa13
 
NUMPY
NUMPY NUMPY
NUMPY
SharmilaChidaravalli
 
Master the arrays and algorithms using Algotutor
Master the arrays and algorithms using AlgotutorMaster the arrays and algorithms using Algotutor
Master the arrays and algorithms using Algotutor
VivekanandaGN1
 
C++ How to Program Early Objects Version 9th Edition Deitel Solutions Manual
C++ How to Program Early Objects Version 9th Edition Deitel Solutions ManualC++ How to Program Early Objects Version 9th Edition Deitel Solutions Manual
C++ How to Program Early Objects Version 9th Edition Deitel Solutions Manual
abosinnurina
 
C++ How to Program Early Objects Version 9th Edition Deitel Solutions Manual
C++ How to Program Early Objects Version 9th Edition Deitel Solutions ManualC++ How to Program Early Objects Version 9th Edition Deitel Solutions Manual
C++ How to Program Early Objects Version 9th Edition Deitel Solutions Manual
pakwanritler
 
Homework Assignment – Array Technical DocumentWrite a technical .pdf
Homework Assignment – Array Technical DocumentWrite a technical .pdfHomework Assignment – Array Technical DocumentWrite a technical .pdf
Homework Assignment – Array Technical DocumentWrite a technical .pdf
aroraopticals15
 
Arrays in C Programming
Arrays in C ProgrammingArrays in C Programming
Arrays in C Programming
Dept. of CSE , Guru Nanak Institute of Technology , Nagpur
 
Array and its operation in C programming
Array and its operation in C programmingArray and its operation in C programming
Array and its operation in C programming
Rhishav Poudyal
 
Arrays
ArraysArrays
Arrays
Chukka Nikhil Chakravarthy
 
Arrays
ArraysArrays
Arrays
Trupti Agrawal
 
Arrays and vectors in Data Structure.ppt
Arrays and vectors in Data Structure.pptArrays and vectors in Data Structure.ppt
Arrays and vectors in Data Structure.ppt
mazanali7145
 
Arrays and library functions
Arrays and library functionsArrays and library functions
Arrays and library functions
Swarup Boro
 
Topic20Arrays_Part2.ppt
Topic20Arrays_Part2.pptTopic20Arrays_Part2.ppt
Topic20Arrays_Part2.ppt
adityavarte
 
Learn Dynamic Programming Roadmap at Tutort Academy
Learn Dynamic Programming Roadmap at Tutort AcademyLearn Dynamic Programming Roadmap at Tutort Academy
Learn Dynamic Programming Roadmap at Tutort Academy
Tutort Academy
 
NUMPY [Autosaved] .pptx
NUMPY [Autosaved]                    .pptxNUMPY [Autosaved]                    .pptx
NUMPY [Autosaved] .pptx
coolmanbalu123
 
Answers withexplanations
Answers withexplanationsAnswers withexplanations
Answers withexplanations
Gopi Saiteja
 
Permutations and Combinations IIT JEE+Olympiad Lecture 4
Permutations and Combinations IIT JEE+Olympiad Lecture 4Permutations and Combinations IIT JEE+Olympiad Lecture 4
Permutations and Combinations IIT JEE+Olympiad Lecture 4
Parth Nandedkar
 
The Ultimate Dynamic Programming RoadMap | Tutort Academy
The Ultimate Dynamic Programming RoadMap | Tutort AcademyThe Ultimate Dynamic Programming RoadMap | Tutort Academy
The Ultimate Dynamic Programming RoadMap | Tutort Academy
Tutort Academy
 
CE344L-200365-Lab2.pdf
CE344L-200365-Lab2.pdfCE344L-200365-Lab2.pdf
CE344L-200365-Lab2.pdf
UmarMustafa13
 
Master the arrays and algorithms using Algotutor
Master the arrays and algorithms using AlgotutorMaster the arrays and algorithms using Algotutor
Master the arrays and algorithms using Algotutor
VivekanandaGN1
 
C++ How to Program Early Objects Version 9th Edition Deitel Solutions Manual
C++ How to Program Early Objects Version 9th Edition Deitel Solutions ManualC++ How to Program Early Objects Version 9th Edition Deitel Solutions Manual
C++ How to Program Early Objects Version 9th Edition Deitel Solutions Manual
abosinnurina
 
C++ How to Program Early Objects Version 9th Edition Deitel Solutions Manual
C++ How to Program Early Objects Version 9th Edition Deitel Solutions ManualC++ How to Program Early Objects Version 9th Edition Deitel Solutions Manual
C++ How to Program Early Objects Version 9th Edition Deitel Solutions Manual
pakwanritler
 
Homework Assignment – Array Technical DocumentWrite a technical .pdf
Homework Assignment – Array Technical DocumentWrite a technical .pdfHomework Assignment – Array Technical DocumentWrite a technical .pdf
Homework Assignment – Array Technical DocumentWrite a technical .pdf
aroraopticals15
 
Array and its operation in C programming
Array and its operation in C programmingArray and its operation in C programming
Array and its operation in C programming
Rhishav Poudyal
 
Arrays and vectors in Data Structure.ppt
Arrays and vectors in Data Structure.pptArrays and vectors in Data Structure.ppt
Arrays and vectors in Data Structure.ppt
mazanali7145
 
Arrays and library functions
Arrays and library functionsArrays and library functions
Arrays and library functions
Swarup Boro
 
Ad

Recently uploaded (20)

Template_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
Template_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnTemplate_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
Template_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
cegiver630
 
IAS-slides2-ia-aaaaaaaaaaain-business.pdf
IAS-slides2-ia-aaaaaaaaaaain-business.pdfIAS-slides2-ia-aaaaaaaaaaain-business.pdf
IAS-slides2-ia-aaaaaaaaaaain-business.pdf
mcgardenlevi9
 
Calories_Prediction_using_Linear_Regression.pptx
Calories_Prediction_using_Linear_Regression.pptxCalories_Prediction_using_Linear_Regression.pptx
Calories_Prediction_using_Linear_Regression.pptx
TijiLMAHESHWARI
 
Data Analytics Overview and its applications
Data Analytics Overview and its applicationsData Analytics Overview and its applications
Data Analytics Overview and its applications
JanmejayaMishra7
 
chapter 4 Variability statistical research .pptx
chapter 4 Variability statistical research .pptxchapter 4 Variability statistical research .pptx
chapter 4 Variability statistical research .pptx
justinebandajbn
 
VKS-Python Basics for Beginners and advance.pptx
VKS-Python Basics for Beginners and advance.pptxVKS-Python Basics for Beginners and advance.pptx
VKS-Python Basics for Beginners and advance.pptx
Vinod Srivastava
 
How iCode cybertech Helped Me Recover My Lost Funds
How iCode cybertech Helped Me Recover My Lost FundsHow iCode cybertech Helped Me Recover My Lost Funds
How iCode cybertech Helped Me Recover My Lost Funds
ireneschmid345
 
Ch3MCT24.pptx measure of central tendency
Ch3MCT24.pptx measure of central tendencyCh3MCT24.pptx measure of central tendency
Ch3MCT24.pptx measure of central tendency
ayeleasefa2
 
1. Briefing Session_SEED with Hon. Governor Assam - 27.10.pdf
1. Briefing Session_SEED with Hon. Governor Assam - 27.10.pdf1. Briefing Session_SEED with Hon. Governor Assam - 27.10.pdf
1. Briefing Session_SEED with Hon. Governor Assam - 27.10.pdf
Simran112433
 
VKS-Python-FIe Handling text CSV Binary.pptx
VKS-Python-FIe Handling text CSV Binary.pptxVKS-Python-FIe Handling text CSV Binary.pptx
VKS-Python-FIe Handling text CSV Binary.pptx
Vinod Srivastava
 
How to join illuminati Agent in uganda call+256776963507/0741506136
How to join illuminati Agent in uganda call+256776963507/0741506136How to join illuminati Agent in uganda call+256776963507/0741506136
How to join illuminati Agent in uganda call+256776963507/0741506136
illuminati Agent uganda call+256776963507/0741506136
 
GenAI for Quant Analytics: survey-analytics.ai
GenAI for Quant Analytics: survey-analytics.aiGenAI for Quant Analytics: survey-analytics.ai
GenAI for Quant Analytics: survey-analytics.ai
Inspirient
 
Defense Against LLM Scheming 2025_04_28.pptx
Defense Against LLM Scheming 2025_04_28.pptxDefense Against LLM Scheming 2025_04_28.pptx
Defense Against LLM Scheming 2025_04_28.pptx
Greg Makowski
 
chapter3 Central Tendency statistics.ppt
chapter3 Central Tendency statistics.pptchapter3 Central Tendency statistics.ppt
chapter3 Central Tendency statistics.ppt
justinebandajbn
 
Just-In-Timeasdfffffffghhhhhhhhhhj Systems.ppt
Just-In-Timeasdfffffffghhhhhhhhhhj Systems.pptJust-In-Timeasdfffffffghhhhhhhhhhj Systems.ppt
Just-In-Timeasdfffffffghhhhhhhhhhj Systems.ppt
ssuser5f8f49
 
03 Daniel 2-notes.ppt seminario escatologia
03 Daniel 2-notes.ppt seminario escatologia03 Daniel 2-notes.ppt seminario escatologia
03 Daniel 2-notes.ppt seminario escatologia
Alexander Romero Arosquipa
 
md-presentHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHation.pptx
md-presentHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHation.pptxmd-presentHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHation.pptx
md-presentHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHation.pptx
fatimalazaar2004
 
Conic Sectionfaggavahabaayhahahahahs.pptx
Conic Sectionfaggavahabaayhahahahahs.pptxConic Sectionfaggavahabaayhahahahahs.pptx
Conic Sectionfaggavahabaayhahahahahs.pptx
taiwanesechetan
 
C++_OOPs_DSA1_Presentation_Template.pptx
C++_OOPs_DSA1_Presentation_Template.pptxC++_OOPs_DSA1_Presentation_Template.pptx
C++_OOPs_DSA1_Presentation_Template.pptx
aquibnoor22079
 
Classification_in_Machinee_Learning.pptx
Classification_in_Machinee_Learning.pptxClassification_in_Machinee_Learning.pptx
Classification_in_Machinee_Learning.pptx
wencyjorda88
 
Template_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
Template_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnTemplate_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
Template_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
cegiver630
 
IAS-slides2-ia-aaaaaaaaaaain-business.pdf
IAS-slides2-ia-aaaaaaaaaaain-business.pdfIAS-slides2-ia-aaaaaaaaaaain-business.pdf
IAS-slides2-ia-aaaaaaaaaaain-business.pdf
mcgardenlevi9
 
Calories_Prediction_using_Linear_Regression.pptx
Calories_Prediction_using_Linear_Regression.pptxCalories_Prediction_using_Linear_Regression.pptx
Calories_Prediction_using_Linear_Regression.pptx
TijiLMAHESHWARI
 
Data Analytics Overview and its applications
Data Analytics Overview and its applicationsData Analytics Overview and its applications
Data Analytics Overview and its applications
JanmejayaMishra7
 
chapter 4 Variability statistical research .pptx
chapter 4 Variability statistical research .pptxchapter 4 Variability statistical research .pptx
chapter 4 Variability statistical research .pptx
justinebandajbn
 
VKS-Python Basics for Beginners and advance.pptx
VKS-Python Basics for Beginners and advance.pptxVKS-Python Basics for Beginners and advance.pptx
VKS-Python Basics for Beginners and advance.pptx
Vinod Srivastava
 
How iCode cybertech Helped Me Recover My Lost Funds
How iCode cybertech Helped Me Recover My Lost FundsHow iCode cybertech Helped Me Recover My Lost Funds
How iCode cybertech Helped Me Recover My Lost Funds
ireneschmid345
 
Ch3MCT24.pptx measure of central tendency
Ch3MCT24.pptx measure of central tendencyCh3MCT24.pptx measure of central tendency
Ch3MCT24.pptx measure of central tendency
ayeleasefa2
 
1. Briefing Session_SEED with Hon. Governor Assam - 27.10.pdf
1. Briefing Session_SEED with Hon. Governor Assam - 27.10.pdf1. Briefing Session_SEED with Hon. Governor Assam - 27.10.pdf
1. Briefing Session_SEED with Hon. Governor Assam - 27.10.pdf
Simran112433
 
VKS-Python-FIe Handling text CSV Binary.pptx
VKS-Python-FIe Handling text CSV Binary.pptxVKS-Python-FIe Handling text CSV Binary.pptx
VKS-Python-FIe Handling text CSV Binary.pptx
Vinod Srivastava
 
GenAI for Quant Analytics: survey-analytics.ai
GenAI for Quant Analytics: survey-analytics.aiGenAI for Quant Analytics: survey-analytics.ai
GenAI for Quant Analytics: survey-analytics.ai
Inspirient
 
Defense Against LLM Scheming 2025_04_28.pptx
Defense Against LLM Scheming 2025_04_28.pptxDefense Against LLM Scheming 2025_04_28.pptx
Defense Against LLM Scheming 2025_04_28.pptx
Greg Makowski
 
chapter3 Central Tendency statistics.ppt
chapter3 Central Tendency statistics.pptchapter3 Central Tendency statistics.ppt
chapter3 Central Tendency statistics.ppt
justinebandajbn
 
Just-In-Timeasdfffffffghhhhhhhhhhj Systems.ppt
Just-In-Timeasdfffffffghhhhhhhhhhj Systems.pptJust-In-Timeasdfffffffghhhhhhhhhhj Systems.ppt
Just-In-Timeasdfffffffghhhhhhhhhhj Systems.ppt
ssuser5f8f49
 
md-presentHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHation.pptx
md-presentHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHation.pptxmd-presentHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHation.pptx
md-presentHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHation.pptx
fatimalazaar2004
 
Conic Sectionfaggavahabaayhahahahahs.pptx
Conic Sectionfaggavahabaayhahahahahs.pptxConic Sectionfaggavahabaayhahahahahs.pptx
Conic Sectionfaggavahabaayhahahahahs.pptx
taiwanesechetan
 
C++_OOPs_DSA1_Presentation_Template.pptx
C++_OOPs_DSA1_Presentation_Template.pptxC++_OOPs_DSA1_Presentation_Template.pptx
C++_OOPs_DSA1_Presentation_Template.pptx
aquibnoor22079
 
Classification_in_Machinee_Learning.pptx
Classification_in_Machinee_Learning.pptxClassification_in_Machinee_Learning.pptx
Classification_in_Machinee_Learning.pptx
wencyjorda88
 
Ad

A2 python basics_nptel_pds2_sol

  • 1. NPTEL – PYTHON FOR DATA SCIENCE ASSIGNMENT 2 – SOLUTION 1. Answer C: Tuples Tuples is defined by enclosing the elements in parentheses ‘()’ 2. Answer B: numpy arrays are immutable Numpy Arrays are mutable, which means that you can change the value of an element in the array after an array has been initialized. 3. Answer C: print (a[-1]) 4. Answer D: x = np.arange(10); x[5::-2] 5. Answer C: 8,9,15 6. Answer C: extend() extend () is the method used to increase the length of the list by number of elements in its argument. 7. Answer A: np.argsort () np.argsort () returns the indices that would sort an array
  • 2. 8. Answer C: tuple[3] = 45 'tuple' object does not support item assignment 9. Answer A: len(N) & C: np.size(N) 10.Answer C: M = set([11,12],[13,14],[14,15]) 11.Answer D: S={13,14} 12.Answer A: a | b Union is performed using | operator in python 13.Answer B: Gives the number of axes or dimensions in the array ndarray.ndim gives the number of axes or dimensions in the array 14.Answer C: d["oranges "] = 0.90
  • 3. 15.Answer D: all of the above np.concatenate, np.hstack, and np.vstack help in joining arrays 16.Answer B: { 1: 2, '1': 2 } 17.Answer C: [0, 1, 4, 9] 18.Answer C: 8 19. Which of the following is not possible in sequence datatypes? Answer B: Create a list inside a set Create a list inside a set is not possible in sequence datatypes
  • 4. For eg: 20.Answer D: np.full((3,3),True)