0% found this document useful (0 votes)
96 views

Assignment W6

This document contains 15 multiple choice or short answer questions from an NPTEL online certification course on Introduction to Internet of Things from the Indian Institute of Technology Kharagpur. The questions cover topics like Python programming basics, file handling in Python, image processing, networking models, Raspberry Pi configuration, GPIO, actuators, relays, and sensors. The questions are followed by the correct answers and brief explanations for each answer referring to specific lecture times from the course videos.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
96 views

Assignment W6

This document contains 15 multiple choice or short answer questions from an NPTEL online certification course on Introduction to Internet of Things from the Indian Institute of Technology Kharagpur. The questions cover topics like Python programming basics, file handling in Python, image processing, networking models, Raspberry Pi configuration, GPIO, actuators, relays, and sensors. The questions are followed by the correct answers and brief explanations for each answer referring to specific lecture times from the course videos.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

NPTEL Online Certification Courses

Indian Institute of Technology Kharagpur

Introduction to
Internet of Things
Assignment-Week 6
TYPE OF QUESTION:MCQ/MSQ
Number ofquestions:15 Total marks: 15 X 1= 15

QUESTION 1:

Python doesn’t support strict rules for syntax and static variable declaration like C
a. True
b. False

Correct Answer: a. True


Detailed Solution: As per Python program. (Please refer to lecture INTRODUCTION TO
PYTHON PROGRAMMING- I @ 4:23)

QUESTION 2:

Fill in the blanks. __________ is a data-type in Python.

a. List
b. Tuple
c. Dictionary
d. All of these

Correct Answer: d. All of these


Detailed Solution: As per Python program. (Please refer to lecture INTRODUCTION TO
PYTHON PROGRAMMING- I @ 15:18)
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur

QUESTION 3:

Fill in the blanks. __________are the variables declared inside a function.


a. Immediate variables
b. Global variables
c. Local variables

d. None of these

Correct Answer: c. Local variables

Detailed Solution: As per Python program (Please refer to lecture INTRODUCTION TO


PYTHON PROGRAMMING- I @ 25:41).

QUESTION 4:

What does the open() function return for file operations?


a. File mode
b. File object
c. File name
d. None of these

Correct Answer: b. File object


Detailed Solution: As per the basics of Python programming. (Please refer to lecture
INTRODUCTION TO PYTHON PROGRAMMING- II @ 3:00)

QUESTION 5:

Python does not follow rigid indentation.

a. True
b. False

Correct Answer: b. False


Detailed Solution: As per the basics of Python programming. (Please refer to lecture
INTRODUCTION TO PYTHON PROGRAMMING- I @ 8:18)
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur

QUESTION 6:

Which of the following is used to display an image in Python?

a. image.show()
b. image.open()
c. image.name()
d. image.mode()
Correct Answer: a. image.show()
Detailed Solution: As per the basics of Python programming. (Please refer to lecture
INTRODUCTION TO PYTHON PROGRAMMING- II @ 18.26 )

QUESTION 7:

Which of the following models does python follow for networking.

a. Client-server
b. P2P
c. All of these
d. None of these
Correct Answer: a. Client-server
Detailed Solution: In python programming, python provides network services for client-server
models. (Please refer to lecture INTRODUCTION TO PYTHON PROGRAMMING- II @
23:29 )

QUESTION 8:

In python, ”with” ensures the file is closed after the operation is completed, but not when an
exception occurs.

a. True
b. False

Correct Answer: b. False


Detailed Solution: As per the basics of Python programming (Please refer to lecture
INTRODUCTION TO PYTHON PROGRAMMING- II @4:58).
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur

QUESTION 9:

In Raspberry Pi, GPIO acts only as a digital output.

a. True
b. False

Correct Answer: b. False


Detailed Solution: Raspberry Pi GPIO acts as both digital output and digital input. (Please refer to
lecture 28@10:14).

QUESTION 10:

Which of the following exits the nano editor in the terminal?


a. Ctrl+O
b. Ctrl+X
c. Ctrl+A
d. None of these
Correct Answer: b. Ctrl+X
Detailed Solution: Ctrl+X exists the editor.
See lecture 29 @ 10:25

QUESTION 11:

Does Raspberry Pi provide configuration options for cameras ?


a. Yes
b. No
Correct Answer: a. Yes

Detailed Solution: Raspberry Camera can be configured using raspi-config. See lecture 29
@ 19:04
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur

QUESTION 12:

Does python provide a module for pi-camera ?


a. Yes
b. No
Correct Answer: a. Yes

Detailed Solution: Raspberry Camera can be configured using the Python camera module
python-picamera. See lecture 29 @ 19:59.

QUESTION 13:

Which of the following converts energy to motion?

a. Actuator
b. Raspberry Pi
c. All of these
d. None of these

Correct Answer: a. Actuator


Detailed Solution: Actuator converts energy to motion.
See lecture 30 @ 03:37

QUESTION 14:

Which of the following is a property of a Relay.

a. Mechanical switch
b. Electrochemical switch
c. None of these
d. All of these

Correct Answer: d. All of these


Detailed Solution: Relay is a mechanical/electrochemical switch . (Please refer to lecture
30@ 6:20)

QUESTION 15:
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur

QUESTION 15:

Sensors can be neither analog nor digital.

a. True
b. False

Correct Answer: b. False


Detailed Solution: Sensors can be analog or digital. (Please refer to lecture 30 @ 3:20)

************END***********

You might also like