Independent Preparation Bank for Pakistani Computing Graduates • 100% Free • No Signup
NSCTTest.
Simulator
AI, Machine Learning & Data AnalyticsTopic #2 of 633 MCQs Available

Mathematical Foundations

Comprehensive question bank, step-by-step rationales, and dedicated timed quiz for Mathematical Foundations.

Launch Quiz Mode ↗

Mathematical Foundations Question Bank

Showing 33 questions of 33 with verified answers

7Multiple Choice

(Scenario-Based) Your data contains several NaN values. Which method is used to replace all missing values with the mean of the column?

8Multiple Choice

(Conceptual) What is a Pandas GroupBy operation used for?

9Multiple Choice

(Code-Tracing) What is the difference between df.loc[0] and df.iloc[0]?

10Multiple Choice

(Conceptual) What is the main benefit of using a Vectorized NumPy array over a standard Python list?

11Multiple Choice

(Code/Logic) What will be the output of this code?

12Multiple Choice

(Conceptual) What is the function of the read_csv() function in Pandas?

13Multiple Choice

(Code/Logic) What will be the output of the following code?

14Multiple Choice

(Code/Logic) What will be the output of the following code?

1Multiple Choice

(Scenario-Based) A dataset includes a "Gender" column with values 'Male', 'Female', and 'Other'. If you use One-Hot Encoding, how many new columns will the model add to the dataset?

2Multiple Choice

(Calculation) You are applying Min-Max Scaling to a value of 25. The minimum value in the column is 0, and the maximum is 50. What is the scaled value?

3Multiple Choice

(Code/Logic) What does df.drop_duplicates() do in Pandas?

4Multiple Choice

(Conceptual) Why is Label Encoding (e.g., Male=1, Female=2) problematic for linear algorithms like Linear Regression?

5Multiple Choice

(Conceptual) What is the primary purpose of Data Imputation?

6Multiple Choice

(Scenario-Based) An outlier (a value of 1,000,000 in a dataset where the average is 10) is skewing the Mean. What is a robust way to "cap" this value without removing the row?

7Multiple Choice

(Conceptual) Which of the following is an example of "Data Leakage" in a machine learning pipeline?

8Multiple Choice

(Comparison) What is the main difference between Standardization (Z-Score) and Min-Max Scaling?

9Multiple Choice

(Conceptual) What is Data Discretization (Binning)?

10Multiple Choice

(Conceptual) What is the objective of Feature Selection?

11Multiple Choice

(Code/Logic) What does the following code snippet perform?

12Multiple Choice

(Scenario-Based) If your dataset has a column "Price" ranging from 100 to 1,000,000, what issue might occur if you don't scale it?

1Multiple Choice

(Conceptual) What is the primary purpose of Exploratory Data Analysis (EDA)?

2Multiple Choice

(Scenario-Based) You are examining the distribution of customer ages. You notice a "long tail" on the right side. This distribution is called:

3Multiple Choice

(Conceptual) A Boxplot is most useful for detecting which of the following?

4Multiple Choice

(Code/Logic) Looking at the Matplotlib code below, what is the output?

5Multiple Choice

(Conceptual) In a correlation matrix, what does a value of -0.95 between two variables imply?

6Multiple Choice

(Scenario-Based) You have two continuous variables, "Hours Studied" and "Exam Score." Which plot is best for visualizing if there is a relationship between them?

7Multiple Choice

(Comparison) What is the difference between a histogram and a bar chart?

8Multiple Choice

(Conceptual) What does the "IQR Rule" for detecting outliers use?

9Multiple Choice

(Conceptual) Why is Multivariate Analysis important?

10Multiple Choice

(Code-Tracing) A data scientist executes df.describe() in Pandas. What does this output provide?

1Multiple Choice

(Conceptual) Which of the following is an example of a Classification problem?

21Multiple Choice

In a severe class-imbalance problem (e.g. 99% negative cases and 1% positive), which evaluation metric is the least reliable for assessing model quality?

24Multiple Choice

Which regularization technique adds the absolute values of coefficients (|w|) to the loss function, encouraging sparsity in weights?