Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

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.

What you will learn

  • What is the syntax for adding a new element 100 at the end of x?
  • What is the output of the given R code?
  • Which function is used to extract a specific element from a vector?
  • Which of the following options extracts ['c','c','d'] from the given vector?
  • Which of the following options would print '0' '1' '2' '3' '4' '5' '6' for the given R code?

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-----------------------