WorksheetsDay-2 Assessment(Essentials of Data Analytics Using R)
Total questions: 20
Worksheet time: 10mins
v <- TRUE
print(class(v))
logical
Numeric
Integer
Complex
What will be output for the following code?
logical
Numeric
Character
Wrong
In R programming, the very basic data types are the R-objects called?
Lists
Matrices
Vectors
Arrays
Data Frames are created using the?
Point out the correct statement?
Empty vectors can be created with the vector() function
A sequence is represented as a vector but can contain objects of different classes
. "raw” objects are commonly used directly in data analysis
. The value NaN represents undefined value
> x <- vector(""numeric"", length = 10)
> x
1 0
0 0 0 0 0 0 0 0 0 0
0 1
0 0 1 1 0 1 1 0
> sqrt(-17)
-4.02
NAN
4.02
3.67
_______ function returns a vector of the same size as x with the elements arranged in increasing order.
sort()
orderasc()
orderby()
sequence()
> m <- matrix(nrow = 2, ncol = 3)
> dim(m)
3 3
3 2
2 3
2 2
R is an__________programming language?
Closed source
GPL
Open source
Definite source
Who developed R?
Dennis Ritchie
John Chambers
Bjarne Stroustrup
R was named partly after the first names of____R authors?
1
2
3
4
Packages are useful in collecting sets into a_____unit ?
Single
Multiple
R is an interpreted language so it can access through_____________?
Disk operating system
User interface operating system
Operating system
Command line interpreter
Many quantitative analysts use R as their____tool?
Leading tool
Programming tool
Both the above
Predictive analysis is the branch of __________analysis?
Advanced
Core
Both the above
Vector is?
homogeneous 1-D data structure
heterogeneous 1-D data structure
What is the function that can be used convert data into list format?
lapply()
list()
list1()
both b and c
logic1=c(T,F,F,T,F,T)
print(which (logic1))?
1 4 6
2 3 6
6 4 1
1 2 3
What will be a, if a = seq (100,to = 1000, by = 20)
[100, 200, 400, …., 1000]
[100, 120, 140, …., 980, 1000]
[20, 120 ,220, …., 1000 ]
None of the above
