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