NPTEL Introduction To Internet Of Things Week 6 Assignment Answers 2024

Join Our WhatsApp Group Join Now
Join Us On Telegram Join Now

NPTEL Introduction To Internet Of Things Week 6 Assignment Answers 2024

1. Python can only be used to build small applications.

a. True
b. False

Answer :- For Answer Click Here 

2. Which of the following is NOT a Python IDE?

a. Spyder
b. PyCharm
c. Both (a) and (b)
d. None of these

Answer :- For Answer Click Here 

3. State whether the following statement is true or false.
Statement: To indicate different blocks of code, python follows rigid indention.

a. False
b. True

Answer :- For Answer Click Here 

4. Which of the following is not a data-type in Python?

a. List
b. Branch
c. Tuple
d. None of these

Answer :- 

5. State whether the following statement is true or false.
Statement: Python allows us to read and write files.

a. True
b. False

Answer :- 

6. Which of the following is NOT a mode to open a file?

a. Read mode
b. Write mode
c. Append mode
d. None of these

Answer :- For Answer Click Here 

7. State whether the following command to install the PIL library in Linux is correct or not.
sudo pip install pillow

a. Correct
b. Incorrect

Answer :- 

8. State whether the following statement is correct for creating a socket ‘s’ in python.
s = socket.socket(socket _family, socket_type, protocol=0)

a. Correct
b. Incorrect

Answer :- 

9. What is a Raspberry Pi?

a. A computer on your palm
b. Single board computer
c. Low cost
d. All of these

Answer :- 

10. Which of the following are required for a basic set up of Raspberry Pi?

a. Monitor
b. Keyboard
c. Mouse
d. All of these

Answer :- For Answer Click Here 

11. Which of the following keyboard key combination writes (i.e saves) the code to the file in nano editor ?

a. Ctil+O
b. Ctrl+X|
c. Both (a) and (b)|
d. None of these

Answer :- 

12. A relay module for Raspberry Pi has how many terminals?

a. 3
b. 2
c. 4
d. 5|

Answer :- 

13. State whether the following statement is true or false.
Statement: Adafruit provides a library to work with the DHT22 sensor.

a. True
b. False

Answer :- For Answer Click Here 

14. What is the function of the close function in python programming while handling files.

a. This function does not exist in python
b. It closes the current connection to the file and ensures that the file is free to use for other resources
c. None of these
d. Both (a) and (b)

Answer :- For Answer Click Here 

15. Where is the Raspbian image found?

a. It is not available on the Internet
b. It is available as image file from the Raspberry Pi official website
c. It can only be purchased from offline vendor
d. None of these

Answer :- For Answer Click Here