Vidyalelo
R Programming · all questions

R Programming Basics
practice.

Practice every MCQ with options. Use Show answers when you want the correct option and solution.

131

Questions

3/7

Page

Pick an option on a question to see the right answer and solution.

Which of the following code constructs vector of length 11?

Select an option to see the answer and solution.

How can we access the first component of the list?

Select an option to see the answer and solution.

An ordered collection of objects or components are called . . . . . . . .

Select an option to see the answer and solution.

The . . . . . . . . function returns a list of densities (y) corresponding to bin values (x).

Select an option to see the answer and solution.

Data frames can have additional attributes such as . . . . . . . .

Select an option to see the answer and solution.

The . . . . . . . . function takes an arbitrary number of arguments and concatenates them one by one into character strings.

Select an option to see the answer and solution.

All columns in a matrix must have the same mode and the . . . . . . . . length.

Select an option to see the answer and solution.

The four most frequently used types of data objects in R are vectors, matrices, data frames and . . . . . . . .

Select an option to see the answer and solution.

. . . . . . . .are Data frames which contain lists of homogeneous data in a tabular format.

Select an option to see the answer and solution.

What will be the output of the following R code?
> x <- 1:3
> y <- 10:12
> rbind(x, y)

Select an option to see the answer and solution.

Point out the correct statement?

Select an option to see the answer and solution.

To bind a row onto an already existing matrix, the . . . . . . . . function can be used.

Select an option to see the answer and solution.

vectors can be one of two types namely atomic vectors and . . . . . . . .

Select an option to see the answer and solution.

A . . . . . . . . is a set of elements appearing in rows and columns where the elements are of the same mode whether they are logical, numeric (integer or double), complex or character.

Select an option to see the answer and solution.

Which function replicates elements of vectors?

Select an option to see the answer and solution.

Which of the following statement changes column name to h and f?

Select an option to see the answer and solution.

Which of the following is a 3-dimensional dataset?

Select an option to see the answer and solution.

What will be the output of the following R code?
> sqrt(-17)

Select an option to see the answer and solution.

What will be the output of the following R code?
> x <- 1:3
> y <- 10:12
> cbind(x, y)

Select an option to see the answer and solution.

Which of the following statement is invalid?

Select an option to see the answer and solution.