What is the correct way to assign a value to a variable in R?
R variable Data Type and Flow Control Quiz

Quiz
•
Kundan Kumar
•
Computers
•
University
•
1 plays
•
Medium
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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)
Explore all questions with a free account
Similar Resources on Quizizz
10 questions
Lists in python

Quiz
•
University
16 questions
Mathematical Foundations of Computer Graphics

Quiz
•
University
10 questions
R Function Quiz

Quiz
•
University
15 questions
CSE 102 Exam 2 Practice

Quiz
•
University
15 questions
Principles of Programming Languages

Quiz
•
University
10 questions
DSA(UNIT 1) Test 1

Quiz
•
University
10 questions
Data Visualization

Quiz
•
University
10 questions
Java Arrays

Quiz
•
University
Popular Resources on Quizizz
19 questions
Naming Polygons

Quiz
•
3rd Grade
14 questions
Prime Factorization

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
21 questions
6th Grade Math CAASPP Practice

Quiz
•
6th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
35 questions
4th Grade Math SOL Review

Quiz
•
4th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
Discover more resources for Computers
15 questions
Disney Trivia

Quiz
•
University
20 questions
Disney Trivia

Quiz
•
University
52 questions
Logos Trivia

Quiz
•
KG - University
23 questions
History of English and Review

Quiz
•
KG - University
12 questions
Scientific Notation

Quiz
•
University
5 questions
Tone and Mood in Literature

Interactive video
•
4th Grade - University
7 questions
Food Webs and Energy Pyramids: Bedrocks of Biodiversity

Interactive video
•
11th Grade - University
8 questions
G2U6W1 - The Golden Flower: A Taino Myth from Puerto Rico

Quiz
•
2nd Grade - University