Monday, 11 October 2021

Data Science with Python Simulation Test 1

 Data Science with Python Simulation Test 1

1. What is the rank of the numpy array? array([[ 0, 4, 2], [ 9, 3, 7]])

SELECT THE CORRECT ANSWER: Rank 2


2. Choose the correct output of the following program: >>> a = np.array([11, 12, 13, 14]) >>> b = np.array([1, 2, 3, 4]) >>> c = a - b >>>c

SELECT THE CORRECT ANSWER: Array[10, 10, 10, 10]


3. Which of the following data structures of Pandas can handle 3D data?

SELECT THE CORRECT ANSWER: Panel


4. To combine datasets, the ____ function of Pandas can be utilized.

SELECT THE CORRECT ANSWER: Concat


5. What is the output of a and b? Given: a = 9/2 b = 5.2/2

SELECT THE CORRECT ANSWER: a = 4.5, b =2.6


6. A list is collection of values of multiple data types and can:

SELECT THE CORRECT ANSWER: add, update, remove

No comments:

Post a Comment