Advertisements
Chapters
![NCERT solutions for Informatics Practices [English] Class 11 chapter 6 - Introduction to NumPy NCERT solutions for Informatics Practices [English] Class 11 chapter 6 - Introduction to NumPy - Shaalaa.com](/images/informatics-practices-english-class-11_6:39b241dd98de4cfc9ac0c69aa3e5940d.jpg)
Advertisements
Solutions for Chapter 6: Introduction to NumPy
Below listed, you can find solutions for Chapter 6 of CBSE NCERT for Informatics Practices [English] Class 11.
NCERT solutions for Informatics Practices [English] Class 11 6 Introduction to NumPy Intext Questions [Pages 100 - 111]
Think and Reflect
When we may require to create an array initialised to zeros or ones?
Activity 6.1
Can you write the command to load the data.txt including the header row as well?
Activity 6.1
Can you create a datafile and import data into multiple NumPy arrays column wise? (Hint: use the unpack parameter)
NCERT solutions for Informatics Practices [English] Class 11 6 Introduction to NumPy Exercise [Pages 113 - 114]
What is NumPy?
How to install NumPy?
What is Array?
How is an array different from a list?
What is the name of the built-in array class in NumPy ?
What do you understand by rank of an ndarray?
Create the following NumPy arrays:
A 1-D array called zeros having 10 elements and all the elements are set to zero.
Create the following NumPy arrays:
A 1-D array called vowels having the elements ‘a’, ‘e’, ‘i’, ‘o’ and ‘u’.
Create the following NumPy arrays:
A 2-D array called ones having 2 rows and 5 columns and all the elements are set to 1 and dtype as int.
Create the following NumPy arrays:
Use nested Python lists to create a 2-D array called myarray1 having 3 rows and 3 columns and store the following data:
| 2.7, | -2, | -19 |
| 0, | 3.4, | 99.9 |
| 10.6, | 0, | 13 |
Create the following NumPy arrays:
A 2-D array called myarray2 using arange() having 3 rows and 5 columns with start value = 4, step size 4 and dtype as float.
Using the arrays created in Question 4 above, write NumPy commands for the following:
- Find the dimensions, shape, size, data type of the items and itemsize of arrays zeros, vowels, ones, myarray1 and myarray2.
- Reshape the array ones to have all the 10 elements in a single row.
- Display the 2nd and 3rd element of the array vowels.
- Display all elements in the 2nd and 3rd row of the array myarray1.
- Display the elements in the 1st and 2nd column of the array myarray1.
- Display the elements in the 1st column of the 2nd and 3rd row of the array myarray1.
- Reverse the array of vowels.
Using the arrays created in Question 4 above, write NumPy commands for the following:
- Divide all elements of array ones by 3.
- Add the arrays myarray1 and myarray2.
- Subtract myarray1 from myarray2 and store the result in a new array.
- Multiply myarray1 and myarray2 elementwise.
- Do the matrix multiplication of myarray1 and myarray2 and store the result in a new array myarray3.
- Divide myarray1 by myarray2.
- Find the cube of all elements of myarray1 and divide the resulting array by 2.
- Find the square root of all elements of myarray2 and divide the resulting array by 2. The result should be rounded to two places of decimals.
Using the arrays created in Question 4 above, write NumPy commands for the following:
- Find the transpose of ones and myarray2.
- Sort the array vowels in reverse.
- Sort the array myarray1 such that it brings the lowest value of the column in the first row and so on.
Using the arrays created in Question 4 above, write NumPy commands for the following:
- Use NumPy. split() to split the array myarray2 into 5 arrays columnwise. Store your resulting arrays in myarray2A, myarray2B, myarray2C, myarray2D and myarray2E. Print the arrays myarray2A, myarray2B, myarray2C, myarray2D and myarray2E.
- Split the array zeros at array index 2, 5, 7, 8 and store the resulting arrays in zerosA, zerosB, zerosC and zerosD and print them.
- Concatenate the arrays myarray2A, myarray2B and myarray2C into an array having 3 rows and 3 columns.
Create a 2-D array called myarray4 using arange() having 14 rows and 3 columns with start value = -1, step size 0.25 having. Split this array row wise into 3 equal parts and print the result.
Using the myarray4 created in the above questions, write commands for the following:
- Find the sum of all elements.
- Find the sum of all elements row wise.
- Find the sum of all elements column wise
- Find the max of all elements.
- Find the min of all elements in each row.
- Find the mean of all elements in each row.
- Find the standard deviation column wise.
Solutions for 6: Introduction to NumPy
![NCERT solutions for Informatics Practices [English] Class 11 chapter 6 - Introduction to NumPy NCERT solutions for Informatics Practices [English] Class 11 chapter 6 - Introduction to NumPy - Shaalaa.com](/images/informatics-practices-english-class-11_6:39b241dd98de4cfc9ac0c69aa3e5940d.jpg)
NCERT solutions for Informatics Practices [English] Class 11 chapter 6 - Introduction to NumPy
Shaalaa.com has the CBSE Mathematics Informatics Practices [English] Class 11 CBSE solutions in a manner that help students grasp basic concepts better and faster. The detailed, step-by-step solutions will help you understand the concepts better and clarify any confusion. NCERT solutions for Mathematics Informatics Practices [English] Class 11 CBSE 6 (Introduction to NumPy) include all questions with answers and detailed explanations. This will clear students' doubts about questions and improve their application skills while preparing for board exams.
Further, we at Shaalaa.com provide such solutions so students can prepare for written exams. NCERT textbook solutions can be a core help for self-study and provide excellent self-help guidance for students.
Concepts covered in Informatics Practices [English] Class 11 chapter 6 Introduction to NumPy are .
Using NCERT Informatics Practices [English] Class 11 solutions Introduction to NumPy exercise by students is an easy way to prepare for the exams, as they involve solutions arranged chapter-wise and also page-wise. The questions involved in NCERT Solutions are essential questions that can be asked in the final exam. Maximum CBSE Informatics Practices [English] Class 11 students prefer NCERT Textbook Solutions to score more in exams.
Get the free view of Chapter 6, Introduction to NumPy Informatics Practices [English] Class 11 additional questions for Mathematics Informatics Practices [English] Class 11 CBSE, and you can use Shaalaa.com to keep it handy for your exam preparation.
