
R quiz
Authored by Vignesh Raja
Professional Development
Professional Development
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
31 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec ⢠1 pt
Which of the following is a valid way to create a numeric vector in R?
c(1, 2, 3)
c[1,2,3]
vector[1, 2, 3]
vector(1,2,3)
2.
MULTIPLE CHOICE QUESTION
30 sec ⢠1 pt
What is the data type of the result of the following expression?
typeof(3L)
"double"
"integer"
"numeric"
"logical"
3.
MULTIPLE CHOICE QUESTION
30 sec ⢠1 pt
What will be the output of this code?
x <- c(TRUE, FALSE, TRUE)
sum(x)
3
2
1
Error
4.
MULTIPLE CHOICE QUESTION
30 sec ⢠1 pt
Which function is used to check the structure of an R object?
summary()
structure()
class()
str()
5.
FILL IN THE BLANK QUESTION
1 min ⢠1 pt
Write R code to assign the value 5 to a variable named
6.
MULTIPLE CHOICE QUESTION
30 sec ⢠1 pt
Which function is used to create a bar plot in R?
7.
MULTIPLE CHOICE QUESTION
30 sec ⢠1 pt
What is the output of mean(c(2, 4, 6, NA), na.rm = TRUE)?
4
NA
3
Error
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 Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
30 questions
TWK-1
Quiz
ā¢
Professional Development
30 questions
KUIS SKD CPNSPEDIA SESI 1
Quiz
ā¢
12th Grade - Professi...
26 questions
SkillsFuture for Digital Workplace
Quiz
ā¢
Professional Development
26 questions
Reanimación cardiopulmonar avanzada
Quiz
ā¢
University - Professi...
26 questions
Product Specialist Test
Quiz
ā¢
Professional Development
30 questions
KB1 SEATWORK
Quiz
ā¢
University - Professi...
27 questions
UNIT-8
Quiz
ā¢
Professional Development
27 questions
REHIS 2 - Bacteria
Quiz
ā¢
Professional Development
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
ā¢
4th Grade
15 questions
Fractions on a Number Line
Quiz
ā¢
3rd Grade
20 questions
Equivalent Fractions
Quiz
ā¢
3rd Grade
25 questions
Multiplication Facts
Quiz
ā¢
5th Grade
22 questions
fractions
Quiz
ā¢
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
ā¢
3rd Grade
20 questions
Main Idea and Details
Quiz
ā¢
5th Grade
20 questions
Context Clues
Quiz
ā¢
6th Grade