MCQOPTIONS
Saved Bookmarks
This section includes 8 Mcqs, each offering curated multiple-choice questions to sharpen your Data Science knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
The array object returned by __array_prepare__ is passed to the ufunc for computation. |
| A. | True |
| B. | False |
| Answer» B. False | |
| 2. |
Which of the following function take only single value as input? |
| A. | iscomplex |
| B. | minimum |
| C. | fmin |
| D. | all of the mentioned |
| Answer» B. minimum | |
| 3. |
___________ decompose the elements of x into mantissa and twos exponent. |
| A. | trunc |
| B. | fmod |
| C. | frexp |
| D. | ldexp |
| Answer» D. ldexp | |
| 4. |
Some ufuncs can take output arguments. |
| A. | True |
| B. | False |
| Answer» C. | |
| 5. |
Which of the following set the floating-point error callback function or log object? |
| A. | setter |
| B. | settercall |
| C. | setterstack |
| D. | all of the mentioned |
| Answer» C. setterstack | |
| 6. |
Which of the following returns an array of ones with the same shape and type as a given array? |
| A. | all_like |
| B. | ones_like |
| C. | one_alike |
| D. | all of the mentioned |
| Answer» C. one_alike | |
| 7. |
Which of the following attribute should be used while checking for type combination input and output? |
| A. | .types |
| B. | .type |
| C. | .class |
| D. | all of the mentioned |
| Answer» B. .type | |
| 8. |
Which of the following sets the size of the buffer used in ufuncs? |
| A. | bufsize(size) |
| B. | setsize(size) |
| C. | setbufsize(size) |
| D. | all of the mentioned |
| Answer» D. all of the mentioned | |