You are on page 1of 10

Ivy ®’s Post-Training Assessement Paper Time Limit – 45 mins.

Full Marks: 20

Name _________Sagnik Mukherjee_______________ | Date: |09-10-2018 Module:

Put the (√) mark against the correct answer.

1. The install.packages() command can be used to

(A) download and install packages from CRAN repositories

(B) download and install packages from local directories

(C) can install both from CRAN and local directories

(D) download and install packages which are not R libraries

Ans: A

2. We remove a trend from a time series data by applying

(A) Log (B) Square root (C) Difference (D) All of the above

Ans: A

3. If “aaa”, “bbb” and “ccc” are three strings, then the command paste(“aaa”,”bbb”,”ccc”) will
return a string

(A) “aaabbbccc” (B) “aaa bbb” (C) “aaa bbb ccc” (D) “aaa-bbb-ccc”

Ans: A

4. C statistics or Area Uder Curve ranges from

(A) 0-1 (B) 0.2-1 (C) 0-4 (D) None of the above

Ans: D

5. If we have a dataset z which has two variables as follows:

x y

1A

1B
2C
3D
4E
3F

Copyright ©2012 Ivy® Knowledge Services Pvt Ltd. All rights reserved.

Page 1 of 5
Ivy ®’s Post-Training Assessement Paper Time Limit – 45 mins. Full Marks: 20

Name ________________________ | Date: | Module :

2G

If you run the code z[duplicated(z$x),]

then what will the values for x?

(A) 1,2,3 (B) 1,1,2 (C) 1,2,3,4 (D) None of the above

Ans: A

6. P value of 0.001 in a statistical test signifies that:

(A) Fail to reject Null Hypothesis (B) Reject the Null Hypothesis
(C) Accept the Alternate (D) Reject the alternate hypothesis
hypothesis
Ans: B

7. We can get which of the following in the box plot?

(A) Mean (B) (C) Mode (D) None


Medi
an

of the above

Ans: B

8. R square will always be ______ than the adjusted R square

(A) Greater than (B) Less than

(C) Greater than equals to (D) Less than equals to

Ans: C

9. KS statistics of Logistic regression will range

(A) 0-1

(B) 0.5-1

(C) 0-4
(D) None of the above

Ans: A
Copyright ©2012 Ivy® Knowledge Services Pvt Ltd. All rights reserved.

Page 2 of 5
Ivy ®’s Post-Training Assessement Paper Time Limit – 45 mins. Full Marks: 20

Name ________________________ | Date: | Module :

10. A dataset x has 3 columns which are a, b, and c. If you want to drop the column c then which
of the following code will work?

(A) x[, 3]

(B) x[-3]

(C) x[,-3]

(D) drop[x$3]

Ans: B

11. If df is a data frame and its third column is named index, then we can access this column by

(A) df$index (B) df[index] (C) df.index (D)

df(3)
Ans. A

12. In order to histogram a vector V with 30 bins, we give the command

(A) hist(V) (B) histogram(V) (C) hist(c(V))

(D) hist(V(30))

Ans: A

13. s<-
function(x,y){ 6*x+y
2*x+y/3

4*x + 5*y x^2 -


y/2

}
s(6,4)
What will be the exact output?

(A) 34

(B) 40 13

(C) 40 13 34
(D) 40 13 44 34

Copyright ©2012 Ivy® Knowledge Services Pvt Ltd. All rights reserved.

Page 3 of 5
Ivy ®’s Post-Training Assessement Paper Time Limit – 45 mins. Full Marks: 20

Name ________________________ | Date: | Module :

Ans: A

14. Two vectors vec1, vec2 are defined as :

vec1 = c(10,11,12,13,14,15)
vec2 = c(13,14, 100,200)
Then, the command vec = c(vec1,vec2) results in a vector whose elements are

(A) {10,11,12, 13,14,15,13,14,100,200} (B) { 10,11,12,13,14,15,100,200}


(C) {100,200} (D) {13,14}

Ans: A

15. A categorical variable is a variable where it has a huge number of values.

(A) True (B) False (C) Don't know (D) Can't say

Ans. B

16. In R, filtering is done on _____________ of a data frame.

(A) Rows (B) Columns (C) None of the above


(D) All of the above
Ans: A

17. If the regression equation between two variables x and y is given by y = 1+ 3x, then what
will be the effect of y if x is increased by 2 units

(A) Y is decreased by 6 units is (B) Y is increased by 6 (C) Y


decreased by 2 units units (D) y is increased
by 3 units

Ans: B

18. Accuracy of logistic regression shows the model performs better when it is

(A) High (B) Low

(C) None of the above (D) All of the above

Ans: A
Copyright ©2012 Ivy® Knowledge Services Pvt Ltd. All rights reserved.
Page 4 of 5
Ivy ®’s Post-Training Assessement Paper Time Limit – 45 mins. Full Marks: 20

Name ________________________ | Date: | Module :

19. We are interested in studying how stress affects heart rates in employees. Our
dependent variable would be

(A) Stress (B) heart rate (C) employee number (D) any one of the above

Ans: B

20. R creates dummy variables automatically when the property of the variable is

(A) Character

(B) Factor

(C) Numeric

(D) You have to create if manually

Ans: B
Copyright ©2012 Ivy® Knowledge Services Pvt Ltd. All rights reserved.

Page 5 of 5

You might also like