🧠ASSERTION–REASON QUESTIONS (Q101–Q110)
Directions:
Choose the correct option:
A. Both A and R are true, and R is the correct explanation of A
B. Both A and R are true, but R is not the correct explanation of A
C. A is true, R is false
D. A is false, R is true
Q101
Assertion (A): Pandas Series can store data of different data types.
Reason (R): Pandas Series is built on NumPy array.
✅ Ans: A
Q102
A: A Pandas Series is mutable.
R: Values of a Series can be changed after creation.
✅ Ans: A
Q103
A: dropna() removes missing values from a Series.
R: Missing values are represented by NaN in Pandas.
✅ Ans: A
Q104
A: s.size and s.count() always return the same value.
R: s.count() ignores NaN values.
✅ Ans: D
Q105
A: iloc[] uses integer-based indexing.
R: iloc[] uses labels for indexing.
✅ Ans: C
Q106
A: loc[] can use string labels.
R: loc[] is label-based indexing.
✅ Ans: A
Q107
A: fillna() replaces missing values in a Series.
R: Missing values cannot be replaced in Pandas.
✅ Ans: C
Q108
A: Arithmetic operations in Series are vectorized.
R: Operations are applied element-wise.
✅ Ans: A
Q109
A: value_counts() returns frequency of unique values.
R: It sorts the output in descending order by default.
✅ Ans: B
Q110
A: astype() is used to change data type of Series.
R: Data type of Series cannot be modified.
✅ Ans: C
🧪 OUTPUT-BASED QUESTIONS (Q111–Q120)
Q111
✅ Output:
Q112
✅ Output: 3
Q113
✅ Output: 10
Q114
✅ Output: 10
Q115
✅ Output: 4.0
Q116
✅ Output:
Q117
✅ Output: 2
Q118
✅ Output:
Q119
✅ Output:
Q120
✅ Output:
📘 CASE-STUDY QUESTIONS (Q121–Q125)
Case Study
A teacher stores marks of students in a Pandas Series.
Q121. How many valid marks are present?
✅ Ans: 4
Q122. Which function will remove missing marks?
✅ Ans: dropna()
Q123. Which function will replace missing marks with 0?
✅ Ans: fillna(0)
Q124. Which function gives average marks?
✅ Ans: mean()
Q125. Which function shows frequency of marks?
✅ Ans: value_counts()
.png)

