
Data Analytics Quiz 2
Authored by Shom Das
Computers
Professional Development
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Functions are defined using the _________ directive and are stored as R objects
function()
funct()
functions()
All of the mentioned
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Give the command to check if the element 15 is present in vector x.
15 in (x)
15 %in% x
in(15,x)
None of the above
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
X is the vector c(5,9.2,3,8.51,NA), What is the output of mean(x)?
Error
NA
Will return mean of all integers present
None
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
R functionality is divided into a number of ________
Packages
Functions
Domains
All of the mentioned
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following truncates real x to integers ?
as.numeric(x)
as.integer(x)
as.order(x)
All of the mentioned
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following command will help us to rename the second column in a dataframe named “table” from alpha to beta?
colnames(table)[2]=’beta’
colnames(table)[which(colnames==’alpha’)]=’beta’
Both A and B
colnames(table)=’beta’
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following command will help us remove the duplicate rows based on both the columns?
df[!duplicated(df),]
unique(df)
distinct(df)
both a and b
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?