0% found this document useful (0 votes)
3 views4 pages

IOT - Week 6

This document outlines the Week 6 assignment for the 'Introduction to Internet of Things' course on NPTEL, including various true/false questions and coding challenges related to Python programming and Raspberry Pi. The assignment includes questions about Python syntax, library installation, and Raspberry Pi configurations. Students are encouraged to submit their answers before the due date of March 5, 2025.

Uploaded by

svcetece2025
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)
3 views4 pages

IOT - Week 6

This document outlines the Week 6 assignment for the 'Introduction to Internet of Things' course on NPTEL, including various true/false questions and coding challenges related to Python programming and Raspberry Pi. The assignment includes questions about Python syntax, library installation, and Raspberry Pi configurations. Students are encouraged to submit their answers before the due date of March 5, 2025.

Uploaded by

svcetece2025
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/ 4

3/5/25, 10:51 AM Introduction To Internet Of Things - - Unit 9 - Week 6

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

[email protected]

NPTEL (https://swayam.gov.in/explorer?ncCode=NPTEL) » Introduction To Internet Of Things (course)


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.

If already 1) State True or False. 1 point


registered, click
to check your Statement: “Python is popular for embedded application development as it is a very lightweight
payment status programming language.”

a. True
b. False
Course
outline 2) State True or False. 1 point

About NPTEL Adafruit provides a library to work with DHT22 Sensor.


()
a. True
How does an b. False
NPTEL online
course work? 3) Consider the following piece of Python code. What is the output? 1 point
()
x = [4, 5, 6]
Week 0 () y = [str(x[0] + 1), str(len(x) * 2) + '&Code']
z = y[1].split('&')
Week 1 () print(z[1])

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 4 () 4) State True or False. 1 point

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

unit=64&lesson B) Reading from the file


=308)
Writing data
Quiz: Week 6 : C) Error: File not found
Assignment 6
D) None of the above
(assessment?
name=318) 10) Can we configure Raspberry Pi as a File Server? 1 point

Week 7 () a. Yes
b. No
Download
Videos ()
11) Which command is used to configure the Raspberry Pi for the camera module? 1 point

Books () A) sudo camera-config


B) sudo raspi-config
Text
Transcripts () C) sudo enable-camera
D) sudo pi-setup
Live
Interactive 12) What is the final step after enabling the camera in the Raspberry Pi configuration? 1 point
Session ()
A) Restart the camera service
B) Run a camera test command
C) Reboot the Raspberry Pi
D) Reinstall the Raspberry Pi OS

13) Which command Exits the nano editor? 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

A) When the relay is manually triggered


B) When the surrounding temperature is lower than a predefined threshold
C) When the surrounding temperature exceeds a predefined threshold
D) When the battery voltage drops below a certain level

15) What does the following line of code do? 1 point

raspistillcapture -o image.jpg

a. Captures video feed


b. Captures still image
c. Both (a) and (b)

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

You might also like