
R quiz

Quiz
•
Professional Development
•
Professional Development
•
Easy
Vignesh Raja
Used 1+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
30 questions
Quiz 4 - ITEDEV - Final

Quiz
•
Professional Development
30 questions
ADCA Final MCQ (test 3)

Quiz
•
Professional Development
29 questions
Javascript basics 6

Quiz
•
Professional Development
29 questions
Automotive Maintenance Quiz

Quiz
•
Professional Development
30 questions
Training Methodology Level 1_31-60

Quiz
•
Professional Development
26 questions
Machinist Grinder 4th Sem Module 7 : CNC Safety and M/c Element

Quiz
•
Professional Development
35 questions
Deret Huruf

Quiz
•
Professional Development
30 questions
First unit quiz, ENG-11

Quiz
•
Professional Development
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade