Data Science Data Science/Questions/Trivia 1 — Questions and Answers
Question 1: Which Python library is primarily used for numerical computing and working with multi-dimensional arrays?
- Matplotlib
- NumPy (Correct answer)
- Seaborn
- Scikit-learn
Correct answer: NumPy
NumPy (Numerical Python) is the foundational library for numerical computing in Python, providing support for large multi-dimensional arrays and matrices along with a collection of mathematical functions.
Question 2: What does 'NaN' stand for in data science and programming contexts?
- Null and Negligible
- Not a Number (Correct answer)
- Non-applicable Notation
- Negative Array Node
Correct answer: Not a Number
NaN stands for 'Not a Number' and is used to represent missing, undefined, or unrepresentable numeric values in datasets and computations.
Question 3: In machine learning, what term describes a model that learns the training data too well, including its noise, and fails to generalize to new data?
- Underfitting
- Regularization
- Overfitting (Correct answer)
- Normalization
Correct answer: Overfitting
Overfitting occurs when a model is too complex and captures noise in the training data, resulting in high accuracy on training data but poor performance on unseen test data.
Question 4: What type of plot uses rectangular bars whose heights represent the frequency of data falling within specified ranges?
- Scatter plot
- Box plot
- Line chart
- Histogram (Correct answer)
Correct answer: Histogram
A histogram displays the distribution of a single continuous variable by dividing data into intervals (bins) and showing the count or frequency of observations in each bin.
Question 5: What does 'SQL' stand for in the context of database management?
- Sequential Query Logic
- Structured Query Language (Correct answer)
- Standard Question List
- Simple Queue Language
Correct answer: Structured Query Language
SQL stands for Structured Query Language, the standard language used to communicate with and manipulate relational databases — a core skill in data science for retrieving and transforming data.
Question 6: Which measure of central tendency is most heavily influenced by extreme outlier values in a dataset?
- Median
- Mode
- Mean (Correct answer)
- Range
Correct answer: Mean
The mean (average) is calculated by summing all values and dividing by the count, so a single extreme outlier can pull the mean significantly in one direction, unlike the median or mode.
Which Python library is primarily used for numerical computing and working with multi-dimensional arrays?