wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Day-2 Assessment(Essentials of Data Analytics Using R)

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

v <- TRUE

print(class(v))

a)

logical

b)

Numeric

c)

Integer

d)

Complex

2.

What will be output for the following code?

a)

logical

b)

Numeric

c)

Character

d)

Wrong

3.

In R programming, the very basic data types are the R-objects called?

a)

Lists

b)

Matrices

c)

Vectors

d)

Arrays

4.

Data Frames are created using the?

a)

frame() function

b)

data.frame() function

c)

data() function

d)

frame.data() function

5.

Point out the correct statement?

a)

Empty vectors can be created with the vector() function

b)

A sequence is represented as a vector but can contain objects of different classes

c)

. "raw” objects are commonly used directly in data analysis

d)

. The value NaN represents undefined value

6.

> x <- vector(""numeric"", length = 10)

> x

a)

1 0

b)

0 0 0 0 0 0 0 0 0 0

c)

0 1

d)

0 0 1 1 0 1 1 0

7.

> sqrt(-17)

a)

-4.02

b)

NAN

c)

4.02

d)

3.67

8.

_______ function returns a vector of the same size as x with the elements arranged in increasing order.

a)

sort()

b)

orderasc()

c)

orderby()

d)

sequence()

9.

> m <- matrix(nrow = 2, ncol = 3)

> dim(m)

a)

3 3

b)

3 2

c)

2 3

d)

2 2

10.

R is an__________programming language?

a)

Closed source

b)

GPL

c)

Open source

d)

Definite source

11.

Who developed R?

a)

Dennis Ritchie

b)

John Chambers

c)

Bjarne Stroustrup

12.

R was named partly after the first names of____R authors?

a)

1

b)

2

c)

3

d)

4

13.

Packages are useful in collecting sets into a_____unit ?

a)

Single

b)

Multiple

14.

R is an interpreted language so it can access through_____________?

a)

Disk operating system

b)

User interface operating system

c)

Operating system

d)

Command line interpreter

15.

Many quantitative analysts use R as their____tool?

a)

Leading tool

b)

Programming tool

c)

Both the above

16.

Predictive analysis is the branch of __________analysis?

a)

Advanced

b)

Core

c)

Both the above

17.

Vector is?

a)

homogeneous 1-D data structure

b)

heterogeneous 1-D data structure

18.

What is the function that can be used convert data into list format?

a)

lapply()

b)

list()

c)

list1()

d)

both b and c

19.

logic1=c(T,F,F,T,F,T)

print(which (logic1))?

a)

1 4  6

b)

2 3  6

c)

6 4  1

d)

1 2  3

20.

What will be a, if a = seq (100,to = 1000, by = 20)

a)

[100, 200, 400, …., 1000]

b)

[100, 120, 140, …., 980, 1000]

c)

[20, 120 ,220, …., 1000 ]

d)

None of the above