Explore topic-wise MCQs in R Programming.

This section includes 7 Mcqs, each offering curated multiple-choice questions to sharpen your R Programming knowledge and support exam preparation. Choose a topic below to get started.

1.

Spread function is known as ___________ in spreadsheets.

A. pivot
B. unpivot
C. cast
D. order
Answer» C. cast
2.

_________ extract a subset of rows from a data frame based on logical conditions.

A. rename
B. filter
C. set
D. subset
Answer» B. filter
3.

________ add new variables/columns or transform existing variables.

A. mutate
B. add
C. apped
D. arrange
Answer» B. add
4.

How many functions exist for wrangling the data with dplyr package?

A. one
B. seven
C. three
D. five
Answer» C. three
5.

Which of the following merges two variables into one?

A. spread()
B. gather()
C. separate()
D. unite()
Answer» C. separate()
6.

Point out the correct statement?

A. tidyr and dplyr packages do not make use of the pipe operator
B. tidyr does less than reshape2
C. tidyr provides ability to string multiple functions together by incorporating %
D. tidyr does greater than reshape2
Answer» C. tidyr provides ability to string multiple functions together by incorporating %
7.

__________ is used when you have variables that form rows instead of columns.

A. tidy()
B. spread()
C. separate()
D. gather()
Answer» C. separate()