Class 12 IP Chapter 1 Working With NumPy Solutions Sumita Arora New Syllabus / Uncategorized / By Neha Back Exercise Part A 2. How are 2D arrays internally stored ? ...click here for answer 3. Define the following terms : ...click here for answer 4. What are contiguous and non-contiguous subsets ? ...click here for answer 5. What functions can you use for joining two or more ndarrays ? ...click here for answer 6. What are functions using which you can extract contiguous subsets of ndarrays ? ...click here for answer 7. Which functions allow you to extract only rows or columns from an ndarray ? ...click here for answer 8. What are covariance, correlation and linear regression ? ...click here for answer 9. Name functions using which you can perform arithmetic operations on ndarrays. ...click here for answer 17. An immutable data type is one that cannot change after being created. Give three reasons to use immutable data. ...click here for answer Back Exercise Part B 1. If a Python list is having 7 integers and a numpy array is also having 7 integers, then how are these two data structures similar or different from one another ? ...click here for answer 2. Given a list L = [3, 4, 5] and an ndarray N having elements 3, 4, 5. What will be the result produced by : ...click here for answer 3. Write shapes of following ndarrays : ...click here for answer 4. Write code to create an ndarray having six zeros in it. Write statements to change 3rd and 5th elements of this ndarray to 15 and 25 respectively. ...click here for answer 5. Create a 3 x 4 two-dimensional ndarray from the range of integers 13..24. ...click here for answer 6. Consider following ndarrays : ...click here for answer 7. Predict the output of the following code fragments. Note library NumPy has been imported as np. ...click here for answer 8. Predict the output of the following code fragments. Library NumPy has been imported as np. ...click here for answer 9. Predict the output of the following code fragment. ...click here for answer 10. Write commands to split the following array as depicted below. Give alternate solutions. ...click here for answer 11. Write commands to perform following operations on two 4 x 4 ndarrays namely P and Q : ...click here for answer 12. Given two ID arrays A and B with same shape containing the data observations. Calculate the covariance, correlation and linear regression. ...click here for answer