Font size
WorksheetsSanthosh kumar G
Total questions: 25
Worksheet time: 14mins
Which is the less common assignment operator by programmers
Simple Assignment
Leftward Assignment
Rightward Assignment
R programming language is widely used for
Statistical computing
Data analysis
Visualization
All the above
Both a and b
In R programming comment line starts with a
/*
#
*/
None of the above
Number of Operator in R programming
4
6
5
None of the above
How can you combine multiple data frames in R?
merge()
cbind()
rbind()
All of the above
What is the default separator used in the read.csv() function?
space
comma
semicolon
colon
To check the bytes of the object
class()
type()
check()
typeof()
Which function is used to merge two data frames by a common column in R?
merge()
join()
bind()
both a and c
which function is not used to create a factor in R?
create.factor()
factor()
as.factor()
Both b and c
How do you create a scatter plot in R?
plot()
scatter()
plot.scatter()
Both a and c
What function is not used to apply a function to each element of a list in R?
apply()
lapply()
sapply()
Both b and c
How do you create an empty list in R?
list()
[]
null()
empty_list()
Which function is used to get the row names of a data frame in R?
rownames()
get.names()
names()
Both a and c
Which of the following functions is used to calculate the quantile in R?
quantile()
pct()
quant()
percentile()
What does the table() function return in R?
A frequency table
A data frame
A summary of data
A vector of sorted values
How can you check the type of an object in R?
typeof()
class()
type()
All of the above
Which function is used to calculate the standard deviation in R?
sd()
stdev()
stddev()
var()
Syntax for rightward operator
(a)
Which of the following is the correct syntax to create a vector in R?
v <- c(1, 2, 3)
v <- vector(1, 2, 3)
v = [1, 2, 3]
both a and c
In R, you must declare the data type of a variable
true
false
Which operator can be used to compare two values?
==
=
<>
><
How do you start writing an if statement in R?
if (x > y)
if x > y:
if x > y then:
Which statement is used to stop a loop?
break
stop
exit
return
The following values: 10.5, 55 and 787, belongs to which data type?
(a)
