Question Paper for Data Analytics Subject Code: CSE4027, Exercises of Data Analysis & Statistical Methods

This is a question paper for the data analytics subject of the computer science and engineering program. It contains 15 questions with multiple choices that cover various topics such as r programming, data manipulation, and data visualization.

Typology: Exercises

2020/2021

Uploaded on 09/19/2021

sriharshitha-deepala
sriharshitha-deepala ๐Ÿ‡ฎ๐Ÿ‡ณ

11 documents

1 / 4

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Department of Computer Science and Engineering
CAT 1 Question Paper
Programme : CSE Section:E&F
Subject : Data Analytics Subject code : CSE4027
Time : 90 Minutes Marks : 30
PART-B (15X2=30)
Answer the following questions
1What would be the output of the following code?
x <- 2:4
y <- 6:10
x/y
Ans
(a) 0.1666667 0.2857143 0.4444444 (b) 0.3333333 0.4285714
0.5000000 0.2222222
(c) Canโ€™t Divide (d) 0.3333333 0.4285714
0.5000000 0.2222222
0.3000000
d
2What would be the result of following code?
x <- c(6, FALSE, TRUE, FALSE)
class(x)
(a) Integer (b) Numeric
(c) Real (d) All of the mentioned b
3Which of the following statement would print โ€œ0โ€ โ€œ1โ€ โ€œ2โ€ โ€œ3โ€ โ€œ4โ€ โ€œ5โ€ โ€œ6โ€ for
the following code?
x <- 0:6
(a) as.character(x) (b)as.logical(x)
(c) as.numeric(x) (d) none of the mentioned a
4Which of the following extracts [ โ€œcโ€,โ€cโ€,โ€dโ€] from the following vector ?
x <- c("a", "b", "c", "c", "d", "a")
(a) x[2:4] (b) x[c:d] c
(c) x[3:5] (d) x[c(3:5)] d
5What would be the output of the following code?
m <- matrix(1:6, byrow=TRUE)
m
pf3
pf4

Partial preview of the text

Download Question Paper for Data Analytics Subject Code: CSE4027 and more Exercises Data Analysis & Statistical Methods in PDF only on Docsity!

Department of Computer Science and Engineering CAT 1 Question Paper Programme : CSE Section:E&F Subject : Data Analytics Subject code : CSE Time : 90 Minutes Marks : 30 PART-B (15X2=30) Answer the following questions (^1) What would be the output of the following code? x <- 2 : 4 y <- 6 : x/y Ans (a) 0.1666667 0.2857143 0.4444444 (^) (b) 0.3333333 0. 0.5000000 0. (c) Canโ€™t Divide (^) (d) 0.3333333 0. 0.5000000 0.

d (^2) What would be the result of following code? x <- c(6, FALSE, TRUE, FALSE) class (x) (a) Integer (b) Numeric (c) Real (d) All of the mentioned b (^3) Which of the following statement would print โ€œ0โ€ โ€œ1โ€ โ€œ2โ€ โ€œ3โ€ โ€œ4โ€ โ€œ5โ€ โ€œ6โ€ for the following code? x <- 0 : 6 (a) as.character(x) (b)as.logical(x) (c) as.numeric(x) (d) none of the mentioned a (^4) Which of the following extracts [ โ€œcโ€,โ€cโ€,โ€dโ€] from the following vector? x <- c ("a", "b", "c", "c", "d", "a") (a) x[2:4] (b) x[c:d] c (c) x[3:5] (d) x[c(3:5)] d (^5) What would be the output of the following code? m <- matrix ( 1 : 6 , byrow=TRUE ) m

(a [, 1 ] [, 2 ] [, 3 ] [, 4 ] [, 5 ] [, 6 ] [ 1 ,] 1 2 3 4 5 6 (b) [,1] [1,] 1 [2,] 2 [3,] 3 [4,] 4 [5,] 5 [6,] 6 (c [, 1 ] [, 2 ] [, 3 ] [ 1 ,] 1 3 6 [ 2 ,] 2 4 5 (d [, 1 ] [, 2 ] [, 3 ] [ 1 ,] 1 2 3 [ 2 ,] 4 5 6 b (^6) What would be the output of the following code? x<-c("yes","no","yes","yes" ) y<-c("F","g","g","F") data<-data.frame(x,y) is.factor(data) is.factor(data$x) (a) FALSE, TRUE (b) FALSE, FALSE (c) TRUE, FALSE (d) TRUE, FALSE a (^7) x<-c("yes","no","yes","yes" ) y<-as.factor(x) is.factor(y) is.factor(x) (a) FALSE, TRUE (b) FALSE, FALSE (c) TRUE, FALSE (^) (d) TRUE, FALSE d (^8) What is syntax for adding a new element 100 at the end of x? x <- list ( 1 , "a", TRUE, list(1, 1+4i), 1 + 4i) (a) list[5]<-100 (b) x[7]<- (c) x[6]<-100 (d) list[6]<-100 c (^9) What will be the output of the following code? x<-data.frame(age=c(34,56,12,45)) normalize <- function(x){ nominator <- x-min(x) denominator <- max(x)-min(x) normalize <- nominator/denominator return(normalize) } normalize(x)

PART-B (2X10=20)

Answer ALL Questions

  1. You want support from your organizationโ€™s decision makers (Board, Senior Management) to implement some of the ideas you gain from this course. The end result should be minute taking standards for your organization. How will you formalize the minute taking standards?
  2. Create a fashion case study template using Microsoft word? (10) -------------ALL THE BEST-----------------------