Home
MCQs by exam
Python Interview Data Libraries
Data Science
Python Interview Data Libraries MCQs – Data Science
17 multiple choice questions typical of the Python Interview Data Libraries exam, with answers and explanations. Switch on practice mode to test yourself first.
A
pd.merge()
Correct answer
B
pd.join_all()
C
pd.link()
D
pd.attach()
A
SQLAlchemy
Correct answer
B
Seaborn
C
Pillow
D
NLTK
A
sqlite
B
sqlite3
Correct answer
C
dbapi
D
pysql
A
Flask
B
Django
C
Requests
D
scikit-learn
Correct answer
A
DataFrame
B
Series
Correct answer
C
Index only
D
Matrix
A
summary()
B
stats()
C
describe()
Correct answer
D
info_stats()
A
[0 2 4 6 8]
Correct answer
B
[0 2 4 6 8 10]
C
[2 4 6 8 10]
D
[0 1 2 3 4]
A
groupby()
Correct answer
B
aggregate_by()
C
group()
D
bucket()
A
Applying operations on arrays of different shapes by stretching dimensions
Correct answer
B
Sending arrays over a network
C
Printing arrays
D
Copying arrays
A
pd.load_csv()
B
pd.open_csv()
C
pd.read_csv()
Correct answer
D
pd.csv()
A
df.isnull().sum()
Correct answer
B
df.missing()
C
df.nulls()
D
df.count_na()
A
loc is for columns only
B
iloc selects by label
C
They are identical
D
loc selects by label; iloc selects by integer position
Correct answer
A
array([1, 2, 3, 1, 2, 3])
B
array([2, 4, 6])
Correct answer
C
6
D
Error
A
To make them shorter
B
To prevent SQL injection
Correct answer
C
To run faster always
D
To use fewer columns
A
They use less code
B
They are immutable
C
They run on a GPU by default
D
They store homogeneous data contiguously and use vectorised C operations
Correct answer
A
head()
Correct answer
B
top()
C
first()
D
show()
A
Fills missing values
B
Removes rows with missing values
Correct answer
C
Counts missing values
D
Drops columns only
Practise on paper
Test yourself
Take a timed online test and get a certificate, or play today's quick quiz.
Online tests
Daily quiz