R variable Data Type and Flow Control Quiz
Quiz
•
Computers
•
University
•
Medium
Kundan Kumar
Used 1+ times
FREE Resource
Enhance your content in a minute
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to assign a value to a variable in R?
x <- 5
x = 5
5 -> x
All of the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to check the type of a variable in R?
typeof()
type()
variable_type()
None of the above
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is true about variables in R?
Variables cannot store multiple data types.
Variables are case-sensitive.
Variable names can start with a number.
Variables name can have _
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to create a numeric vector in R?
vector(1, 2, 3)
[1, 2, 3]
num(1, 2, 3)
c(1, 2, 3)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code?
Error
1, 2, 3
2, 4, 6
3, 4, 5
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following correctly creates a list in R?
list("a", 1, TRUE)
c("a", 1, TRUE)
("a", 1, TRUE)
None
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you access the third element of my_list as a List in R?
my_list[3]
my_list[[3]]
my_list$3
my_list(3)
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
8 questions
Cha-ching 2
Quiz
•
1st Grade - University
10 questions
Bài ôn tập 2 Tin học 3
Quiz
•
3rd Grade - University
10 questions
Kiểm tra học kỳ 1 lớp 2
Quiz
•
2nd Grade - University
10 questions
Excel 2016 Formato de celda
Quiz
•
University
16 questions
Algo Quiz
Quiz
•
University
10 questions
Server Administration- Quiz 1
Quiz
•
12th Grade - University
11 questions
Computer Science (1-9) - Identifying & Preventing Threats
Quiz
•
University
15 questions
Auditoria TI
Quiz
•
University
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
4 questions
Activity set 10/24
Lesson
•
6th - 8th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
30 questions
October: Math Fluency: Multiply and Divide
Quiz
•
7th Grade
Discover more resources for Computers
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
7 questions
Central Idea of Informational Text
Interactive video
•
4th Grade - University
7 questions
Review for You: Using Commas
Interactive video
•
4th Grade - University
5 questions
Using Context Clues
Interactive video
•
4th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
14 questions
Eat Healthy,Be Healty
Quiz
•
4th Grade - University
7 questions
Safari Scholar: Searching for Subject-Verb Agreement
Interactive video
•
4th Grade - University
