R Quiz

Assessment
•
secondary purpose
•
Computers
•
University
•
227 plays
•
Hard
Student preview

26 questions
Show all answers
1.
MULTIPLE CHOICE
20 sec • 1 pt
How many types of R objects are present in R data type?
2.
MULTIPLE CHOICE
20 sec • 1 pt
Which of this programming language is a dialect of R?
3.
MULTIPLE CHOICE
30 sec • 1 pt
In R the following are all atomic data types EXCEPT!
4.
MULTIPLE CHOICE
30 sec • 1 pt
What is the class of the object defined by x <- c(4, TRUE)?
5.
MULTIPLE CHOICE
30 sec • 1 pt
Suppose I have a list defined as x <- list(2, "a", "b", TRUE). How can I fetch character vector "b" from the list?
6.
MULTIPLE CHOICE
30 sec • 1 pt
x <- 1:4 , y <- 2:3, x+y = ?
7.
MULTIPLE CHOICE
30 sec • 1 pt
To extract first two rows from data frame, we do
8.
MULTIPLE CHOICE
30 sec • 1 pt
cube <- function(x, n) {
x^3
}
What is the output of the above function? If called using
cube(4)
9.
MULTIPLE CHOICE
1 min • 1 pt
Consider the following function
f <- function(x) {
g <- function(y) {
y + z
}
z <- 4
x + g(x)
}
If I run in R:
z <- 10
f(3)
10.
MULTIPLE CHOICE
30 sec • 1 pt
What is the value of y?
x <- 5
y <- if(x < 3) {
NA
}
else {
10
}
Explore all questions with a free account
Find a similar activity
Create activity tailored to your needs using
Programming in C

•
University
ITSA Selection Round 1

•
University
TARANG C-COLLEGIUM ROUND-2

•
University
C Language Basics

•
University
Coding Competation(Round 1)

•
University
Python Basics

•
University
c -today

•
University
PSP Module-1

•
University