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.

Which function can be used to create collection of vectors objects?

Answer»

Which FUNCTION can be used to create COLLECTION of vectors objects?
CHOOSE the correct OPTION from below LIST
(1)concat()
(2)c()
(3)cp()
(4)None of the options

Answer:-(2)c()

2.

An important property of vectors in R is that __________________.

Answer»

An IMPORTANT property of vectors in R is that __________________.
CHOOSE the correct OPTION from below list
(1)Elements can only be character or numeric
(2)A vector cannot have attributes LIKE dimensions
(3)All elements must be of the same class
(4)Elements can be of different classes
(5)None of the options

Answer:-(3)All elements must be of the same class

3.

Which of the following statements is correct in R Basic?

Answer»

Which of the following statements is correct in R BASIC?
CHOOSE the correct option from below list
(1)All the options
(2)Use explicit TRUE and FALSE values when INDICATING logical values.
(3)R operates on named data structures.
(4)rm command is used to REMOVE objects in R.

Answer:-(1)All the options

4.

Which command allows you to get the median tree Height of the R sample dataset "trees"?

Answer»

Which command allows you to get the median tree Height of the R sample DATASET "trees"?
Choose the correct OPTION from below list
(1)avg.median(trees$Height)
(2)median(trees.Height)
(3)median(trees$Height)
(4)median(trees)

Answer:-(3)median(trees$Height)

5.

Create Bar Charts in R Language?

Answer»

Create Bar Charts in R Language?
First we will discuss what is bar chart. A bar chart is created by rectangle bars to display data. we can display bar charts horizontal or vertical. Length and height of the bars are PROPORTIONAL to the values they represent. We use barplot() function to draw a vertical bar chart. Below is the example for bar charts values:-


#x-axis Values as given below
x
#y-axis Values as given below
y
barplot(y,companyname.arg=x)




Barchart R
In above example below are some POINTS
(1)x VARIABLE represent values on x-axis(A,B,C,D)
(2)y variable represent values on y-axis(2,4,6,8)
(3)We use barplot() function to create bar chart of values
(4)companyname.arg DEFINES name of each oberservation on x-axis

6.

What are the Missing and Impossible values in R language?

Answer»

What are the Missing and Impossible values in R LANGUAGE?
Missing values are REPRESENTED by symbol NA which means (Not Available). And Impossible values represented by symbol Nan(Not a Number). We use NA for both numeric and string data. There is no global WAY to deal with missing values there are many advanced functions namely MODELLING functions have several options for dealing with missing values, from pairwise or list-wise deletion of missing values to complex multiple imputation methods and have a DEFAULT method of eliminating missing data.

7.

What command will you enter in the R console to get help on how to quit R?

Answer»

What COMMAND will you enter in the R CONSOLE to get HELP on how to quit R?
Choose the CORRECT option from below list
(1)info(quit)
(2)man quit
(3)help(q)
(4)help q

Answer:-(3)help(q)

8.

In R, the subsequent data types are all atomic data types except _____________.

Answer»

In R, the subsequent data types are all atomic data types except _____________.
Choose the correct option from below list
(1)LOGICAL
(2)FLOAT
(3)INTEGER
(4)Data frame
(5)Character

Answer:-(4)Data frame

9.

Which function is used to generate Sequences in R?

Answer»

Which function is used to generate Sequences in R?
CHOOSE the correct option from below LIST
(1)seqn()
(2)SEQ()
(3)order()
(4)sequence()

Answer:-(2)seq()