
Basic R Programming Quiz

Quiz
•
Other
•
University
•
Hard
EC M
Used 3+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the basic syntax for printing a message in R?
`print("Hello World!")`
`println("Hello World!")`
`echo("Hello World!")`
`message("Hello World!")`
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the `#` symbol in R?
To assign a value to a variable
To comment out a line of code
To create a function
To load a library
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you assign a value to a variable in R?
`x=5`
`x<-5`
`x=5:10`
`x="hello"`
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between `=` and `<-` in R?
`=` is used for assignment, `<-` is used for printing
`=` is used for printing, `<-` is used for assignment
`=` is used for both assignment and printing
There is no difference between the two
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a vector in R?
`x=c(1,2,3)`
`x=[1,2,3]`
`x={1,2,3}`
`x=(1,2,3)`
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the name of the first built-in dataset in R?
mtcars
iris
airquality
builtin
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you load a library in R?
`load("library")`
`library(load)`
`library()`
`require()`
Create a free account and access millions of resources
Similar Resources on Wayground
11 questions
Grand Quiz Section-I

Quiz
•
University
10 questions
Time-Varying fields and Maxwell's Equation

Quiz
•
University
10 questions
Circular interpolation

Quiz
•
University
11 questions
Image segmentation

Quiz
•
12th Grade - University
15 questions
NSTP Law

Quiz
•
University
10 questions
comparison2

Quiz
•
University
9 questions
Đánh giá rủi ro

Quiz
•
University
10 questions
Examen Corto No. 1 (Sesiones 1 y 2)

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Other
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University