MCQs R Vectors 5 March 17, 2021 | No Comments This quiz contains MCQs R Vectors. Online MCQs R Language Test 1. How can one define ‘undefined value’ in R Language? Und Sup NaN Inf 2. If a command is incomplete at the end of a line, R will give a different prompt, by default it is _____ / + * – 3. What is the output of the following R code?x <- c("a", "b")as.numeric(x) c) NA NA (Warning message: NAs introduced by coercion) TRUE TRUE NAN 1 2 4. What is the output of the following R code?y <- 0:5vector(y)y[3] 1 Error in vectory(y): invalid ‘mode’ argument 3 4 5. Identify the wrong statement: The help.search( ) (or ??) command allows searching for help in various ways R is case insensitive as are most UNIX based packages, so A and a are the same symbols and would refer to same variables Windows versions of R have other optional help systems also $R is used to start the R Program 6. How one can define ‘infinity’ in R Language? Sup Und NaN Inf 7. ________ operator is used to create integer sequences. ~ – ; : 8. What is the output of the following R code? r <- 0:10 r[2] 2 3 0 1 9. The following command can be used to print an object “x” in R? printf(x) print(x) cout(x) print x 10. Which of the describe R Language best Testing Available for free trial only Free Paid Loading … Share this:TwitterFacebookLinkedInSkypeTumblrPinterestPrintWhatsAppTelegramRedditPocketLike this:Like Loading... Related R Language Quiz

You must log in to post a comment.