R Programming

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

Does a programmer need to compile R programming code before running it? A. True B. False

B. False

What is the function of rbind()? A. bind two or more matrices or vectors by keeping then side by side. B. binds two or more matrices or vectors by adding rows of next matrix at the bottom of the previous matrix. C. Both A and B D. None of the above

B. binds two or more matrices or vectors by adding rows of next matrix at the bottom of the previous matrix.

You want to generate a vector 1 3 5 7 9. Which of the following function will generate this vector? A. rep (1, 10) B. seq (from = 1, to = 10, by =2) C. seq (from = 3, to = 10, by =2) D. seq (from =1, to = 10, by =1)

B. seq (from = 1, to = 10, by =2)

R environment provides: A. data storage and retrieval and from file and Internet. B. data manipulation, statistics, and machine learning C. Visualization and interactive data analysis D. All of the above.

D. All of the above.

Which character is used for commenting a line in R programming? A. # B. ; C. : D. ""

A. #

Which of the following vector will be generated by using rep (2,3)? A. 2 2 2 B. 3 3 C. 1 1 D. 1 1 1

A. 2 2 2

Which of the following code will provide element-wise matrix multiplication for two matrix A and B? A. A*B B. A-B C. A%*%B D. A+B

A. A*B

What is the value of this logical expression: !(5<3)&(5>3) A. TRUE B. FALSE C. Both A and B D. None

A. TRUE

The variable names in R programming are case sensitive? A. True B. False

A. True

Which of the following is "atomic" structure? A. Vector B. List C. Both A and B D. None

A. Vector

What is the function of cbind()? A. bind two or more matrices or vectors by keeping then side by side. B. binds two or more matrices or vectors by adding rows of next matrix at the bottom of the previous matrix. C. Both A and B D. None of the above

A. bind two or more matrices or vectors by keeping then side by side.

Which of the following is correct and will not result in an error? A. x <-seq(1,100,1);dim(x) <- c(10,10) B. x <-seq(1,100,1);dim(x) <-c(10,11) C. x <-seq(1,100,1); dim(x) <- c(9,10) D. None of the above.

A. x <-seq(1,100,1);dim(x) <- c(10,10)

Which of the following code will provide matrix multiplication for two matrix A and B? A. A*B B. A-B C. A%*%B D. A+B

C. A%*%B

Which of the following is used to get help in R programming? A. help() B. ? C. Both A and B D. None of the above

C. Both A and B

Which programming language has influence on R programming? A. Q language B. R language C. S language D. T language

C. S language


Kaugnay na mga set ng pag-aaral

MKTG 301 (Clubb) Chapter 10: Marketing Channels: Delivering Customer Value

View Set

Ch.3 Quiz // Adulthood and Autonomy

View Set

OB Exam 1 - Antepartum and Genetics Success Q's

View Set