1. What function in R is used to generate random numbers from a standard normal distribution? A. rnorm() B. random_normal() C. generate_normal() D. random_numbers() Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option A No explanation is given for this question Let's Discuss on Board
2. In R, how do you create a histogram for a numeric variable variable? A. hist(variable) B. create_histogram(variable) C. geom_histogram(mapping = aes(x = variable)) D. plot_histogram(variable) Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option C No explanation is given for this question Let's Discuss on Board
3. What does the qqnorm() function in R do? A. Plots a quantile-quantile plot for normality assessment B. Generates a random sample from a normal distribution C. Creates a normal probability plot D. Quantifies the normal distribution of a variable Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option C No explanation is given for this question Let's Discuss on Board
4. How do you create a boxplot in R for a numerical variable named values? A. boxplot(values) B. plot_box(values) C. geom_boxplot(mapping = aes(y = values)) D. create_boxplot(values) Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option A No explanation is given for this question Let's Discuss on Board
5. What is the purpose of the density() function in R? A. Computes the kernel density estimate of a numeric variable B. Creates a density plot for a numeric variable C. Calculates the probability density function of a variable D. Applies a density transformation to a data frame Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option B No explanation is given for this question Let's Discuss on Board
6. In R, how do you generate random numbers from a uniform distribution between 0 and 1? A. runif(n) B. uniform(n) C. random_uniform(n) D. generate_uniform(n) Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option A No explanation is given for this question Let's Discuss on Board
7. What is the role of the ecdf() function in R? A. Computes the empirical cumulative distribution function B. Estimates the expected cumulative distribution C. Evaluates the cumulative density function of a variable D. Creates an exclusive cumulative distribution function Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option A No explanation is given for this question Let's Discuss on Board
8. How do you create a scatter plot in R for two numeric variables x and y? A. scatter(x, y) B. plot(x, y) C. geom_point(mapping = aes(x = x, y = y)) D. create_scatter(x, y) Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option C No explanation is given for this question Let's Discuss on Board
9. What is the purpose of the hist() function in R? A. Creates a histogram for a numeric variable B. Computes the histogram of a distribution C. Generates a random sample from a histogram D. Plots a probability density function Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option A No explanation is given for this question Let's Discuss on Board
10. How do you create a probability plot in R for assessing the fit of a distribution to observed data? A. plot_probability() B. probability_plot() C. qqplot(data) D. probplot(data) Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option C No explanation is given for this question Let's Discuss on Board