R Programming Language Certification — Questions and Answers
Question 1: What does coord_flip() do in ggplot2?
- Mirrors the plot
- Flips the color scale
- Swaps the x and y axes (Correct answer)
- Reverses data order
Correct answer: Swaps the x and y axes
coord_flip() exchanges the x and y axes, which is useful for creating horizontal bar charts.
Question 2: Which dplyr function is used to select specific columns from a data frame?
- select() (Correct answer)
- mutate()
- arrange()
- filter()
Correct answer: select()
The select() function in dplyr is used to choose specific columns from a data frame by name or index.
Question 3: A data scientist shares an R project with a colleague who cannot reproduce results due to different package versions. What is the best preventive measure?
- Email the colleague your entire R installation folder
- Hardcode all function outputs as constants
- Avoid using external packages altogether
- Use renv to snapshot and restore the project library (Correct answer)
Correct answer: Use renv to snapshot and restore the project library
renv creates a project-level lockfile recording exact package versions, enabling consistent environments across machines.
Question 4: What does the `RiskPortfolios::covEstimation()` function help mitigate in large-portfolio risk calculations?
- Estimation error in the covariance matrix with many assets (Correct answer)
- Overfitting in regression models
- Autocorrelation in return series
- Multicollinearity in factor models
Correct answer: Estimation error in the covariance matrix with many assets
Robust covariance estimation methods address the instability of sample covariance matrices when the number of assets approaches the number of observations.
Question 5: What is the main role of the 'tune' package within the tidymodels ecosystem?
- Loading and splitting datasets
- Preprocessing data pipelines
- Hyperparameter tuning and optimization (Correct answer)
- Model performance visualization
Correct answer: Hyperparameter tuning and optimization
The tune package provides functions like tune_grid() and tune_bayes() for searching hyperparameter spaces using cross-validation, integrating with workflows and rsample splits.
Question 6: Which base R function produces a histogram of a numeric vector?
- barplot()
- plot()
- hist() (Correct answer)
- density()
Correct answer: hist()
hist() computes and displays a histogram of the values in a numeric vector using base R graphics.
Question 7: Which R package extends ggplot2 to create interactive web-based plots?
- htmlwidgets
- ggvis
- shiny
- plotly (Correct answer)
Correct answer: plotly
plotly's ggplotly() function converts ggplot2 objects into interactive plotly visualizations with hover and zoom.
Question 8: What is the importance of data security in R Programming Language Certification digital applications?
- Security is unnecessary for professional data
- Security slows down work
- Protecting sensitive information from unauthorized access, breaches, and loss is essential (Correct answer)
- Only financial data needs protection
Correct answer: Protecting sensitive information from unauthorized access, breaches, and loss is essential
This is fundamental to R Programming Language Certification practice. Protecting sensitive information from unauthorized access, breaches, and loss is essential represents the professional standard for technology in the R Programming Language Certification certification framework.
Question 9: Which dplyr function removes duplicate rows from a data frame?
- distinct() (Correct answer)
- drop_dup()
- deduplicate()
- unique()
Correct answer: distinct()
distinct() returns unique rows from a data frame, optionally specifying which columns to check for uniqueness.
Question 10: In acceptance sampling using R, what does the 'AQL' stand for in the context of the `AcceptanceSampling` package?
- Average Quality Limit
- Acceptable Quality Level (Correct answer)
- Assured Quality Level
- Acceptance Queue Limit
Correct answer: Acceptable Quality Level
AQL (Acceptable Quality Level) is the worst tolerable process average in a continuing series of lots that is considered acceptable.
Question 11: What does `Sys.getenv('HOME')` return in R?
- The R installation directory
- The current working directory
- The value of the HOME environment variable (Correct answer)
- The user's R library path
Correct answer: The value of the HOME environment variable
`Sys.getenv()` retrieves the value of system environment variables; 'HOME' typically returns the path to the user's home directory.
Question 12: Which R Markdown output format produces an HTML document?
- beamer_presentation
- word_document
- html_document (Correct answer)
- pdf_document
Correct answer: html_document
html_document in the YAML front matter of an R Markdown file renders the document as a self-contained HTML file viewable in a browser.
Question 13: Which R function fits a linear regression model?
- regress()
- lm() (Correct answer)
- glm()
- fit_linear()
Correct answer: lm()
lm() fits ordinary least squares linear models and returns an object with coefficients, residuals, and fit statistics.
Question 14: In ggplot2, which function is used to add a scatter plot layer to a plot?
- geom_xy()
- geom_dot()
- geom_point() (Correct answer)
- geom_scatter()
Correct answer: geom_point()
geom_point() adds a layer of points to a ggplot2 visualization, creating a scatter plot.
Question 15: How should an R Programming Language Certification professional handle a situation outside their scope of competency?
- Ignore the situation
- Decline all unfamiliar work
- Recognize limitations and refer to or consult with appropriate specialists (Correct answer)
- Attempt it anyway
Correct answer: Recognize limitations and refer to or consult with appropriate specialists
This is fundamental to R Programming Language Certification practice. Recognize limitations and refer to or consult with appropriate specialists represents the professional standard for professional standards in the R Programming Language Certification certification framework.
Question 16: What is the benefit of interdisciplinary collaboration in R Programming Language Certification practice?
- It slows down decision making
- It is only for complex projects
- It creates confusion
- It brings diverse expertise and perspectives that improve outcomes and innovation (Correct answer)
Correct answer: It brings diverse expertise and perspectives that improve outcomes and innovation
This is fundamental to R Programming Language Certification practice. It brings diverse expertise and perspectives that improve outcomes and innovation represents the professional standard for practical in the R Programming Language Certification certification framework.
Question 17: What is the purpose of the predict() function in R?
- Compute model residuals
- Cross-validate a model
- Generate predicted values from a fitted model for new data (Correct answer)
- Fit a new model
Correct answer: Generate predicted values from a fitted model for new data
predict() uses a fitted model object to generate predictions for either the training data or new observations supplied via newdata=.
Question 18: A stakeholder requests that R analysis results be automatically sent to a shared Google Sheet after each run. Which package enables writing directly to Google Sheets from R?
- httr
- curl
- googlesheets4 (Correct answer)
- jsonlite
Correct answer: googlesheets4
googlesheets4 provides read and write access to Google Sheets from R using OAuth authentication, enabling automated data pushes after each analysis run.
Question 19: In R's `qcc` package, what happens when you set `plot=FALSE` in a `qcc()` call?
- An error is thrown because plotting is mandatory
- The function returns only the summary statistics as a list
- The function uses text-based output instead of graphics
- The control chart object is returned without displaying a plot (Correct answer)
Correct answer: The control chart object is returned without displaying a plot
Setting `plot=FALSE` suppresses the graphical output but still returns the full `qcc` object with all computed statistics, limits, and violations.
Question 20: Which function in the `purrr` package applies a function to each element of a list and returns a list of results?
- lapply()
- map() (Correct answer)
- apply()
- sapply()
Correct answer: map()
`purrr::map()` applies a function to each element of a list or vector and always returns a list, providing consistent type behavior compared to base R equivalents.
Question 21: What does `memoise::memoise()` do when wrapped around an R function?
- Caches function results so repeated calls with the same inputs return the stored result instantly (Correct answer)
- Converts the function to use lazy evaluation
- Monitors memory usage of the wrapped function
- Optimizes the function's bytecode at runtime
Correct answer: Caches function results so repeated calls with the same inputs return the stored result instantly
Memoization caches the return value of a function for each unique set of arguments; subsequent calls with the same inputs skip re-execution and return the cached result.
Question 22: Which dplyr function reorders rows by one or more columns?
- sort()
- rank()
- order()
- arrange() (Correct answer)
Correct answer: arrange()
arrange() sorts rows by specified columns in ascending order (or descending with desc()).
Question 23: What distinguishes a peer-reviewed study in R Programming Language Certification literature?
- It was published quickly
- It was written by multiple authors
- It was published in any format
- Independent experts in the field evaluated the methodology and conclusions before publication (Correct answer)
Correct answer: Independent experts in the field evaluated the methodology and conclusions before publication
This is fundamental to R Programming Language Certification practice. Independent experts in the field evaluated the methodology and conclusions before publication represents the professional standard for research in the R Programming Language Certification certification framework.
Question 24: In R Markdown, which chunk option prevents code from being displayed in the output?
- include=FALSE
- echo=TRUE
- echo=FALSE (Correct answer)
- eval=FALSE
Correct answer: echo=FALSE
echo=FALSE hides the code chunk from the rendered output while still executing it and showing any results or plots it produces.
Question 25: What R technique is used to assess model risk by comparing predictions across multiple model specifications?
- Model averaging with BMA or ensemble methods (Correct answer)
- Cross-validation alone
- Stepwise regression
- AIC selection of a single model
Correct answer: Model averaging with BMA or ensemble methods
Bayesian Model Averaging (BMA) and ensemble methods quantify uncertainty across model specifications, directly addressing model risk.
Question 26: What does the spread() function in tidyr (deprecated) do?
- Converts long format to wide format (Correct answer)
- Adds missing rows
- Removes duplicate values
- Merges two data frames
Correct answer: Converts long format to wide format
spread() (now replaced by pivot_wider()) converts a long-format data frame to wide format by spreading a key column into multiple columns.
Question 27: What is the purpose of geom_smooth() in ggplot2?
- Adds a trend line or regression curve to a scatter plot (Correct answer)
- Interpolates missing data points
- Smooths the edges of geom_point markers
- Applies anti-aliasing to the entire plot
Correct answer: Adds a trend line or regression curve to a scatter plot
geom_smooth() fits and displays a smoothed conditional mean (LOESS or linear) as a line with an optional confidence interval band on a scatter plot.
Question 28: Under HIPAA's Safe Harbor method, how many specific identifiers must be removed from a dataset for it to be considered de-identified?
- 18 (Correct answer)
- 8
- 12
- 25
Correct answer: 18
HIPAA's Safe Harbor method requires the removal of 18 specific patient identifiers, such as names, dates, and geographic data finer than state level.
Question 29: Which R package provides the `qcc` function for creating Shewhart control charts?
- MSQC
- SPC
- controlchart
- qcc (Correct answer)
Correct answer: qcc
The `qcc` package provides the `qcc()` function for Shewhart quality control charts including Xbar, R, S, and p charts.
Question 30: What role does data analytics play in R Programming Language Certification practice?
- It is only for IT professionals
- It creates unnecessary complexity
- It supports evidence-based decision making by identifying patterns and trends in relevant data (Correct answer)
- It replaces professional judgment
Correct answer: It supports evidence-based decision making by identifying patterns and trends in relevant data
This is fundamental to R Programming Language Certification practice. It supports evidence-based decision making by identifying patterns and trends in relevant data represents the professional standard for technology in the R Programming Language Certification certification framework.
Question 31: A stakeholder insists on using a metric that the analyst knows is statistically flawed. What is the recommended professional approach?
- Refuse to proceed with the analysis
- Silently use the correct metric without telling the stakeholder
- Document the limitation in writing, propose a better metric with supporting evidence, and defer to the stakeholder's final decision (Correct answer)
- Use the flawed metric without comment
Correct answer: Document the limitation in writing, propose a better metric with supporting evidence, and defer to the stakeholder's final decision
Analysts have an obligation to flag methodological concerns in writing and offer alternatives, but ultimate business decisions belong to the stakeholder.
Question 32: Which R function retrieves the current system time as a POSIXct object?
- system.time()
- Sys.time() (Correct answer)
- proc.time()
- date()
Correct answer: Sys.time()
`Sys.time()` returns the current date and time as a POSIXct object, suitable for time-stamping operations or calculating elapsed time.
Question 33: Which R function serializes an R object to a binary format for saving to disk?
- write.csv()
- dump()
- dput()
- saveRDS() (Correct answer)
Correct answer: saveRDS()
saveRDS() saves a single R object to a binary .rds file that can be restored with readRDS().
Question 34: A clinical trial statistician needs to perform a two-sample t-test assuming unequal variances (Welch's t-test) in R. Which call is correct?
- t.test(group1, group2, var.equal=TRUE)
- wilcox.test(group1, group2)
- anova(lm(outcome ~ group))
- t.test(group1, group2, var.equal=FALSE) (Correct answer)
Correct answer: t.test(group1, group2, var.equal=FALSE)
t.test() defaults to Welch's (var.equal=FALSE), which does not assume equal variances and is appropriate when variance homogeneity is uncertain.
Question 35: Which ggplot2 function changes the overall visual style of a plot (background, grid lines, font)?
- style()
- layout()
- format()
- theme() (Correct answer)
Correct answer: theme()
theme() controls non-data elements of a ggplot2 plot, including background, grid lines, axis text, and legend formatting.
Question 36: Which ggplot2 geom is used to create a box plot?
- geom_box()
- geom_iqr()
- geom_whisker()
- geom_boxplot() (Correct answer)
Correct answer: geom_boxplot()
geom_boxplot() draws box-and-whisker plots showing median, quartiles, and outliers for grouped data.
Question 37: Which ggplot2 geom creates a bar chart by counting occurrences of each category?
- geom_histogram()
- geom_count()
- geom_col()
- geom_bar() (Correct answer)
Correct answer: geom_bar()
geom_bar() automatically counts observations per category and plots those counts as bar heights.
Question 38: Under the EU AI Act, R-based predictive models used in hiring decisions would likely be classified under which risk category?
- Limited risk
- Minimal risk
- Unacceptable risk
- High-risk (Correct answer)
Correct answer: High-risk
The EU AI Act classifies AI systems used in employment and worker management, including recruitment and evaluation, as high-risk, requiring conformity assessments and documentation.
Question 39: What R package provides functions for Measurement System Analysis (MSA) including linearity and bias studies?
- qcc
- qualityTools
- MeasurementSystems
- SixSigma (Correct answer)
Correct answer: SixSigma
The `SixSigma` package includes functions like `ss.lsa()` for linearity and stability analysis and `ss.rr()` for gauge R&R studies.
Question 40: How does continuous improvement apply to R Programming Language Certification quality management?
- It involves ongoing incremental enhancements to processes based on data and feedback (Correct answer)
- It applies only to products
- It is a one-time initiative
- It means constant major changes
Correct answer: It involves ongoing incremental enhancements to processes based on data and feedback
This is fundamental to R Programming Language Certification practice. It involves ongoing incremental enhancements to processes based on data and feedback represents the professional standard for quality in the R Programming Language Certification certification framework.
Question 41: What is the result of left_join(df1, df2, by='id') in dplyr?
- All rows from df1, matched rows from df2 (Correct answer)
- All rows from both data frames
- Only matching rows from both
- Only rows in df2
Correct answer: All rows from df1, matched rows from df2
left_join() retains all rows from the left data frame (df1) and fills in matched values from df2, leaving NAs for non-matches.
Question 42: Which R package is most widely used for creating advanced data visualizations based on the Grammar of Graphics?
- base graphics
- plotly
- lattice
- ggplot2 (Correct answer)
Correct answer: ggplot2
ggplot2, created by Hadley Wickham, implements the Grammar of Graphics and is the most popular R visualization package.
Question 43: What is the most effective communication approach for R Programming Language Certification professionals?
- Using technical language exclusively
- Adapting communication style to the audience while maintaining accuracy and clarity (Correct answer)
- Minimizing all communications
- Only written communication
Correct answer: Adapting communication style to the audience while maintaining accuracy and clarity
This is fundamental to R Programming Language Certification practice. Adapting communication style to the audience while maintaining accuracy and clarity represents the professional standard for communication in the R Programming Language Certification certification framework.
Question 44: Which R function from base R computes a chi-square test of independence between two categorical variables in a contingency table?
- fisher.test()
- prop.test()
- chisq.test() (Correct answer)
- binom.test()
Correct answer: chisq.test()
chisq.test() tests whether two categorical variables are independent using the chi-square statistic on a contingency table.
Question 45: What does cor() compute in R?
- A chi-square statistic
- The correlation coefficient between two or more variables (Correct answer)
- A regression coefficient
- The covariance matrix
Correct answer: The correlation coefficient between two or more variables
cor() computes Pearson (default), Spearman, or Kendall correlation coefficients between numeric vectors or columns.
Question 46: A researcher uses `mice` package in R. What research problem does this address?
- Multi-level modeling of nested data
- Missing data imputation using chained equations (Correct answer)
- Measurement invariance testing
- Multiple testing correction
Correct answer: Missing data imputation using chained equations
The mice package implements Multiple Imputation by Chained Equations (MICE) to handle missing data in research datasets.
Question 47: Which R package provides the map() family of functions for applying a function to each element of a list or vector?
- plyr
- purrr (Correct answer)
- apply
- functional
Correct answer: purrr
purrr's map() functions (map(), map_dbl(), map_chr(), etc.) provide type-safe alternatives to base R's lapply()/sapply().
Question 48: What is the purpose of the scale() function in R?
- Converts ordinal data to interval
- Standardizes numeric variables to mean 0 and standard deviation 1 (Correct answer)
- Adjusts p-values for multiple testing
- Rescales a plot axis
Correct answer: Standardizes numeric variables to mean 0 and standard deviation 1
scale() centers and standardizes a numeric matrix, by default subtracting the column mean and dividing by the standard deviation.
Question 49: Which R function checks for missing values (NA) in a vector?
- missing()
- is.null()
- na.check()
- is.na() (Correct answer)
Correct answer: is.na()
is.na() returns a logical vector of the same length as the input, with TRUE where values are NA.
Question 50: Which function saves a ggplot2 plot to a file?
- export_plot()
- save_plot()
- write_plot()
- ggsave() (Correct answer)
Correct answer: ggsave()
ggsave() saves the last displayed ggplot2 plot (or a specified plot object) to a file, inferring format from the file extension.
Question 51: Which dplyr function selects a subset of rows based on a logical condition?
- slice()
- filter() (Correct answer)
- subset()
- select()
Correct answer: filter()
filter() keeps rows that satisfy one or more logical conditions, similar to WHERE in SQL.
Question 52: In Shiny, which function is used to display a ggplot2 plot in the UI?
- plotOutput() (Correct answer)
- displayPlot()
- ggplotOutput()
- renderPlot()
Correct answer: plotOutput()
plotOutput() is the UI function that creates a placeholder for a plot, while renderPlot() in the server creates the actual ggplot2 object.
Question 53: In R, what is the primary purpose of Western Electric (WECO) rules applied via `qcc`?
- To set the AQL for acceptance sampling plans
- To calculate control limits using 2-sigma instead of 3-sigma bounds
- To detect non-random patterns beyond just points outside control limits (Correct answer)
- To normalize non-Gaussian process data before charting
Correct answer: To detect non-random patterns beyond just points outside control limits
WECO rules detect non-random patterns (runs, trends, stratification) within control limits that a single 3-sigma rule alone would miss.
Question 54: What does the p-value in a t-test represent?
- The confidence level of the test
- The probability the null hypothesis is true
- The effect size of the difference
- The probability of observing results as extreme as observed, assuming H0 is true (Correct answer)
Correct answer: The probability of observing results as extreme as observed, assuming H0 is true
The p-value is the probability of obtaining a test statistic as extreme as or more extreme than the observed value, assuming the null hypothesis is true.
Question 55: A researcher uses `sample(x, size = n, replace = FALSE)` in R. What is this technique called when used to create bootstrap confidence intervals?
- Jackknife resampling
- Bootstrap resampling (Correct answer)
- Cross-validation
- Permutation testing
Correct answer: Bootstrap resampling
Bootstrap resampling draws repeated samples with replacement (replace = TRUE) to estimate sampling distributions.
Question 56: In R, what is the purpose of `copula::fitCopula()` in multivariate risk modeling?
- To test for heteroscedasticity
- To estimate the dependence structure between risk factors separately from their marginals (Correct answer)
- To compute pairwise Pearson correlations
- To fit ARIMA models to correlated series
Correct answer: To estimate the dependence structure between risk factors separately from their marginals
Copulas separate the marginal distributions of individual risk factors from their joint dependence structure, enabling flexible multivariate modeling.
Question 57: What does the complete() function in tidyr do?
- Adds rows for missing combinations of variables (Correct answer)
- Validates data types in each column
- Removes incomplete cases
- Fills NA values with previous row values
Correct answer: Adds rows for missing combinations of variables
complete() turns implicit missing values into explicit NA rows by generating all combinations of specified variables.
Question 58: What does the concept of 'data minimization' require when building an R pipeline that processes personal data under GDPR?
- Using the minimum number of R packages possible
- Removing all missing values before analysis
- Collecting and retaining only the data strictly necessary for the specified purpose (Correct answer)
- Compressing all datasets to minimize file size
Correct answer: Collecting and retaining only the data strictly necessary for the specified purpose
GDPR's data minimization principle requires that personal data collected and processed be adequate, relevant, and limited to what is necessary for the stated purpose.
Question 59: In R, `lavaan::sem()` is used for which type of analysis common in social science research?
- Sequential experimental modeling
- Survival analysis
- Spatial estimation modeling
- Structural Equation Modeling (Correct answer)
Correct answer: Structural Equation Modeling
The lavaan package's sem() function fits Structural Equation Models, allowing simultaneous estimation of multiple relationships.
Question 60: Which R package provides the glmnet() function for fitting Lasso, Ridge, and Elastic Net regression models?
- elasticnet
- glmnet (Correct answer)
- lars
- penalized
Correct answer: glmnet
glmnet fits generalized linear models with L1 (Lasso), L2 (Ridge), or a mix (Elastic Net) regularization via an extremely efficient coordinate descent algorithm.
Question 61: What does the aes() function define in ggplot2?
- Aesthetic mappings between data variables and visual properties (Correct answer)
- Plot colors and fonts
- Theme settings
- Axis labels and titles
Correct answer: Aesthetic mappings between data variables and visual properties
aes() (aesthetics) maps data variables to visual properties like x/y position, color, size, and shape in a ggplot2 plot.
Question 62: What does AIC stand for in model selection?
- Akaike Information Criterion (Correct answer)
- Adjusted Index of Correlation
- Analytic Information Coefficient
- Average Information Criterion
Correct answer: Akaike Information Criterion
AIC (Akaike Information Criterion) penalizes model complexity to balance goodness of fit with parsimony; lower AIC indicates a better model.
Question 63: What is the default `stringsAsFactors` behavior in R 4.0+ when using `data.frame()`?
- FALSE — strings remain character vectors (Correct answer)
- TRUE — strings become factors by default
- Depends on global options only
- Strings are converted to integers
Correct answer: FALSE — strings remain character vectors
Since R 4.0, stringsAsFactors defaults to FALSE, keeping character columns as character vectors.
Question 64: In R, which control chart type is most appropriate for monitoring the proportion of nonconforming items in variable-sized subgroups?
- c chart
- u chart
- np chart
- p chart (Correct answer)
Correct answer: p chart
The p chart monitors the proportion of nonconforming items and accommodates variable subgroup sizes, unlike the np chart which requires fixed subgroup sizes.
Question 65: In the Shiny framework in R, which function creates a user interface layout with a sidebar and main panel?
- sidebarLayout() (Correct answer)
- navbarPage()
- fluidPage()
- bootstrapPage()
Correct answer: sidebarLayout()
sidebarLayout() creates a two-column layout with a sidebar panel (for inputs) and a main panel (for outputs) in a Shiny application.
Question 66: What R package provides tools to create a reproducible computational environment specification that satisfies the documentation requirements of a GxP audit?
- packrat
- checkpoint
- groundhog
- renv (Correct answer)
Correct answer: renv
renv is the current industry-standard package for project-level library management, generating an renv.lock file that fully documents the package environment for GxP audit purposes.
Question 67: What does the labs() function do in ggplot2?
- Sets axis labels, title, and legend titles (Correct answer)
- Adjusts plot dimensions
- Creates color palettes
- Adds data labels to points
Correct answer: Sets axis labels, title, and legend titles
labs() is used to modify axis labels, the plot title, subtitle, caption, and legend labels in ggplot2.
Question 68: A supply chain analyst has daily demand data and fits an ARIMA model using the forecast package. After fitting, which function generates a 30-day ahead point forecast with prediction intervals?
- tsforecast(fit, horizon=30)
- forecast(fit, h=30) (Correct answer)
- arima.forecast(fit, steps=30)
- predict(fit, n.ahead=30)
Correct answer: forecast(fit, h=30)
forecast() from the forecast package generates h-step-ahead forecasts with confidence intervals directly from an ARIMA (or other) fitted model object.
Question 69: What argument in geom_bar() or geom_col() maps the fill color to a variable?
- hue= argument
- palette= argument
- fill inside aes() (Correct answer)
- color= argument
Correct answer: fill inside aes()
Mapping fill inside aes(), e.g. aes(fill = variable), assigns bar fill colors based on a data variable.
Question 70: Which R function reads a CSV file into a data frame using the readr package?
- import_csv()
- read.csv()
- fread()
- read_csv() (Correct answer)
Correct answer: read_csv()
readr's read_csv() reads delimited files faster than base R's read.csv() and returns a tibble with better default behavior.
Question 71: Which ggplot2 geom creates a box plot?
- geom_boxplot() (Correct answer)
- geom_whisker()
- geom_quartile()
- geom_box()
Correct answer: geom_boxplot()
geom_boxplot() draws box plots showing the median, quartiles, and outliers for a continuous variable, optionally grouped by a categorical variable.
R Programming Language Certification
The R Programming Language Certification validates proficiency in statistical computing, data manipulation, visualization, and practical R programming skills used across data science and analytics workflows.
Exam Rules
- You can skip questions and return to them later
- Flag questions for review before submitting
- No feedback shown until you submit the entire exam
- Unanswered questions count as wrong — answer everything
- 10 pretest questions are mixed in and don't affect your score
- Timer auto-submits when time runs out
- Your progress is auto-saved every 30 seconds