Practice Library

All MCQs

Browse exam-wise, subject-wise, and country-wise MCQs with explanations.

Easy

What is the primary purpose of exploratory data analysis?

Choose an option to check your answer.

Medium

What does `df[df[‘age’] >= 18]` do in pandas?

Choose an option to check your answer.

Easy

In pandas, what does `NaN` commonly indicate in a numeric column?

Choose an option to check your answer.

Medium

Why is a NumPy array often preferred over a Python loop for applying the same arithmetic operation to many values?

Choose an option to check your answer.

Medium

When is a lambda expression most appropriate?

Choose an option to check your answer.

Medium

Which expression creates a list containing the squares of numbers from 0 through 4?

Choose an option to check your answer.

Medium

Why is `with open(‘data.txt’) as f:` preferred for many file-reading tasks?

Choose an option to check your answer.

Easy

What is the purpose of `import pandas as pd`?

Choose an option to check your answer.