Docsity

OpenDS4All Contributor Practice Exam, Exams of Technology

Toggle sidebar
bg1
OpenDS4All Contributor Practice Exam
**Question 1.** Which statement best captures the primary mission of the OpenDS4All
project?
A) To provide proprietary data‑science software to enterprises
B) To accelerate data‑science education through open, modular curricula
C) To certify data scientists for industry standards
D) To replace university degree programs with online courses
**Answer:** B
**Explanation:** OpenDS4All’s core mission is to speed up data‑science learning by offering
freely available, modular “starter‑kit” resources.
**Question 2.** In the OpenDS4All curriculum, which component typically contains the
executable code examples for a module?
A) Instructor notes
B) Slides
C) Jupyter Notebooks
D) PDF handouts
**Answer:** C
**Explanation:** Jupyter Notebooks are used for interactive code demonstrations and exercises
within each module.
**Question 3.** Which prerequisite is NOT explicitly required for a learner entering the
OpenDS4All program?
A) Proficiency in Python data structures
B) Knowledge of probability and distributions
C) Experience with cloud‑based Kubernetes clusters
D) Ability to import Python libraries
**Answer:** C
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51

Partial preview of the text

Download OpenDS4All Contributor Practice Exam and more Exams Technology in PDF only on Docsity!

Question 1. Which statement best captures the primary mission of the OpenDS4All project? A) To provide proprietary data‑science software to enterprises B) To accelerate data‑science education through open, modular curricula C) To certify data scientists for industry standards D) To replace university degree programs with online courses Answer: B Explanation: OpenDS4All’s core mission is to speed up data‑science learning by offering freely available, modular “starter‑kit” resources. Question 2. In the OpenDS4All curriculum, which component typically contains the executable code examples for a module? A) Instructor notes B) Slides C) Jupyter Notebooks D) PDF handouts Answer: C Explanation: Jupyter Notebooks are used for interactive code demonstrations and exercises within each module. Question 3. Which prerequisite is NOT explicitly required for a learner entering the OpenDS4All program? A) Proficiency in Python data structures B) Knowledge of probability and distributions C) Experience with cloud‑based Kubernetes clusters D) Ability to import Python libraries Answer: C

Explanation: While cloud skills are beneficial later, they are not listed as a basic prerequisite for the starter kit. Question 4. The first stage of the Data Science Lifecycle is: A) Model deployment B) Data preparation C) Model evaluation D) Business understanding Answer: D Explanation: The lifecycle typically begins with understanding the business problem before any data work. Question 5. Which of the following is a common method for acquiring data from a RESTful API in Python? A) pandas.read_excel() B) requests.get() followed by json.loads() C) sqlite3.connect() D) matplotlib.plot() Answer: B Explanation: The requests library fetches API responses, and json.loads() parses the JSON payload. Question 6. When reading a CSV file with missing values represented by the string “NA”, which pandas parameter should you use? A) header=None B) na_values=['NA'] C) dtype=str

C) left D) right Answer: C Explanation: A left join keeps all rows from the left DataFrame and adds matching rows from the right. Question 10. After merging datasets, you notice duplicate rows. Which pandas function removes duplicates while keeping the first occurrence? A) dropna() B) duplicated() C) drop_duplicates(keep='first') D) replace() Answer: C Explanation: drop_duplicates() removes duplicate rows; the keep='first' argument retains the first occurrence. Question 11. Which statistical measure indicates the average distance of data points from the mean? A) Median B) Variance C) Mode D) Skewness Answer: B Explanation: Variance quantifies the average squared deviation from the mean. Question 12. If two variables have a Pearson correlation coefficient of – 0.85, this implies: A) Strong positive linear relationship

B) Weak negative linear relationship C) Strong negative linear relationship D) No linear relationship Answer: C Explanation: A coefficient near – 1 indicates a strong inverse linear association. Question 13. Which plot is most suitable for visualizing the distribution of a single continuous variable? A) Scatter plot B) Bar chart C) Histogram D) Pie chart Answer: C Explanation: Histograms display frequency counts across intervals for continuous data. Question 14. To compare the relationship between two categorical variables, which visualization is appropriate? A) Box plot B) Heatmap of a contingency table C) Line chart D) Violin plot Answer: B Explanation: A heatmap of a cross‑tabulation (contingency table) shows frequencies or proportions for categorical pairs. Question 15. Which Seaborn function creates a plot that simultaneously shows the distribution and a kernel density estimate?

Question 18. The primary advantage of using a NoSQL database for unstructured data is: A) Strong ACID transaction guarantees B) Fixed schema enforcement C) Flexible schema allowing varying document structures D) Built‑in support for SQL joins Answer: C Explanation: NoSQL stores (e.g., MongoDB) permit documents with differing fields, ideal for unstructured data. Question 19. Which parallel‑computing model is most associated with the MapReduce paradigm? A) Thread‑based parallelism on a single machine B) Distributed data processing across a cluster using map and reduce functions C) GPU‑accelerated linear algebra D) Asynchronous event loops in Python Answer: B Explanation: MapReduce splits tasks (map) and aggregates results (reduce) across many machines. Question 20. Apache Spark differs from Hadoop MapReduce primarily because: A) Spark stores intermediate data in memory, offering faster iterative processing B) Spark does not support Python APIs C) Spark only works with structured data D) Spark cannot run on cloud platforms Answer: A Explanation: Spark’s in‑memory computation speeds up tasks that require multiple passes over the data.

Question 21. In a relational database, which SQL clause is used to filter rows after a join? A) GROUP BY B) HAVING C) WHERE D) ORDER BY Answer: C Explanation: WHERE applies row‑level conditions before or after joins. Question 22. Which machine‑learning algorithm is best suited for predicting a continuous target variable? A) Logistic regression B) Decision tree classifier C) Linear regression D) K‑means clustering Answer: C Explanation: Linear regression models a numeric outcome. Question 23. In logistic regression, the output of the model before applying the sigmoid function is called: A) Probability B) Log‑odds (logit) C) Decision boundary D) Residual Answer: B Explanation: The linear combination yields log‑odds, which the sigmoid transforms into probabilities.

Explanation: k specifies how many centroids (clusters) the algorithm will generate. Question 27. Which deep‑learning architecture is primarily used for processing sequential data such as text? A) Convolutional Neural Network (CNN) B) Recurrent Neural Network (RNN) C) Generative Adversarial Network (GAN) D) Multilayer Perceptron (MLP) Answer: B Explanation: RNNs (including LSTM/GRU) maintain hidden states to capture sequence order. Question 28. When selecting a model for a binary classification problem with imbalanced classes, which metric is most informative? A) Overall accuracy B) Mean Squared Error C) Area Under the ROC Curve (AUC) D) R‑squared Answer: C Explanation: AUC evaluates the trade‑off between true‑positive and false‑positive rates, less affected by class imbalance. Question 29. Which validation technique involves partitioning the data into k equally sized folds and iteratively using each fold as a test set? A) Hold‑out validation B (Note: The answer format must be consistent) C) Leave‑one‑out cross‑validation

D) K‑fold cross‑validation Answer: D Explanation: K‑fold CV rotates the test set across k folds, providing robust performance estimates. Question 30. Overfitting in a machine‑learning model is indicated when: A) Training error is high and test error is low B) Training error is low and test error is high C) Both training and test errors are high D) Both training and test errors are low Answer: B Explanation: The model memorizes training data (low error) but fails to generalize (high test error). Question 31. Which regularization technique adds a penalty proportional to the absolute value of coefficients? A) L2 regularization (Ridge) B) L1 regularization (Lasso) C) Elastic Net D) Dropout Answer: B Explanation: L1 (Lasso) encourages sparsity by penalizing the sum of absolute coefficient values. Question 32. In the context of model assessment, the F1‑score is the harmonic mean of: A) Accuracy and specificity B) Precision and recall

C) Deploying models on cloud platforms D) Implementing cross‑validation Answer: B Explanation: Biased or unrepresentative training data can cause unfair predictions for marginalized groups. Question 36. Which technique helps improve model explainability for tree‑based models? A) SHAP (SHapley Additive exPlanations) values B) Gradient descent C) One‑hot encoding D) Batch normalization Answer: A Explanation: SHAP provides local and global feature importance, making complex models more interpretable. Question 37. Which open‑source license is most restrictive regarding commercial use? A) MIT License B) Apache 2. C) GPLv D) BSD 3‑Clause Answer: C Explanation: GPL requires derivative works to also be open‑source, limiting proprietary commercial use. Question 38. In a Jupyter Notebook, which magic command lists all installed Python packages? A) %pip list

B) %conda info C) %lsmagic D) %sh pip list Answer: A Explanation: %pip list runs the pip command within the notebook environment. Question 39. Which pandas function would you use to compute the correlation matrix of a DataFrame? A) df.cov() B) df.corr() C) df.describe() D) df.groupby() Answer: B Explanation: df.corr() returns pairwise correlation coefficients for numeric columns. Question 40. When converting a categorical variable with three levels into numeric form, which encoding technique preserves no ordinal relationship? A) Label encoding B) Ordinal encoding C) One‑hot encoding D) Binary encoding Answer: C Explanation: One‑hot creates separate binary columns, avoiding implied order. Question 41. Which of the following is a common cause of “data leakage” in a machine‑learning pipeline? A) Scaling features after splitting into train/test

Question 44. In the OpenDS4All starter kit, which file type is primarily used for delivering lecture slides? A) .ipynb B) .pdf C) .md D) .pptx Answer: D Explanation: Slides are typically provided as PowerPoint (.pptx) files for easy presentation. Question 45. Which Python library is specifically designed for handling large‑scale data frames that exceed memory? A) pandas B) Dask C) matplotlib D) seaborn Answer: B Explanation: Dask offers parallel, out‑of‑core DataFrame operations similar to pandas. Question 46. When performing a left outer join in SQL, which keyword is used? A) LEFT JOIN B) RIGHT JOIN C) FULL JOIN D) INNER JOIN Answer: A Explanation: LEFT JOIN (or LEFT OUTER JOIN) retains all rows from the left table.

Question 47. Which metric is appropriate for evaluating a regression model’s predictive accuracy? A) Accuracy B) Precision C) Mean Absolute Error (MAE) D) Recall Answer: C Explanation: MAE measures average absolute deviation between predicted and actual values. Question 48. In a confusion matrix, the cell representing true positives is located at: A) Top‑left B) Top‑right C) Bottom‑left D) Bottom‑right Answer: A Explanation: Conventionally, rows are actual classes and columns are predicted; true positives are where both are positive (top‑left). Question 49. Which of the following is a key advantage of using a GPU for deep‑learning training? A) Higher single‑thread performance B) Larger RAM compared to CPUs C) Massive parallelism for matrix operations D) Built‑in support for SQL queries Answer: C

Question 53. Which of the following Python statements correctly imports the NumPy library with the conventional alias? A) import numpy as np B) import pandas as np C) import numpy as pd D) import scipy as np Answer: A Explanation: The standard convention is import numpy as np. Question 54. In a supervised learning problem, the term “label” refers to: A) Input features used for prediction B) The target variable the model learns to predict C) The name of the dataset file D) The algorithm’s hyperparameters Answer: B Explanation: Labels are the ground‑truth outcomes associated with each observation. Question 55. Which of the following is a method to handle class imbalance by adjusting the training process? A) Increasing learning rate B) Using class weights in the loss function C) Removing features with low variance D) Standardizing numerical features Answer: B Explanation: Class weights penalize mistakes on minority classes more heavily, mitigating imbalance.

Question 56. In the context of feature engineering, “binning” a continuous variable means: A) Converting it to a string B) Scaling it to zero mean and unit variance C) Grouping its values into discrete intervals D) Removing it from the dataset Answer: C Explanation: Binning creates categorical bins (e.g., age groups) from continuous data. Question 57. Which of the following is a common measure of similarity for high‑dimensional sparse vectors? A) Euclidean distance B) Manhattan distance C) Cosine similarity D) Jaccard index Answer: C Explanation: Cosine similarity captures angular similarity, robust to magnitude differences in sparse data. Question 58. In a relational database, the term “foreign key” refers to: A) A primary identifier within the same table B) A column that uniquely identifies each row C) A column that references the primary key of another table D) An index that speeds up queries Answer: C Explanation: Foreign keys enforce referential integrity between related tables.