
Data Analytics Quiz 1
Authored by Shom Das
Mathematics, Computers
University - Professional Development
Used 9+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Find the Output:
n = 5
x = rep(0,n)
for (j in 1:n)
{
x[j] = j^2
}
x
1 4 9 16 25
0 25 0 25 0
1 2 3 4 5
None
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output?
x <- c("Jan","Feb","Mar","April","May","June","July")
y <- x[c(2,3,6)]
print(y)
Mar Apr July
FebMarJune
"Feb" "Mar" "June"
Error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Files containing R scripts ends with extension :
.S
.R
.Rp
All of the mentioned
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statement changes column name to h and f ?
colnames(m) <- c("h", "f")
columnnames(m) <- c("h", "f")
rownames(m) <- c("h", "f")
None of the mentioned
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Point out the wrong statement :
$ operator semantics are similar to that of [[
The [[ operator can take an integer sequence if you want to extract a nested element of a list
The $ operator can be used to extract multiple elements from a list
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In R language the following are all atomic data types EXCEPT
integer
logical
data frame
character
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of
x <- c(4, "a", TRUE)
class(x)
Numeric
Character
Integer
Logical
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?