R Programming Questions and Answers – Debugging Tools

This set of R Programming question bank focuses on “Debugging Tools” 1. __________ prints out the function call stack after an error occurs. a) trace() b) traceback() c) back() d) traback() 2. Point out the wrong statement? a) The primary task of debugging any R code is correctly diagnosing what the problem is b) R … Read more

advertisement

R Programming Questions and Answers – Debugging

This set of R Programming Language Multiple Choice Questions & Answers (MCQs) focuses on “Debugging”. 1. What will be the output of the following R expression? > log(-2.3) a) Warning in log(-2.3): NaNs produced b) 1 c) Null d) 0 2. Point out the correct statement? a) Vectorizing the function can be accomplished easily with … Read more

advertisement

R Programming Questions and Answers – Loop Functions – 2

This set of R Programming online quiz focuses on “Loop Functions – 2”. 1. What will be the output of the following R code? > x <- list(a = 1:4, b = rnorm(10), c = rnorm(20, 1), d = rnorm(100, 5)) > lapply(x, mean) a) $a [1] 2.5 $b [1] 1.248845 $c [1] 1.9935285 Loop … Read more

advertisement

R Programming Questions and Answers – Loop Functions – 1

This set of R Programming Language Multiple Choice Questions & Answers (MCQs) focuses on “Loop Functions – 1”. 1. ________ loop over a list and evaluate a function on each element. a) apply() b) lapply() c) sapply() d) mapply() 2. Point out the wrong statement? a) Multi-line expressions with curly braces are just not that … Read more

advertisement

R Programming Questions and Answers – Scoping Rules – 2

This set of R Programming online test focuses on “Scoping Rules – 2”. 1. ________ functions can be “built which contain all of the necessary data for evaluating the function. a) Objective b) reflective c) Nested d) Symmetry 2. Point out the wrong statement? a) Dynamic scoping turns out to be particularly useful for simplifying … Read more

advertisement

R Programming Questions and Answers – Scoping Rules – 1

This set of R Programming Language Multiple Choice Questions & Answers (MCQs) focuses on “Scoping Rules – 1”. 1. What will be the output of the following R code snippet? > lm <- function(x) { x * x } > lm a) function(x) { x * x } b) func(x) { x * x } … Read more

advertisement

R Programming Questions and Answers – Dates and Times

This set of R Programming Language Multiple Choice Questions & Answers (MCQs) focuses on “Dates and Times”. 1. _________ is an indication that a fatal problem has occurred and execution of the function stops. a) message b) error c) warning d) message & warning 2. Point out the correct statement? a) R has a number … Read more

advertisement

R Programming Questions and Answers – Functions – 8

This set of R Programming Language Multiple Choice Questions & Answers (MCQs) focuses on “Functions – 8”. 1. ________ function is usually used inside another function and throws a warning whenever a particular package is not found. a) Dplyr b) Require c) Coin d) Sample 2. ___________ function gives an error message if the desired … Read more

advertisement

R Programming Questions and Answers – Functions – 7

This set of R Programming Objective Questions & Answers focuses on “Functions – 7”. 1. If two vectors with different lengths perform some operation, the elements of the shorter vector will be used again to complete the operation. This is referred to as _________________ a) Element Recycling b) Recycling c) Cycling d) Element Cycling 2. … Read more

advertisement

R Programming Questions and Answers – Functions – 6

This set of R Programming Language Multiple Choice Questions & Answers (MCQs) focuses on “Functions – 6”. 1. R code can be tested using _________________ package. a) Dplyr b) Hadley’s testthat c) SKLearn d) KNN 2. If the programmers want the output to be a data frame or a vector, then ________ function is used. … Read more

advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.