
DATA SCIENCE 4
Quiz
•
Engineering
•
Professional Development
•
Medium
niranjani s
Used 1+ times
FREE Resource
Enhance your content
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following R code?
x <- c(1, 2, 3)
y <- c("4", "5", "six")
z <- c(x, y)
z[4:6]
class(z)
[1] "4" "5" "six"
[1] "character"
[1] 4 5 six
[1] "numeric"
[1] 4 5 six
[1] "mixed"
[1] "1" "2" "3"
[1] "character"
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of this code?
x <- c(TRUE, FALSE, TRUE)
y <- c(1, 0, 2)
sum(x * y)
A. 3
B. 2
C. 1
D. Error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
x <- c(1, 2, 3)
y <- c(4, 5, 6)
x + y
A. 5 7 9
B. Error
C. x4 x5 x6
D. 1 2 3 4 5 6
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the c() function do in R?
A. Cuts a string
B. Creates a matrix
C. Combines values into a vector
D. Converts data to character type
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will this code return?
x <- c(10, 20, 30, 40) x[2:3]
A. 10 20
B. 20 30
C. 30 40
D. 20 30 40
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to create a data frame?
A. create.frame()
B. frame()
C. data.frame()
D. make.frame()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will length(c(2, 4, 6, 8)) return?
A. 2
B. 4
C. 8
D. Error
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
KUIS BULAN K3 UP3 TAHUNA
Quiz
•
Professional Development
20 questions
Database Security
Quiz
•
Professional Development
20 questions
Java Programming Quiz 1
Quiz
•
Professional Development
20 questions
Identificación conocimientos previos - lógica cableada digital
Quiz
•
Professional Development
21 questions
CONCEPCIÓN ,DISEÑO Y FABRICACIÓN
Quiz
•
Professional Development
17 questions
Quiz Open House BEI IMT AERO
Quiz
•
Professional Development
20 questions
C02 : INDUSTRIAL AUTOMATION SYSTEMS INTEGRATION
Quiz
•
Professional Development
25 questions
D43 QUIZ OF THE DAY
Quiz
•
Professional Development
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade