UT1class12IP2425
UT1class12IP2425
N23S24UTI
Unit Test -1, 2024-25
Class – XII
Subject- Informatics Practices (065)
1. The arithmetic operation between Series of different index will result in __________________.
a) Error b) Wrong Output c) NaN d) NULL
2. Which of the following is not a valid function that can be used with dataframes ?
a) count() b) sum() c) length() d) mad()
3. The command to delete the record with index 1 in a dataframe df is:
a) del df[1] b) df.drop(1)
c) df.pop(1) d) df[1].pop
4. a) To get the number of elements in a series object _____________ attribute may be used.
a) index b) size c) itemsize d) ndim
OR
b) Given a pandas series called Sequences, the command which displays the first four rows is:
a) print(Sequences.head(4))
b) print(Sequences.Head(4))
c) print Sequences.Heads(4))
d) print(sequences.Heads(4))
5. A dataframe can be thought of as a group of multiple series object.
a) True b)False
6. To display the third element of a series object ‘ S’ you will write____________.
a) S[:3] b) S[3] c) S[:2] d) S[2]
7. Consider the following dataframe student :