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