
R Function Quiz
Authored by Kundan Kumar
Computers
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What does the following R function do?
5
Error
15
Nothing
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What does the ... (ellipsis) represent in an R function?
A placeholder for arguments that will be passed explicitly
The function will return an error
The function can accept a variable number of arguments
A default argument
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following functions is used to apply a function to each element of a list and returns a list?
apply()
sapply()
lapply()
mapply()
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will the following code return?
15
13
5
10
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the purpose of sapply() in R?
Apply a function to each element of a list and return a vector or matrix
Apply a function to each element of a list and return a list
Apply a function to rows/columns of a matrix
Apply a function to multiple arguments
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is a key feature of lapply in R?
Returns a data frame.
Applies a function to elements of a list and returns a list.
Applies a function to a data frame column-wise.
Applies a function to each element of a vector and returns a matrix.
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which function would you use to apply a function to rows or columns of a matrix?
mapply
lapply
apply
sapply
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
15 questions
Microcontroller
Quiz
•
University
10 questions
pointers and structures
Quiz
•
University
15 questions
Web Dev Midterm Quiz
Quiz
•
University
15 questions
07 - Map
Quiz
•
University
10 questions
Diode Quiz
Quiz
•
University
12 questions
Cloud QUIZ
Quiz
•
University - Professi...
10 questions
BOOLEAN CLUB QUIZ 1
Quiz
•
University
10 questions
Seatwork HASH (Data Structure)
Quiz
•
University
Popular Resources on Wayground
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
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade