0% 0 Get ready, set, go Time ended Quiz on Python Pandas This is a comprehensive MCQ quiz on Python Pandas 1 / 10 1. Ankita, a student of class 12th has created a Pandas series S1 as shown below A) print(S1[0:3]) B) print(S1[1:3]) C) print(S1[2:4]) D) print(S1[:3]) 2 / 10 2. Let a series S contain 5 elements. What will be the result of S.head(8)? A) Produce an error B) Display all the five element of the series. C) Display three elements D) Display eight elements with last 3 as None 3 / 10 3. Consider a series S= pd.Series(10,index=[10,20,30]). What will be output of the following command? >>>print(S[2]) A) 30 B) error C) 20 D) 10 4 / 10 4. Assume 2 Series S1 containing 5 elements, and S2 containing 7 elements, What will the result of S3 = S1+ S3 A) Add the corresponding elements of series but will put NaN as result where elements of an index is not found in other series B) Will produce error as both series are not of same size C) Will join the S2 after S1 and the total number of elements in S3 will be 12. D) Pandas does not allow addition of Series 5 / 10 5. Consider a series S =pd.Series([10,20, 30,[40,50], 60]). What will be output of the following commands?>>>print(S.count()) A) 5 B) 6 C) error D) 4 6 / 10 6. It is possible to have a series with duplicate index. A) True but duplicate indexes will be ignored B) True C) False D) only boolean indexes may be duplicated 7 / 10 7. Default datatype of an empty series is A) int64 B) int32 C) float64 D) float32 8 / 10 8. Consider a series S=pd.Series(). Which of the following statement will return True? A) print(s.index) B) print(s.values) C) print(s.empty) D) print(s.size) 9 / 10 9. Select the result of the following statement : series S =pd.Series(10,['a','b','c']) A) Series will have one row with index as 'a' and value as 10 B) Series will contain three rows with index as 'a','b','c' and values as 10 for all three rows C) An error will occur D) Series will not be created 10 / 10 10. Select the result of the following statement : series S =pd.Series([10],['a','b','c']) A) An error will occur B) Series will contain three rows with index as 'a','b','c' and values as 10 for all three rows C) Series will not be created D) Series will have one row with index as 'a' and value as 10 Your score is The average score is 0%Share this quiz with your friends, LinkedIn Facebook Twitter 0% Restart quiz Rate the quiz Send feedback Post navigation Quiz on Python Lists