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 is used in Python to find the maximum value in a list?
a. min()
b. sum()
c. average()
d. max()
Answer: d. max()w3schools - What does the abs() function return in Python?
a. Absolute value
b. Average value
c. Minimum value
d. Maximum value
Answer: a. Absolute valuegeeksforgeeks - In R, which function calculates the arithmetic mean?
a. sum()
b. median()
c. mean()
d. var()
Answer: c. mean()geeksforgeeks - What does the sqrt() function compute?
a. Cube root
b. Minimum value
c. Square root
d. Absolute value
Answer: c. Square rootgeeksforgeeks - Which function rounds a number to the nearest integer in Python?
a. floor()
b. ceil()
c. round()
d. int()
Answer: c. round()w3schools - What function is used in R to find the standard deviation?
a. mean()
b. median()
c. sd()
d. abs()
Answer: c. sd()geeksforgeeks - Which Python function sums all elements in a list?
a. avg()
b. mean()
c. sum()
d. total()
Answer: c. sum()w3schools - In R, which function gives the median value?
a. mean()
b. median()
c. var()
d. mode()
Answer: b. median()geeksforgeeks - What does np.log() in NumPy compute?
a. Logarithm (base e)
b. Square root
c. Logarithm (base 10)
d. Absolute value
Answer: a. Logarithm (base e)w3schools - The var() function in R returns:
a. Range
b. Mean
c. Variance
d. Sum
Answer: c. Variancegeeksforgeeks - Which function in Python returns the smallest item in an iterable?
a. min()
b. mean()
c. sum()
d. sort()
Answer: a. min()w3schools - Which R function provides the correlation between two variables?
a. mean()
b. median()
c. cor()
d. var()
Answer: c. cor()geeksforgeeks - In Python, what does the pow() function calculate?
a. Modulo
b. Power of a number
c. Average
d. Square root
Answer: b. Power of a numberw3schools - What is the purpose of the floor() function in Python?
a. Rounds up
b. Rounds down
c. Finds median
d. None of the above
Answer: b. Rounds downw3schools - Which function in R truncates decimal digits?
a. round()
b. ceiling()
c. trunc()
d. abs()
Answer: c. trunc()geeksforgeeks - What does np.mean() return in NumPy?
a. Median
b. Mean
c. Variance
d. Mode
Answer: b. Meanw3schools - Which function in Python returns the value of e raised to a power?
a. exp()
b. log()
c. pow()
d. sqrt()
Answer: a. exp()w3schools - The R function max() returns:
a. Sum of elements
b. Maximum value
c. Mean value
d. Maximum index
Answer: b. Maximum valuegeeksforgeeks - What is returned by the Python divmod() function?
a. Quotient and remainder
b. Only quotient
c. Only remainder
d. None of the above
Answer: a. Quotient and remainderw3schools - In R, the function sum() is used to get:
a. Product
b. Mean
c. Sum
d. Range
Answer: c. Sumgeeksforgeeks - Which NumPy function computes the cumulative sum of an array?
a. np.sum()
b. np.cumsum()
c. np.add()
d. np.prod()
Answer: b. np.cumsum()w3schools - What does the prod() function calculate in R?
a. Product of values
b. Sum of values
c. Mean value
d. Mode
Answer: a. Product of valuesgeeksforgeeks - In Python, which function gives the ceiling of a number?
a. floor()
b. ceil()
c. round()
d. int()
Answer: b. ceil()w3schools - Which R function returns the minimum value of a vector?
a. min()
b. max()
c. sum()
d. abs()
Answer: a. min()geeksforgeeks - Which function would you use to calculate logarithm base 10 in Python?
a. log10()
b. log()
c. exp()
d. sqrt()
Answer: a. log10()w3schools - Which function in R is used for logarithm base 2?
a. log2()
b. log10()
c. log()
d. exp()
Answer: a. log2()geeksforgeeks - What does the np.std() function compute?
a. Mean
b. Variance
c. Standard deviation
d. Mode
Answer: c. Standard deviationw3schools - In R, to round up a number you use:
a. floor()
b. trunc()
c. ceiling()
d. abs()
Answer: c. ceiling()geeksforgeeks - The diff() function in Python returns:
a. Sum of array
b. Difference between adjacent elements
c. Sorted array
d. None of the above
Answer: b. Difference between adjacent elementsw3schools - Which R function sums the elements in a vector?
a. mean()
b. max()
c. sum()
d. median()
Answer: c. sum()geeksforgeeks - What would np.median() compute in a NumPy array?
a. Variance
b. Mean
c. Median
d. Sum
Answer: c. Medianw3schools - In R, the function mean() computes:
a. Standard deviation
b. Variance
c. Arithmetic mean
d. Maximum value
Answer: c. Arithmetic meangeeksforgeeks - Which Python function sorts a list in ascending order?
a. sort()
b. mean()
c. abs()
d. pow()
Answer: a. sort()w3schools - Which function finds the count of elements in an array in R?
a. count()
b. length()
c. sum()
d. mean()
Answer: b. length()geeksforgeeks - What does np.var() return in NumPy?
a. Variance
b. Mean
c. Median
d. Minimum value
Answer: a. Variancew3schools - In R, which function computes the range of data?
a. range()
b. mean()
c. round()
d. sum()
Answer: a. range()geeksforgeeks - The round() function in Python can take how many arguments (including optional)?
a. 1
b. 2
c. 3
d. 4
Answer: b. 2w3schools - Which function returns the index of the maximum value in a NumPy array?
a. np.argmax()
b. np.max()
c. np.index()
d. np.mean()
Answer: a. np.argmax()w3schools - What is the output of the R function median()?
a. Mean value
b. Median value
c. Standard deviation
d. Sum of values
Answer: b. Median valuegeeksforgeeks - Which function computes the sign of a number in NumPy?
a. np.sign()
b. np.sum()
c. np.log()
d. np.sort()
Answer: a. np.sign()w3schools - The length() function in R gives:
a. The sum of vector’s elements
b. Number of elements in a vector
c. The mean
d. The median
Answer: b. Number of elements in a vectorgeeksforgeeks - Which function in Python returns the largest integer less than or equal to a number?
a. ceil()
b. floor()
c. abs()
d. mean()
Answer: b. floor()w3schools - Which R function can be used to round a number to a certain number of decimal places?
a. ceiling()
b. round()
c. floor()
d. trunc()
Answer: b. round()geeksforgeeks - np.ptp() in NumPy returns:
a. Peak-to-peak range (max-min)
b. Product
c. Mean
d. Mode
Answer: a. Peak-to-peak range (max-min)w3schools - The sum() function in Python can operate on which data structures?
a. Lists
b. Tuples
c. Arrays
d. All of the above
Answer: d. All of the abovew3schools - In R, which function returns the product of all elements in a vector?
a. sum()
b. prod()
c. mean()
d. diff()
Answer: b. prod()geeksforgeeks - Which Python function is used for modular division?
a. mod()
b. %
c. pow()
d. divmod()
Answer: d. divmod()w3schools - What function calculates the cumulative product in NumPy?
a. np.prod()
b. np.cumprod()
c. np.sum()
d. np.diff()
Answer: b. np.cumprod()w3schools - Which function in R returns sorted elements of a vector?
a. order()
b. sort()
c. rank()
d. max()
Answer: b. sort()geeksforgeeks - What is the result of np.round(3.145, 2) in NumPy?
a. 3.1
b. 3.14
c. 3.15
d. 3
Answer: b. 3.14w3schools
- https://www.w3schools.com/datascience/ds_python.asp
- https://www.geeksforgeeks.org/r-language/functions-in-r-programming/
- 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.scribd.com/document/705848941/Data-Science-MCQ-Questions-and-Answer-PDF
- https://www.geeksforgeeks.org/quizzes/top-50-data-structures-mcqs-with-answers/
- https://www.linkedin.com/pulse/python-functions-applications-data-science-yasin-tan%C4%B1%C5%9F-2memf
- https://towardsdatascience.com/3-common-data-analysis-operations-with-3-common-tools-9288ce61a40f/
- https://www.gyansetu.in/blog/data-science-objective-type-mcq-quiz-interview-preparation/
- https://r4ds.had.co.nz/functions.html
- https://datasciencedojo.com/blog/data-analysis-expressions/
- https://www.placementpreparation.io/mcq/data-science/page/2/
- https://r4ds.hadley.nz/functions.html
- https://www.formpl.us/blog/numerical-data
- https://www.sanfoundry.com/data-science-questions-answers-probability-statistics/
- https://www.datacamp.com/blog/python-vs-r-for-data-science-whats-the-difference
- https://www.geeksforgeeks.org/data-analysis/data-analysis-tutorial/
- https://www.includehelp.com/mcq/statistics-in-data-science-multiple-choice-questions-mcqs.aspx
- https://en.wikipedia.org/wiki/Numerical_analysis