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
- Which function in Python is used to create a two-dimensional data structure for tabular data?
a. pd.Series()
b. pd.DataFrame()
c. np.array()
d. plt.show()
Answer: b. pd.DataFrame()projectpro - What does the mean() function calculate in a data set?
a. Maximum value
b. Minimum value
c. Average value
d. Median value
Answer: c. Average valuew3schools - Which function is commonly used to fill missing values in a Pandas DataFrame?
a. dropna()
b. fillna()
c. replace()
d. groupby()
Answer: b. fillna()projectpro - What is the output type of the pd.Series() function in Pandas?
a. Table
b. Array
c. One-dimensional labeled array
d. String
Answer: c. One-dimensional labeled arrayprojectpro - Which function in Python returns the maximum value from a list?
a. min()
b. max()
c. mean()
d. sort()
Answer: b. max()w3schools - In R, which function is used to create a data frame?
a. create.table()
b. data.frame()
c. new.table()
d. cbind()
Answer: b. data.frame()r4ds.hadley - What does the map() function do in Python?
a. Iterates through dictionary keys
b. Applies a function to all elements in a list
c. Sorts elements
d. Removes elements
Answer: b. Applies a function to all elements in a listgeeksforgeeks - Which type of function is used for statistical aggregation in Pandas?
a. rolling()
b. agg()
c. merge()
d. to_csv()
Answer: b. agg()projectpro - The function describe() in Pandas provides which of the following?
a. Data visualization
b. Summary statistics
c. Data cleaning
d. Data exporting
Answer: b. Summary statisticsprojectpro - What is the main purpose of groupby() in Pandas?
a. Data importing
b. Data exporting
c. Data grouping and aggregation
d. Data plotting
Answer: c. Data grouping and aggregationprojectpro - In data science, which function is used to calculate the correlation between two variables?
a. mean()
b. corr()
c. sum()
d. round()
Answer: b. corr()linkedin - What is the role of activation functions in neural networks?
a. Training models faster
b. Restricting output range
c. Introducing non-linearity
d. Validating input
Answer: c. Introducing non-linearityfastdatascience - Which Python library provides the function fit() for machine learning model training?
a. matplotlib
b. pandas
c. scikit-learn
d. requests
Answer: c. scikit-learnscribd - What will len() function return when given a list?
a. The sum of elements
b. The number of elements
c. The maximum element
d. The minimum element
Answer: b. The number of elementsdeepnote - Which of the following is used to merge two DataFrames in Pandas?
a. combine()
b. merge()
c. connect()
d. cross()
Answer: b. merge()projectpro - What type of function is plot() in matplotlib?
a. Visualization function
b. Sorting function
c. Data import function
d. Aggregation function
Answer: a. Visualization functionlinkedin - In Python, which function is used to generate a range of numbers?
a. sum()
b. list()
c. range()
d. tuple()
Answer: c. range()deepnote - What does the sum() function return when used on a numerical list?
a. Average value
b. Total sum of values
c. Maximum value
d. Minimum value
Answer: b. Total sum of valuesdeepnote - The function value_counts() in Pandas is used for:
a. Counting frequencies of unique values
b. Calculating the sum
c. Filling missing values
d. Sorting values
Answer: a. Counting frequencies of unique valuesprojectpro - Which built-in function can convert strings to integers in Python?
a. float()
b. int()
c. str()
d. eval()
Answer: b. int()deepnote - In data science, which function helps in normalizing data?
a. standardize()
b. normalize()
c. scale()
d. fit_transform()
Answer: b. normalize()linkedin - What operation does the dropna() function perform?
a. Adds missing values
b. Removes missing values
c. Sorts values
d. Merges datasets
Answer: b. Removes missing valuesprojectpro - For linear regression, what is the function form commonly used?
a.
b.
c.
d.
Answer: a. kdnuggets - In R, the function read.csv() is used for:
a. Reading data from databases
b. Reading csv files
c. Connecting to API
d. Writing data to csv
Answer: b. Reading csv filesr4ds.hadley - Which method is used for feature selection in data preprocessing?
a. select_features()
b. drop()
c. filter()
d. all of the above
Answer: d. all of the abovelinkedin - What does the function min() return for a given numerical list?
a. Highest value
b. Lowest value
c. Mean value
d. Total sum
Answer: b. Lowest valuew3schools - What type of function is np.mean() in NumPy?
a. Aggregation function
b. Visualization function
c. Normalization function
d. Data splitting function
Answer: a. Aggregation functiondeepnote - Which function in Pandas is used to cast data types?
a. astype()
b. type()
c. convert()
d. cast()
Answer: a. astype()projectpro - What does the function pivot_table() do in Pandas?
a. Creates a summary table
b. Sorts columns
c. Plots data
d. Fills missing values
Answer: a. Creates a summary tableprojectpro - In Python, what does the zip() function do?
a. Compresses files
b. Joins elements from multiple iterables
c. Sorts lists
d. Merges dictionaries
Answer: b. Joins elements from multiple iterablesdeepnote - What does the apply() function do in Pandas?
a. Applies a function to each element
b. Transposes the DataFrame
c. Concatenates rows
d. Merges DataFrames
Answer: a. Applies a function to each elementprojectpro - In data science, which function is often used for label encoding?
a. encode_labels()
b. LabelEncoder()
c. fit_labels()
d. get_labels()
Answer: b. LabelEncoder()scribd - Which function in scikit-learn randomly splits datasets into train and test sets?
a. split_set()
b. train_test_split()
c. random_split()
d. test_split()
Answer: b. train_test_split()scribd - What does the head() function display in Pandas?
a. Last 5 rows
b. First 5 rows
c. All columns
d. Column headers
Answer: b. First 5 rowsprojectpro - Which is a function for statistical hypothesis testing in Python (scipy)?
a. ttest_ind()
b. chi_square()
c. hypothesis()
d. test_stat()
Answer: a. ttest_ind()scribd - In R, which function is used to fit a linear model?
a. fit_model()
b. linear()
c. lm()
d. regression()
Answer: c. lm()r4ds.hadley - What does the merge() function do in Pandas?
a. Combines multiple DataFrames
b. Removes null values
c. Sorts data
d. Plots charts
Answer: a. Combines multiple DataFramesprojectpro - For feature scaling, what function is used in sklearn?
a. StandardScaler()
b. scale_features()
c. min_max()
d. fit_transform()
Answer: a. StandardScaler()scribd - Which function can be used for one-hot encoding in Pandas?
a. pd.get_dummies()
b. one_hot()
c. dummy_encode()
d. label_encode()
Answer: a. pd.get_dummies()projectpro - What does the info() function display in Pandas?
a. Data types and non-null counts
b. Summary statistics
c. Visualization
d. Missing values report
Answer: a. Data types and non-null countsprojectpro - Which function in Python returns the square root of a number?
a. sqrt()
b. pow()
c. root()
d. exp()
Answer: a. sqrt()deepnote - What role do lambda functions play in Python?
a. Anonymous single-line functions
b. DataFrame creation
c. List sorting
d. Data import
Answer: a. Anonymous single-line functionsgeeksforgeeks - Which function is used for time series rolling calculations in Pandas?
a. rolling()
b. shift()
c. resample()
d. time_roll()
Answer: a. rolling()projectpro - What does the tail() function return in Pandas?
a. First 5 rows
b. Last 5 rows
c. All columns
d. Null values
Answer: b. Last 5 rowsprojectpro - Which Python function checks the type of a variable?
a. type()
b. astype()
c. istype()
d. class()
Answer: a. type()deepnote - What does the function unique() return in Pandas?
a. Frequency count
b. Unique values in a column
c. Mean value
d. Maximum value
Answer: b. Unique values in a columnprojectpro - Which function is used to concatenate DataFrames vertically or horizontally in Pandas?
a. append()
b. concat()
c. merge()
d. join()
Answer: b. concat()projectpro - Which function in Python returns the absolute value of a number?
a. abs()
b. absolute()
c. value()
d. min()
Answer: a. abs()deepnote - What does the isin() function check in Pandas?
a. If values exist in another sequence
b. If data is numeric
c. If column names match
d. If there are missing values
Answer: a. If values exist in another sequenceprojectpro - Which function is used to transpose a DataFrame in Pandas?
a. transpose()
b. T
c. pivot()
d. swap()
Answer: b. Tprojectpro
- https://www.projectpro.io/article/pandas-functions/948
- https://www.w3schools.com/datascience/ds_functions.asp
- https://r4ds.hadley.nz/functions.html
- https://www.geeksforgeeks.org/python/python-functions/
- https://www.linkedin.com/pulse/python-functions-applications-data-science-yasin-tan%C4%B1%C5%9F-2memf
- https://fastdatascience.com/ai-for-business/data-science-26-important/
- https://www.scribd.com/document/856379688/Data-Science-100-MCQs
- https://deepnote.com/@code-along-tutorials/12-Python-Built-In-Functions-for-Data-Science-and-Analytics-a7acf06e-aaaf-4ff7-a6d7-09c970cb8267
- https://www.kdnuggets.com/2022/06/understanding-functions-data-science.html
- https://www.sanfoundry.com/1000-data-science-questions-answers/
- https://www.interviewbit.com/data-science-mcq/
- https://interviewkickstart.com/blogs/articles/data-science-mcq-answers
- https://www.gyansetu.in/blog/data-science-objective-type-mcq-quiz-interview-preparation/
- https://www.placementpreparation.io/mcq/data-science/
- https://www.sanfoundry.com/data-science-questions-answers-probability-statistics/
- https://www.geeksforgeeks.org/quizzes/data-science-quiz/
- https://www.geeksforgeeks.org/data-science/data-science-fundamentals/
- https://r4ds.had.co.nz/functions.html
- https://onlinestemprograms.wpi.edu/blog/5-data-science-concepts-every-data-scientist-should-know