MCQOPTIONS
Saved Bookmarks
This section includes 7 Mcqs, each offering curated multiple-choice questions to sharpen your Technical MCQs knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
import numpy as np dt = dt = np.dtype('i4') print dt10.Each built-in data type has a character code that uniquely identifies it.What is meaning of code "M"? |
| A. | timedelta |
| B. | datetime |
| C. | objects |
| D. | Unicode |
| E. | |
| Answer» C. objects | |
| 2. |
If a dimension is given as ____ in a reshaping operation, the other dimensions are automatically calculated. |
| A. | Zero |
| B. | One |
| C. | Negative one |
| D. | Infinite |
| Answer» D. Infinite | |
| 3. |
import numpy as np a = np.array([1, 2, 3], dtype = complex) print a6.Which of the following statement is false? |
| A. | ndarray is also known as the axis array. |
| B. | ndarray.dataitemSize is the buffer containing the actual elements of the array. |
| C. | NumPy main object is the homogeneous multidimensional array |
| D. | In Numpy, dimensions are called axes |
| Answer» B. ndarray.dataitemSize is the buffer containing the actual elements of the array. | |
| 4. |
import numpy as np a = np.array([1,2,3]) print a5.What will be output for the following code? |
| A. | [[ 1.+0.j, 2.+0.j, 3.+0.j]] |
| B. | [ 1.+0.j] |
| C. | Error |
| D. | [ 1.+0.j, 2.+0.j, 3.+0.j] |
| Answer» E. | |
| 5. |
The most important object defined in NumPy is an N-dimensional array type called? |
| A. | ndarray |
| B. | narray |
| C. | nd_array |
| D. | darray |
| Answer» B. narray | |
| 6. |
NumPy is often used along with packages like? |
| A. | Node.js |
| B. | Matplotlib |
| C. | SciPy |
| D. | Both B and C |
| Answer» E. | |
| 7. |
NumPY stands for? |
| A. | Numbering Python |
| B. | Number In Python |
| C. | Numerical Python |
| D. | None Of the above |
| Answer» D. None Of the above | |