CUET-UG SERIES
Computer-science

Python Libraries

4 previous year questions.

Volume: 4 Ques
Yield: Medium

High-Yield Trend

4
2023

Chapter Questions
4 MCQs

01
PYQ 2023
medium
computer-science ID: cuet-ug-
Which of the following is/are true statements ?
A. Python integer types cannot store NaN values
B. Python float types cannot store NaN values
C. Python integer types cannot store NaN values
D. Python float types can store NaN values
Choose the correct answer from the options given below :
1
B and C only
2
A and B only
3
C and D only
4
A and D only
02
PYQ 2023
medium
computer-science ID: cuet-ug-
Pandas provide a function ______ to check whether any value is missing or not in the Datafrarne :
1
dfisNan( )
2
df.IsNaN( )
3
df.IsNull( )
4
df.isnull( )
03
PYQ 2023
medium
computer-science ID: cuet-ug-
The following five statements describe the methods used for file handling in Python. Choose an option that correctly sequences the definition of each.
(A) Method used to open a file.
(B) Method used to write the objects in a binary file.
(C) Method used to read data from a binary file.
(D) Method used to return an integer that specifies current position of the file object.
(E) Method used to position the file object at a particular position in a file.
Choose the correct answer from the options given below:
1
Method used to open a file.
2
Method used to write the objects in a binary file.
3
Method used to read data from a binary file.
4
Method used to return an integer that specifies current position of the file object.