R Programming Quiz: Trivia Exam!

Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
Learn about Our Editorial Process
| By Excelrsolutions
E
Excelrsolutions
Community Contributor
Quizzes Created: 1 | Total Attempts: 1,706
Questions: 40 | Attempts: 1,709

SettingsSettingsSettings
R Programming Quiz: Trivia Exam! - Quiz

.


Questions and Answers
  • 1. 

    What is the function used to read CSV files into R?

    • A.

      Csv()

    • B.

      Read.csv()

    • C.

      Read_csv()

    • D.

      B & c

    Correct Answer
    D. B & c
    Explanation
    D

    Rate this question:

  • 2. 

    How to check the installed packages in R?

    • A.

      GetOption("defaultPackages")

    • B.

      Install.packages(packagenames)

    • C.

      Library(packagename)

    • D.

      Require(packagename)

    Correct Answer
    A. GetOption("defaultPackages")
    Explanation
    A

    Rate this question:

  • 3. 

    What if a number and an NA value concatenate together, what will the resulting structure be?

    • A.

      Character

    • B.

      Number

    • C.

      Factor

    • D.

      List

    Correct Answer
    B. Number
    Explanation
    B

    Rate this question:

  • 4. 

    What does mode() function do?

    • A.

      1st-moment business decision

    • B.

      Data type

    • C.

      Storage mode

    • D.

      Data frame

    Correct Answer
    C. Storage mode
    Explanation
    C

    Rate this question:

  • 5. 

    Which data structure is used to store categorical variables?

    • A.

      Data frame

    • B.

      Factor

    • C.

      Integer

    • D.

      Categorical

    Correct Answer
    B. Factor
    Explanation
    B

    Rate this question:

  • 6. 

    What does table() function tell us about a data frame

    • A.

      Probability distribution

    • B.

      Normal distribution

    • C.

      Z value

    • D.

      Frequency distribution

    Correct Answer
    D. Frequency distribution
    Explanation
    D

    Rate this question:

  • 7. 

    What does EDA mean?

    • A.

      Electronic design automation

    • B.

      Economic development administration

    • C.

      Exploratory data analysis

    • D.

      Electronic data access

    Correct Answer
    C. Exploratory data analysis
    Explanation
    C

    Rate this question:

  • 8. 

    How to visualize data in Pie Chart?

    • A.

      Pie

    • B.

      Pieplot

    • C.

      Pipe

    • D.

      Package

    Correct Answer
    A. Pie
    Explanation
    A

    Rate this question:

  • 9. 

    What are homogeneous data structures among these in R?1. Vector 2. Matrix 3. Array 4. Data frame 5. Factor 

    • A.

      1, 2

    • B.

      1, 3, 4

    • C.

      3, 4, 5

    • D.

      1, 2, 3

    Correct Answer
    D. 1, 2, 3
    Explanation
    D

    Rate this question:

  • 10. 

    What are heterogeneous data structures among these in R?1. Vector 2. Matrix 3. List 4. Data frame 5. Factor

    • A.

      1, 2

    • B.

      1, 3, 4

    • C.

      3, 4

    • D.

      1, 2, 3

    Correct Answer
    C. 3, 4
    Explanation
    C

    Rate this question:

  • 11. 

    What is the function used for building linear regression model?

    • A.

      Glm()

    • B.

      Lm()

    • C.

      Linear()

    • D.

      Slm()

    Correct Answer
    B. Lm()
    Explanation
    B

    Rate this question:

  • 12. 

    What is the memory limit in R?

    • A.

      1TB

    • B.

      2TB

    • C.

      5TB

    • D.

      8TB

    Correct Answer
    D. 8TB
    Explanation
    D

    Rate this question:

  • 13. 

    Measure the probability of an output which is binary?

    • A.

      Lm()

    • B.

      Knn()

    • C.

      Glm()

    • D.

      Mean()

    Correct Answer
    C. Glm()
    Explanation
    C

    Rate this question:

  • 14. 

    What is the function used for scatterplot for all the pairs of a dataset?

    • A.

      Cor()

    • B.

      Plot()

    • C.

      Scatter()

    • D.

      Pairs()

    Correct Answer
    D. Pairs()
    Explanation
    D

    Rate this question:

  • 15. 

    The function var() in R results

    • A.

      Sample variance

    • B.

      Population variance

    • C.

      Sample standard deviation

    • D.

      Population standard deviation

    Correct Answer
    A. Sample variance
    Explanation
    A

    Rate this question:

  • 16. 

    Z value at 99% confidence levels

    • A.

      2.015

    • B.

      2.575

    • C.

      1.960

    • D.

      1.645

    Correct Answer
    B. 2.575
    Explanation
    B

    Rate this question:

  • 17. 

    The data mining technique involved in predicting a categorical response is called as?

    • A.

      Regression

    • B.

      Classification

    • C.

      Clustering

    • D.

      Summarization

    Correct Answer
    B. Classification
    Explanation
    B

    Rate this question:

  • 18. 

    Function unlist() is used for

    • A.

      Convert a list into vector

    • B.

      Convert a vector into list

    • C.

      Convert a categorical data into numeric

    • D.

      List of the variables defined

    Correct Answer
    A. Convert a list into vector
    Explanation
    A

    Rate this question:

  • 19. 

    The minimum number of variables required for clustering exercise?

    • A.

      0

    • B.

      1

    • C.

      2

    • D.

      3

    Correct Answer
    B. 1
    Explanation
    B

    Rate this question:

  • 20. 

    Which of the following is most sensitive to outliers?

    • A.

      K-means clustering

    • B.

      K-medians clustering

    • C.

      K-modes clustering

    • D.

      K-medoids clustering

    Correct Answer
    A. K-means clustering
    Explanation
    A

    Rate this question:

  • 21. 

    Finding dissimilarity between two clusters in hierarchical clustering can be done by?1. Single-link 2. Complete-link 3. Average-link

    • A.

      1 and 2

    • B.

      1 and 3

    • C.

      2 and 3

    • D.

      1, 2 and 3

    Correct Answer
    D. 1, 2 and 3
    Explanation
    D

    Rate this question:

  • 22. 

    Technique used to find the best choice of number of clusters

    • A.

      Scree plot

    • B.

      Knn

    • C.

      Skewness

    • D.

      Dendrogram

    Correct Answer
    A. Scree plot
    Explanation
    A

    Rate this question:

  • 23. 

    K-Mean Clustering can be explained by1. Adjust number of iterations2. Find out the optimal number of clusters3. K-means is sensitive to initializations of cluster centers4. Bad initialization can lead to Poor clustering

    • A.

      1, 2 and 3

    • B.

      1 and 3

    • C.

      1 and 2

    • D.

      All the above

    Correct Answer
    D. All the above
    Explanation
    D

    Rate this question:

  • 24. 

    Values which are measured in terms such as weight, height, length are called as?

    • A.

      Continuous variables

    • B.

      Measuring variables

    • C.

      Flowchart variables

    • D.

      Discrete variables

    Correct Answer
    A. Continuous variables
    Explanation
    A

    Rate this question:

  • 25. 

    Which of the following is not a data mining method?

    • A.

      Classification and prediction

    • B.

      Dependency analysis

    • C.

      Apriori algorithms

    • D.

      Data description

    Correct Answer
    A. Classification and prediction
    Explanation
    A

    Rate this question:

  • 26. 

    What is the result of Hierarchical Clustering?

    • A.

      Estimate of cluster centroids

    • B.

      Tree showing relations between each other

    • C.

      Assignment of each point to clusters

    • D.

      All of the Mentioned

    Correct Answer
    B. Tree showing relations between each other
    Explanation
    B

    Rate this question:

  • 27. 

    Which of the following clustering requires merging approach?

    • A.

      Partitional

    • B.

      Hierarchical

    • C.

      Knn

    • D.

      PCA

    Correct Answer
    B. Hierarchical
    Explanation
    B

    Rate this question:

  • 28. 

    What does OLS stand for?

    • A.

      Office of Legislative Services

    • B.

      Ottawa Linux Symposium

    • C.

      Organizational Leadership Supervision

    • D.

      Ordinary Least Squares

    Correct Answer
    D. Ordinary Least Squares
    Explanation
    D

    Rate this question:

  • 29. 

    The intercept/constant in the regression model

    • A.

      Tells about the height of the regression line

    • B.

      Tells about the slope of the line

    • C.

      Should be excluded if one variable has negative values

    • D.

      Is statistically significant if it is larger than 1.96

    Correct Answer
    A. Tells about the height of the regression line
    Explanation
    A

    Rate this question:

  • 30. 

    The least squares estimator in MLR is derived by

    • A.

      Minimizing the sum of squared errors

    • B.

      Making the sum of squared errors equal to one

    • C.

      Minimizing the absolute difference of the residuals

    • D.

      Forcing the smallest distance between the actual and fitted values

    Correct Answer
    A. Minimizing the sum of squared errors
    Explanation
    A

    Rate this question:

  • 31. 

    The interpretation of the slope coefficient in the model y = B0 + B1X + e is?

    • A.

      1% change in X is associated with a B1 % change in Y

    • B.

      Change in X by one unit is associated with a B1 change in Y

    • C.

      Change in X by one unit is associated with a 100 B1 % change in Y

    • D.

      1% change in X is associated with a change in Y of 0.01 B1

    Correct Answer
    A. 1% change in X is associated with a B1 % change in Y
    Explanation
    A

    Rate this question:

  • 32. 

    Quadratic regression model equation is

    • A.

      Y = B0 + B1X + B2Y^2 + e

    • B.

      Y = B0 + B1Log(X) + e

    • C.

      Y = B0 + B1X + B2X^2 + e

    • D.

      Y^2 = B0 + B1X + e

    Correct Answer
    C. Y = B0 + B1X + B2X^2 + e
    Explanation
    C

    Rate this question:

  • 33. 

    The correlation coefficient (r) is used to determine:

    • A.

      A specific value of the y-variable given a specific value of the x-variable

    • B.

      A specific value of the x-variable given a specific value of the y-variable

    • C.

      The strength of the relationship between the x and y variables

    • D.

      None of these

    Correct Answer
    C. The strength of the relationship between the x and y variables
    Explanation
    C

    Rate this question:

  • 34. 

    If the coefficient of determination (R^2) is equal to 1, then the correlation coefficient (r)

    • A.

      Is also equal to 1

    • B.

      Lie between -1 or +1

    • C.

      Be either of -1 to +1

    • D.

      Must be -1

    Correct Answer
    B. Lie between -1 or +1
    Explanation
    B

    Rate this question:

  • 35. 

    The regression equation _______________, when the coefficient of determination is a positive value

    • A.

      Will have a positive slope

    • B.

      Will have a negative slope

    • C.

      Will have a positive y intercept

    • D.

      Could have either a positive or a negative slope

    Correct Answer
    D. Could have either a positive or a negative slope
    Explanation
    D

    Rate this question:

  • 36. 

    Correlation and regression, these two measures:

    • A.

      The relationship between two categorical variables

    • B.

      The relationship between two quantitative variables

    • C.

      He relationship between a quantitative input variable and a categorical output variable

    • D.

      The relationship between a categorical input and a quantitative output variable

    Correct Answer
    B. The relationship between two quantitative variables
    Explanation
    B

    Rate this question:

  • 37. 

    Effect of an outlier on the value of a correlation coefficient (r)

    • A.

      It will always decrease correlation coefficient

    • B.

      It will always increase correlation coefficient

    • C.

      It might either decrease or increase a correlation coefficient, depending on its relation with other points

    • D.

      It will have no effect on the correlation coefficient

    Correct Answer
    C. It might either decrease or increase a correlation coefficient, depending on its relation with other points
    Explanation
    C

    Rate this question:

  • 38. 

    The method of analysis which does not classify variables as dependent or independent?

    • A.

      Regression analysis

    • B.

      Discriminant analysis

    • C.

      Analysis of variance

    • D.

      Cluster analysis

    Correct Answer
    D. Cluster analysis
    Explanation
    D

    Rate this question:

  • 39. 

    The most commonly used measure of similarity is

    • A.

      Euclidean distance

    • B.

      Ward.d2 distance

    • C.

      Chebychev’s distance

    • D.

      Manhattan distance

    Correct Answer
    A. Euclidean distance
    Explanation
    A

    Rate this question:

  • 40. 

    A statement which is not true about clustering:

    • A.

      Clustering is used for analyzing data when the dependent variable is categorical and the independent variables are discrete

    • B.

      Clustering is also called classification analysis

    • C.

      Groups or clusters are suggested by the data

    • D.

      Objects in each cluster tend to be similar to each other and dissimilar to objects in the other clusters

    Correct Answer
    A. Clustering is used for analyzing data when the dependent variable is categorical and the independent variables are discrete
    Explanation
    A

    Rate this question:

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Aug 22, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Oct 24, 2017
    Quiz Created by
    Excelrsolutions
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.