Disclaimer:
Educational Use Only:
The website links provided are to be used strictly for educational and knowledge-gaining purposes only.
No Misuse:
Do not misuse the links or the information contained therein for any commercial, illegal, or unethical activities.
Respect for Websites and Businesses:
Respect the intellectual property and business interests of the websites and their owners. Do not attempt to alter, copy, or redistribute content without proper authorization.
Acknowledge Value of Knowledge:
Recognize and value the knowledge and resources shared by these websites. Use the information responsibly and ethically.
No Endorsement:
The provision of these links does not imply endorsement of the linked sites, their content, or their products and services. Users are responsible for evaluating the suitability and accuracy of the information.
User Responsibility:
By accessing these links, you agree to use the information at your own risk and to comply with all applicable laws and website terms of use.
Overall MCQs for Reference
- What is the primary purpose of a function in programming?
a. To optimize memory usage
b. To encapsulate repeatable logic
c. To evaluate hardware performance
d. To manage graphical output
Answer: b. To encapsulate repeatable logicalooba - Modules in Python are best described as:
a. Loops for data iteration
b. Collections of related functions and variables
c. Built-in error handlers
d. Security protocols
Answer: b. Collections of related functions and variablescoursera+1 - Which function is commonly used to import a module in Python?
a. include
b. load
c. import
d. fetch
Answer: c. importalooba+1 - Why are functions important in machine learning models?
a. They increase model size
b. They introduce randomness
c. They organize code into reusable components
d. They output visual diagrams
Answer: c. They organize code into reusable componentsgeeksforgeeks+2 - What does the loss function do in a machine learning algorithm?
a. It measures hardware efficiency
b. It quantifies prediction errors
c. It sorts input data
d. It encrypts output results
Answer: b. It quantifies prediction errorsgeeksforgeeks+2 - In the context of ML, what is a module?
a. A database
b. A set of interconnected functions
c. A compactor
d. A web server
Answer: b. A set of interconnected functionscoursera+1 - Which module is used in Python for numerical operations essential for ML?
a. pandas
b. matplotlib
c. numpy
d. requests
Answer: c. numpygeeksforgeeks+1 - Which ML library is known for deep learning operations using computational graphs?
a. XGBoost
b. TensorFlow
c. scikit-learn
d. seaborn
Answer: b. TensorFlowgeeksforgeeks+1 - What is the role of the activation function in neural networks?
a. Controls data preprocessing
b. Enables non-linear transformations
c. Manages storage
d. Prevents duplicate entries
Answer: b. Enables non-linear transformationsdevelopers.google - What is true about feature engineering modules in ML pipelines?
a. They visualize results
b. They create, select, or modify input features
c. They deploy models
d. They compress files
Answer: b. They create, select, or modify input featuresgithub+1 - Which Python statement exposes functions from a module to another script?
a. public
b. open
c. import
d. expose
Answer: c. importalooba+1 - Which function is commonly used to evaluate model performance?
a. fit()
b. predict()
c. score()
d. transform()
Answer: c. score()geeksforgeeks+1 - What is a docstring in Python functions?
a. Variable definition
b. Inline documentation
c. Output line
d. File header
Answer: b. Inline documentationalooba - What type of function helps update model weights during optimization?
a. Regression function
b. Activation function
c. Objective (loss) function
d. Exporter function
Answer: c. Objective (loss) functiongeeksforgeeks+1 - Which module assists with advanced data processing pipelines in ML?
a. sklearn.pipeline
b. math
c. random
d. urllib
Answer: a. sklearn.pipelinecoursera - In ML, what does the fit() function do?
a. Visualizes data
b. Trains the model on data
c. Saves results
d. Optimizes system memory
Answer: b. Trains the model on datageeksforgeeks+1 - Which module is essential for plotting learning curves and visualizing data in ML?
a. pandas
b. matplotlib
c. functools
d. statistics
Answer: b. matplotlibgeeksforgeeks+1 - What is the main advantage of modular programming in ML projects?
a. Increased runtime
b. Improved organization and maintainability
c. Larger codebase
d. Reduced accuracy
Answer: b. Improved organization and maintainabilitycoursera+1 - Which ML module allows automated hyperparameter tuning?
a. pandas
b. Optuna
c. seaborn
d. random
Answer: b. Optunagithub - What is an attribute of a pure function in programming?
a. Produces random results
b. Has side effects
c. Consistent output for same input
d. Always raises exceptions
Answer: c. Consistent output for same inputalooba - What type of function is used for dividing data for training and testing in ML?
a. split()
b. allocate()
c. sample()
d. separate()
Answer: a. split()coursera - Which module provides tools for data manipulation in ML pipelines?
a. numpy
b. pandas
c. sklearn.preprocessing
d. math
Answer: c. sklearn.preprocessinggeeksforgeeks+1 - What does the predict() function in ML typically do?
a. Generates new training data
b. Estimates labels for new data
c. Compresses datasets
d. Finds missing values
Answer: b. Estimates labels for new datageeksforgeeks+1 - What is a callable function in Python?
a. One which raises an exception
b. One which returns a module
c. Capable of being executed
d. Used for database operations
Answer: c. Capable of being executedalooba - Which module is used for feature selection in ML?
a. sklearn.feature_selection
b. requests
c. os
d. random
Answer: a. sklearn.feature_selectiongeeksforgeeks - What is the role of init.py in a Python package?
a. Defines dataset size
b. Marks a folder as a module
c. Optimizes memory
d. Encrypts the package
Answer: b. Marks a folder as a modulealooba - Which function applies a transformation to all elements in a sequence?
a. map()
b. reduce()
c. split()
d. join()
Answer: a. map()alooba - Which module in ML is typically used for statistical tests?
a. matplotlib
b. scipy.stats
c. urllib
d. requests
Answer: b. scipy.statscoursera - What does model.compile() do in Keras?
a. Sets up loss, optimizer, and metrics
b. Visualizes model structure
c. Cleans input data
d. Randomizes weights
Answer: a. Sets up loss, optimizer, and metricsgeeksforgeeks - Which module helps automate the construction of ML pipelines?
a. TPOT
b. pandas
c. openpyxl
d. json
Answer: a. TPOTgithub - What is one benefit of unit testing functions and modules?
a. Slower execution
b. Reduced errors and improved reliability
c. Increased hardware usage
d. Lower accuracy
Answer: b. Reduced errors and improved reliabilityalooba - In ML, what is a transformation function?
a. Alters input features for better learning
b. Visualizes outcomes
c. Stores results
d. Tracks execution
Answer: a. Alters input features for better learninggeeksforgeeks+1 - Which module supports mathematical optimizations required for ML training?
a. math
b. numpy.linalg
c. random
d. os
Answer: b. numpy.linalgcoursera - What is the main role of the objective function in ML optimization?
a. Track code changes
b. Minimize training error
c. Save model weights
d. Visualize predictions
Answer: b. Minimize training errorgeeksforgeeks+1 - Which module assists with text preprocessing for NLP models?
a. re (Regular Expressions)
b. math
c. os
d. shutil
Answer: a. re (Regular Expressions)coursera - What method is commonly associated with module objects to display available functions?
a. dir()
b. print()
c. open()
d. help()
Answer: a. dir()alooba - Which module is used for time series feature extraction in ML?
a. tsfresh
b. numpy
c. math
d. requests
Answer: a. tsfreshgithub - In ML frameworks, what is “fit_transform” used for?
a. Saving models
b. Training and transforming data
c. Deploying pipelines
d. Sending notifications
Answer: b. Training and transforming datacoursera - What is essential for separating model logic from data manipulation code?
a. Placing everything in one file
b. Using modules and functions
c. Avoiding functions
d. Hardcoding data
Answer: b. Using modules and functionsgeeksforgeeks+1 - Which ML function is used to aggregate performance scores across cross-validation splits?
a. mean()
b. aggregate()
c. cross_val_score()
d. evaluate()
Answer: c. cross_val_score()geeksforgeeks - Which is a function from scikit-learn used to standardize features?
a. StandardScaler()
b. LinearRegression()
c. fit()
d. describe()
Answer: a. StandardScaler()coursera - Which module manages large-scale distributed machine learning tasks?
a. dask-ml
b. math
c. os
d. glob
Answer: a. dask-mlcoursera - What does shuffling data before splitting improve?
a. File encryption
b. Model bias reduction
c. Randomness in predictions
d. Plot visualizations
Answer: b. Model bias reductiongeeksforgeeks - Which module implements Decision Trees?
a. sklearn.tree
b. hashlib
c. openpyxl
d. os
Answer: a. sklearn.treecoursera - For hyperparameter tuning, which function is commonly used?
a. GridSearchCV
b. score()
c. describe()
d. fetch()
Answer: a. GridSearchCVgeeksforgeeks+1 - Which module helps preprocess categorical features by encoding?
a. sklearn.preprocessing
b. random
c. os
d. math
Answer: a. sklearn.preprocessinggeeksforgeeks+1 - Which function is essential for loading external datasets?
a. read_csv()
b. fit()
c. predict()
d. abs()
Answer: a. read_csv()coursera - What is the role of the transform() function in scikit-learn?
a. Applies learned preprocessing transformations
b. Deploys models
c. Saves results
d. Resets parameters
Answer: a. Applies learned preprocessing transformationsgeeksforgeeks+1 - Which module enables automated feature engineering?
a. Featuretools
b. os
c. pandas
d. math
Answer: a. Featuretoolsgithub - What is the importance of main in Python scripts for ML?
a. Ensures the script runs as intended
b. Optimizes code speed
c. Encrypts the script
d. Visualizes outputs
Answer: a. Ensures the script runs as intendedalooba
- https://www.alooba.com/skills/concepts/python-16/functions-and-modules/
- https://www.coursera.org/articles/python-machine-learning-library
- https://www.geeksforgeeks.org/machine-learning/machine-learning-models/
- https://www.geeksforgeeks.org/machine-learning/machine-learning/
- https://www.geeksforgeeks.org/quizzes/machine-learning-quiz-questions-and-answers/
- https://developers.google.com/machine-learning/glossary
- https://www.geeksforgeeks.org/machine-learning/best-python-libraries-for-machine-learning/
- https://github.com/EthicalML/awesome-production-machine-learning
- https://www.sanfoundry.com/1000-machine-learning-questions-answers/
- https://www.scribd.com/document/526386199/Machine-Learning-Solved-Mcqs-set-1-McqMate-com
- https://www.studocu.com/in/document/shivaji-university/computer-science/machine-learning-mcq-questions-and-answers/29821794
- https://technicalblog.in/languagewise-mcqs/machine-learning-mcqs/
- https://www.onlineinterviewquestions.com/machine-learning-mcq/
- https://kavitagupta.substack.com/p/mcqs-on-python-for-machine-learning
- https://www.igmguru.com/blog/machine-learning-mcqs
- https://www.ibm.com/think/topics/machine-learning
- https://marutitech.com/top-8-deep-learning-frameworks/
- https://www.interviewbit.com/machine-learning-mcq/
- https://towardsdatascience.com/5-unique-python-modules-for-creating-machine-learning-and-data-science-projects-that-stand-out-a890519de3ae/
- https://en.wikipedia.org/wiki/Machine_learning