adplus-dvertising

Welcome to the Commands and Packages MCQs Page

Dive deep into the fascinating world of Commands and Packages with our comprehensive set of Multiple-Choice Questions (MCQs). This page is dedicated to exploring the fundamental concepts and intricacies of Commands and Packages, a crucial aspect of R Programming. In this section, you will encounter a diverse range of MCQs that cover various aspects of Commands and Packages, from the basic principles to advanced topics. Each question is thoughtfully crafted to challenge your knowledge and deepen your understanding of this critical subcategory within R Programming.

frame-decoration

Check out the MCQs below to embark on an enriching journey through Commands and Packages. Test your knowledge, expand your horizons, and solidify your grasp on this vital area of R Programming.

Note: Each MCQ comes with multiple answer choices. Select the most appropriate option and test your understanding of Commands and Packages. You can click on an option to test your knowledge before viewing the solution for a MCQ. Happy learning!

Commands and Packages MCQs | Page 1 of 8

Q1.
Which of the following code create n samples of size “size” with probability prob from the binomial?
Discuss
Answer: (b).z <- rbinom(n,size,prob)
Q2.
Which of the following code create a n item vector of random normal deviates?
Discuss
Answer: (c).x1 <- c(rnorm(n))
Discuss
Answer: (a).read.table(filename,header=TRUE,sep=’,’)
Discuss
Answer: (a).read.table(filename,header=TRUE)
Q5.
Which of the following statement chose those objects meeting a logical criterion?
Discuss
Answer: (b).subset(dataset,logical)
Q6.
Which of the following statement is another way to get a subset?
Discuss
Answer: (b).data.df[data.df=logical]
Q7.
Which of the following sort a dataframe by the order of the elements in B?
Discuss
Answer: (a).x[rev(order(x$B)),]
Q8.
Which of the following is Mac menu command?
Discuss
Answer: (a).browse.workspace
Q9.
_____ list the variables in the workspace.
Discuss
Answer: (c).ls()
Q10.
___________ remove all the variables from the workspace.
Discuss
Answer: (b).rm(list=ls())
Page 1 of 8

Suggested Topics

Are you eager to expand your knowledge beyond R Programming? We've curated a selection of related categories that you might find intriguing.

Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!