IOT - Week 6
IOT - Week 6
(https://swayam.gov.in) (https://swayam.gov.in/nc_details/NPTEL)
Click to register
for Certification
exam
Week 6 : Assignment 6
(https://examform.nptel.ac.in/2025_01/exam_form/dashboard)
onmicrosoft.com/B2C_1_swayam2/oauth2/v2.0/logout?post_logout_redirect_uri=https://onlinecourses.nptel.ac.in/wso_logout)
Your last recorded submission was on 2025-03-02, 17:01 IST Due date: 2025-03-05, 23:59 IST.
a. True
b. False
Course
outline 2) State True or False. 1 point
Week 2 () a) 5
b) 12
Week 3 ()
c) Code
d) &Code
https://onlinecourses.nptel.ac.in/noc25_cs44/unit?unit=64&assessment=318 1/4
3/5/25, 10:51 AM Introduction To Internet Of Things - - Unit 9 - Week 6
Week 5 () Statement: “To indicate different blocks of code, Python follows rigid indentation.”
Week 6 () a. True
b. False
Lecture 26:
Introduction to
5) What is the output of the following line of code in Python? 1 point
Python
Programming- I
>>> print “Hi, Welcome to python!”
(unit?
unit=64&lesson
a. Hi, Welcome to python!
=65)
b. “Hi, Welcome to python!”
Lecture 27:
c. Hi, Welcome to python
Introduction to
Python d. None of these
Programming-
II (unit? 6) During remote server access by a Raspberry Pi, where the Raspberry Pi acts as a 1 point
unit=64&lesson
client, the client needs the following?
=66)
Lecture 28:
a. Only IP address of server
Introduction to b. Only port number
Raspberry Pi- I
c. Both server IP address and port number
(unit?
unit=64&lesson
d. Client’s IP address
=67)
7) State whether the following command to install the PIL library is correct or not. 1 point
Lecture 29:
Introduction to
sudo pip install pillow
Raspberry Pi- II
(unit?
a. Correct
unit=64&lesson
=68) b. Incorrect
Lecture 30:
8) What is the purpose of the "w" mode in the open() function in Python? 1 point
Implementation
of IoT with
A) To read a file
Raspberry Pi- I
(unit? B) To write data to a file, overwriting existing content
unit=64&lesson C) To append data to a file
=69)
D) To open a file in read and write mode
Lecture
material of 9) What will be the output of the given Python program when reading from the file? 1 point
Week 6 (unit?
unit=64&lesson
with open("PythonProgram.txt", "w") as file:
=70)
file.write("Writing data")
Week 6 with open("PythonProgram.txt", "r") as file:
Feedback Form f = file.read() print('Reading from the file\n') print(f)
(unit?
A) Writing data
https://onlinecourses.nptel.ac.in/noc25_cs44/unit?unit=64&assessment=318 2/4
3/5/25, 10:51 AM Introduction To Internet Of Things - - Unit 9 - Week 6
Week 7 () a. Yes
b. No
Download
Videos ()
11) Which command is used to configure the Raspberry Pi for the camera module? 1 point
a. Ctrl + X
b. Ctrl + O
c. Ctrl + K
d. None of these
14) In a temperature-controlled fan system using a relay, when should the fan turn on? 1 point
raspistillcapture -o image.jpg
https://onlinecourses.nptel.ac.in/noc25_cs44/unit?unit=64&assessment=318 3/4
3/5/25, 10:51 AM Introduction To Internet Of Things - - Unit 9 - Week 6
d. None of these
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/noc25_cs44/unit?unit=64&assessment=318 4/4