Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
7 views5 pages

Data Science For Engineers - Unit 6 - Week 1

The document outlines the first week's assignment for the 'Data Science for Engineers' course, detailing various questions related to R programming. It includes questions about variable names, functions, data frames, and commands in R, along with the correct answers and scores. The assignment was due on August 6, 2025, and the document provides a structured format for the questions and answers.

Uploaded by

rithik2baby
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
0% found this document useful (0 votes)
7 views5 pages

Data Science For Engineers - Unit 6 - Week 1

The document outlines the first week's assignment for the 'Data Science for Engineers' course, detailing various questions related to R programming. It includes questions about variable names, functions, data frames, and commands in R, along with the correct answers and scores. The assignment was due on August 6, 2025, and the document provides a structured format for the questions and answers.

Uploaded by

rithik2baby
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

9/12/25, 8:24 PM Data Science for Engineers - - Unit 6 - Week 1

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

[email protected]

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

If already
registered, click
to check your
Week 1 : Assignment 1
payment status The due date for submitting this assignment has passed.
Due on 2025-08-06, 23:59 IST.

Course Assignment submitted on 2025-08-06, 21:04 IST


outline
1) Which of the following variable names are INVALID in R? 1 point

About 1_variable
NPTEL () variable_1
_variable
How does an
NPTEL variable@
online Partially Correct.
course Score: 0.67
work? () Accepted Answers:
1_variable
Week 1 () _variable
variable@
Data science
for engineers 2) The function ls() in R will 1 point
Course
philosophy set a new working directory path
and
list all objects in our working environment
expectation
(unit? display the path to our working directory
unit=21&lesso None of the above
n=22)
Yes, the answer is correct.
Introduction Score: 1
to R (unit? Accepted Answers:
unit=21&lesso list all objects in our working environment
n=23)

https://onlinecourses.nptel.ac.in/noc25_cs101/unit?unit=21&assessment=236 1/5
9/12/25, 8:24 PM Data Science for Engineers - - Unit 6 - Week 1

Introduction Consider the following code snippet. Based on this, answer questions 3 and 4.
to R
(Continued)
(unit?
unit=21&lesso
n=24)

Variables and
datatypes in R
(unit?
unit=21&lesso
n=25) 3) Which of the following command is used to access the value “Shyam”? 1 point

Data frames print(patient_list[3][2])


(unit?
print(patient_list[[3]][1])
unit=21&lesso
n=26) print(patient_list[[3]][2])
print(patient_list[[2]][2])
Recasting and
joining of Yes, the answer is correct.
dataframes Score: 1
(unit? Accepted Answers:
unit=21&lesso print(patient_list[[3]][2])
n=27)

Arithmetic,Lo
4) What does the following R code produce? 1 point
gical and
Matrix
operations in
R (unit?
unit=21&lesso
n=28) “apple”
“banana”
Advanced
programming “cherry”
in R : Error
Functions
(unit?
Yes, the answer is correct.
Score: 1
unit=21&lesso
Accepted Answers:
n=29)
“banana”
Advanced
Programming 5) What is the output of following code? 1 point
in R :
Functions
(Continued)
(unit?
unit=21&lesso
n=30)
double
Control integer
structures
list
(unit?
unit=21&lesso None of the above
n=31) Yes, the answer is correct.
Score: 1
Data
Accepted Answers:
visualization
double
in R Basic

https://onlinecourses.nptel.ac.in/noc25_cs101/unit?unit=21&assessment=236 2/5
9/12/25, 8:24 PM Data Science for Engineers - - Unit 6 - Week 1

graphics 6) State whether the given statement is True or False. 1 point


(unit? The library reshape2 is based around two key functions named melt and cast.
unit=21&lesso
n=32) True

Common False
doubts asked Yes, the answer is correct.
on R Score: 1
Language Accepted Answers:
(Week-1) True
(unit?
unit=21&lesso
7) What does the following R code return? 1 point
n=33)

Week 1
Feedback
Form : Data
Science for
Engineers!!
5, 10, 15, 20
(unit?
unit=21&lesso 15, 20
n=153) 10, 15, 20
Quiz: Week 1 Error
: Assignment
Yes, the answer is correct.
1 Score: 1
(assessment?
Accepted Answers:
name=236)
15, 20

Week 2 ()
8) What is the output of the following R code? 1 point
Week 3 ()

Week 4 ()

Week 5 ()

Week 6 ()
1, 2, 3
Week 7 () 0, 1, 2
1, 2, 3, 4
Week 8 ()
Error

Text Yes, the answer is correct.


Score: 1
Transcripts
Accepted Answers:
()
1, 2, 3

Download
Videos () Create the data frame using the code given below and answer questions 9 and 10.

Books () student_data =
data.frame(student_id=c(1:4),student_name=c(‘Ram’,‘Harish’,‘Pradeep’,‘Rajesh’))
Problem
Solving 9) Choose the correct command to add a column named student_dept to the 1 point
dataframe student_data.

https://onlinecourses.nptel.ac.in/noc25_cs101/unit?unit=21&assessment=236 3/5
9/12/25, 8:24 PM Data Science for Engineers - - Unit 6 - Week 1

Session - student_datastudent_dept=c(“Commerce”, “Biology”, “English”, “Tamil”)


July 2025 ()
student_data[“student_dept”]= c(“Commerce”,“Biology”, “English”,“Tamil”)
student_dept= student_data[c(“Commerce”,“Biology”,“English”,“Tamil”)]
None of the above

No, the answer is incorrect.


Score: 0
Accepted Answers:
student_data[“student_dept”]= c(“Commerce”,“Biology”, “English”,“Tamil”)

10) Choose the correct command to access the element Tamil in the dataframe 1 point
student_data.

student_data[[4]]
student_data[[4]][3]
student_data[[3]][4]
None of the above

Yes, the answer is correct.


Score: 1
Accepted Answers:
student_data[[3]][4]

11) The command to check if a value is of numeric data type is ______. 1 point

typeof()
is.numeric()
as.numeric()
None of the above
Yes, the answer is correct.
Score: 1
Accepted Answers:
is.numeric()

12) What will the following R code return? 1 point

6
5
9
Error
Yes, the answer is correct.
Score: 1
Accepted Answers:
6

13) What is the result of the following R code? 1 point

https://onlinecourses.nptel.ac.in/noc25_cs101/unit?unit=21&assessment=236 4/5
9/12/25, 8:24 PM Data Science for Engineers - - Unit 6 - Week 1

[1] 8 10 12
[2] 14 16 18
[1] [2] [3]
[1] 8 12 16
[2] 10 14 18
[1] 8 9 10 11 12 13
Error

Yes, the answer is correct.


Score: 1
Accepted Answers:
[1] [2] [3]
[1] 8 12 16
[2] 10 14 18

https://onlinecourses.nptel.ac.in/noc25_cs101/unit?unit=21&assessment=236 5/5

You might also like