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