Explore topic-wise InterviewSolutions in .

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

1.

What is the use of "next" statement in R?

Answer»
2.

How to obtain the transpose of a matrix in R?

Answer»
3.

What is the output for the below expression all(NA==NA)?

Answer»
4.

How do you check if "m" is a matrix data object in R?

Answer»
5.

What is the difference between subset() function and sample() function in R?

Answer»
6.

Give the syntax for creating scatterplot matrices.

Answer»
7.

Give the command to check if the element 15 is present in vector x.

Answer»
8.

What is the use of the command - install.packages(file.choose(), repos=NULL)?

Answer»
9.

List the data sets available in all available packages.

Answer»
10.

List the data sets available in package "MASS"

Answer»
11.

How do you remove a vector from the R workspace?

Answer»
12.

Give the command to create a histogram.

Answer»
13.

What does col.max(x) do?

Answer»
14.

What is the difference between "%%" and "%/%"?

Answer»
15.

How do you set the path for current working directory in R?

Answer»
16.

How do you get the standard deviation for a vector x?

Answer»
17.

How to find the help page on missing values?

Answer»
18.

Is an array a matrix or a matrix an array?

Answer»
19.

What is the use of apply() in R?

Answer»
20.

Give a function in R that replaces all missing values of a vector x with the sum of elements of that vector?

Answer»
21.

How do you convert the data in a JSON file to a data frame?

Answer»
22.

X is the vector c(5,9.2,3,8.51,NA), What is the output of mean(x)?

Answer»
23.

Give the R expression to get 26 or less heads from a 51 tosses of a coin using pbinom.

Answer»
24.

What does unlist() do?

Answer»
25.

Vector v is c(1,2,3,4) and list x is list(5:8), what is the output of v*x[[1]]?

Answer»
26.

Vector v is c(1,2,3,4) and list x is list(5:8), what is the output of v*x[1]?

Answer»
27.

Give a R script to extract all the unique words in uppercase from the string - "The quick brown fox jumps over the lazy dog".

Answer»
28.

What is expected from running the command - strsplit(x,"e")?

Answer»
29.

How to get a list of all the packages installed in R ?

Answer»
30.

What is the output of runif(4)?

Answer»
31.

What is reshaping of data in R?

Answer»
32.

In doing time series analysis, what does frequency = 6 means in the ts() function?

Answer»
33.

which function is used to create a boxplot graph in R?

Answer»
34.

Give the general expression to create a matrix in R.

Answer»
35.

Can we update and delete any of the elements in a list?

Answer»
36.

Name a R packages which is used to read XML files.

Answer»
37.

How do you install a package in R?

Answer»
38.

What is lazy function evaluation in R?

Answer»
39.

What are different ways to call a function in R?

Answer»
40.

What is recycling of elements in a vector? Give an example.

Answer»
41.

How do you access the element in the 2nd column and 4th row of a matrix named M?

Answer»
42.

How R is used in logistic regression?

Answer»
43.

What is R Base package?

Answer»
44.

How do you get the name of the current working directory in R?

Answer»
45.

How can you load and use csv file in R?

Answer»
46.

Which data object in R is used to store and process categorical data?

Answer»
47.

What is the main difference between an Array and a matrix?

Answer»
48.

What makes a valid variable name in R?

Answer»
49.

What are the different data objects in R?

Answer»
50.

What is R Programming?

Answer»