[go: up one dir, main page]

100% found this document useful (1 vote)
414 views5 pages

Data Science For Engineers - Unit 5 - Week 1

1) The document is a summary of an assessment submitted for the Data Science for Engineers course on NPTEL. 2) It provides the questions asked in the assessment, which cover topics like variables and data types in R, data frames, and functions. 3) At the end, it lists additional weeks of content and opportunities to take practice quizzes and the assessment quiz for Week 1.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
414 views5 pages

Data Science For Engineers - Unit 5 - Week 1

1) The document is a summary of an assessment submitted for the Data Science for Engineers course on NPTEL. 2) It provides the questions asked in the assessment, which cover topics like variables and data types in R, data frames, and functions. 3) At the end, it lists additional weeks of content and opportunities to take practice quizzes and the assessment quiz for Week 1.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

8/18/2021 Data Science for Engineers - - Unit 5 - Week 1

Assessment submitted.

(https://swayam.gov.in)      

(https://swayam.gov.in/nc_details/NPTEL)
X

balaji.iniyan@gmail.com 

NPTEL (https://swayam.gov.in/explorer?ncCode=NPTEL)
»
Data Science for Engineers (course)

Register for
Certification
exam
Thank you for taking the Week 1:
(https://examform.nptel.ac.in/) Assignment 1.
Course
outline Week 1: Assignment 1
Your last recorded submission was on 2021-08-18, 15:42 IST Due date: 2021-08-18, 23:59 IST.
How does an
1) Choose the variable name that is invalid in R. 1 point
NPTEL online
course work?

data.1 = 10

data1 = 10
Setup Guide

1data = 10
Pre Course
data_1 =10
Material
2) The command to access help in R Studio is— 1 point

Week 0
? topic

help(topic)
Week 1

RSiteSearch(‘topic’)
Data science
help.stand(topic)
for engineers
Course 3) In the R code given below, the value of "i” at which the loop breaks is_____
1 point
philosophy and

expectation
(unit?
unit=22&lesson=23)

Introduction to
R (unit?
unit=22&lesson=24)

Introduction to
R (Continued)
(unit?
unit=22&lesson=25)

https://onlinecourses.nptel.ac.in/noc21_cs69/unit?unit=22&assessment=128 1/5
8/18/2021 Data Science for Engineers - - Unit 5 - Week 1

Variables
Assessment and
submitted.
datatypes in R
X
(unit?
unit=22&lesson=26)

Data frames
(unit?

unit=22&lesson=27)

Recasting and
joining of
dataframes
(unit?
unit=22&lesson=28)

Arithmetic,Logical
and Matrix
2
operations in R

9
(unit?
unit=22&lesson=29)
10

8
Advanced
programming in 4) The library that supports right _join () function in R is______ 1 point
R : Functions
(unit?
dplyr
unit=22&lesson=30)

caret
Advanced
CRAN
Programming in
R : Functions

ggplot2
(Continued)
5) The value of sum and month when i = 9 is____
1 point
(unit?
unit=22&lesson=31)

Control
structures
(unit?
unit=22&lesson=32)

Data
visualization in
R Basic
graphics (unit?
unit=22&lesson=33)

Common
"May" "18"
doubts asked

"Sep" "52"
on R Language
(Week-1) (unit?
"Oct" "63"
unit=22&lesson=34)
"Nov" "75"
Week 1 6) Table 1 provides the scores of the students in three subjects. Create a data frame 1 point
Feedback
called students_scores out of Table 1. Which of the following options gives Table 2 as an output?

Form: Data

Science for
Engineers
(unit?
unit=22&lesson=35)

https://onlinecourses.nptel.ac.in/noc21_cs69/unit?unit=22&assessment=128 2/5
8/18/2021 Data Science for Engineers - - Unit 5 - Week 1

Quiz: Week 1:
Assessment submitted.
Practice
X Assignment 1
(assessment?
name=120)

Quiz: Week 1:
Assignment 1
(assessment?
name=128)

Week 2

Week 3

Week 4

Download
Videos

  Table 2

https://onlinecourses.nptel.ac.in/noc21_cs69/unit?unit=22&assessment=128 3/5
8/18/2021 Data Science for Engineers - - Unit 5 - Week 1


melt(students_scores, id.vars = c("Name") , measure.vars =c("Mathematics",
Assessment submitted.
"English",”Science”) )
X

melt(students_scores, id.vars = c("Name","Mathematics") , measure.vars =c(
"English",”Science”) )

melt(students_scores, id.vars = c("Name") , measure.vars =c("Mathematics", "English") )

dcast(students_scores, variable+Name ~ Science , value.var="value" )

Create a data frame with given vectors below.

rank = c(1,2,3)

competitor = c("Usain","Tyson","Yohan")

mark = c(9.58, 9.69, 9.65)

Store the data frame in the variable named – “athletics”.

7) The command to add a new row to the data frame “athletics” with the following values 1 point
passed to each vector?

 rank= 4, competitor="Asafa", mark=9.72


athletics=rbind(data.frame(rank= 4, competitor="Asafa", mark=9.72))

athletics =rbind(data.frame(rank=4,competitor=”Asafa”,mark=9.72), athletic)

athletics=rbind(athletics,data.frame(rank=4,competitor=”Asafa”,mark=9.72))

None of the above

Answer question 8 based on the data frame created at the end of Q7.

8) The command to add a new column to the data frame “athletics” with vector 1 point
“nationality” taking values “JAM”,”USA”,”JAM”,”JAM” is:-


athletics=cbind(dataframe(nationality = c(“JAM”,”USA”,”JAM”,”JAM”), athletics))

athletics=cbind(athletics,data.frame(nationality = c(“JAM”,”USA”,”JAM”,”JAM”)))

athletics=cbind(athletics.data.frame(nationality = c(“JAM”,”USA”,”JAM”,”JAM”)))

athletics=cbind(data.frame(nationality = c(“JAM”,”USA”,”JAM”,”JAM”)), athletics)

Answer question 9 based on the data frame created at the end of question 8

9) The correct way to extract all elements for which "mark" is less than 9.69 using the 1 point
“subset” command is_____


subset(athletics, athletics$mark <9.69)

subset[athletics, athletics$mark ]

subset(athletics $mark > 9.69,athletics)

subset(athletics.mark >9.69)

10) Which of the following defined functions will return the output as 9.37? 1 point

func_multi= function(a,b,c)
{
  result=(a*b)*0.5+(a*c)**0.5 

https://onlinecourses.nptel.ac.in/noc21_cs69/unit?unit=22&assessment=128 4/5
8/18/2021 Data Science for Engineers - - Unit 5 - Week 1

  return(result)
Assessment submitted. }
X func_multi(4,5,6)

func_multi= function(a,b,c)
{
  result=(a*b)**0.5+(a*c)**0.5 
  return(result)
}
func_multi(4,5,6)

func_multi= function(a,b,c)
{
  result=(a*b)**0.5+(a*c)**0.5 
  return(result)
}
func_multi(4,5)

None of the above

You may submit any number of times before the due date. The final submission will be considered
for grading.
Submit Answers

https://onlinecourses.nptel.ac.in/noc21_cs69/unit?unit=22&assessment=128 5/5

You might also like