Introduction To Internet Of Things | Week 6

Introduction To Internet Of Things Week 6

Course Link:

Q1. Python’s installation comes with an integrated development environment for programming.
a. True
b. False

Q2. Fill in the blanks. Python IDE is available for installation into PC with ________.
a. Windows
b. Linux
c. Mac
d. All of these

Q3. How many data type/s are available in Python?
a. 1
b. 2
c. 5
d. None of these

Q4. What is the output of the following piece of Python code?
Is= {1: “abc”, “key”: “2”, “year”: 2023}

a. abc
b. 2
c. 2023
d. “abe”

Q5. The variable that is declared inside the function in Python is called a Global variable.
a. True
b. False

Q6. Which of the following is used to read a text file in Python?
a. file = open(‘data.txt’,’r”)
b. file =open_text(‘data.txt’,’r”)
c. file=read text(‘data.txt’,’r”)
d. file =read(‘data.txt’,’r”)

Q7. Which of the following libraries in Python is used for processing images.
a. Pillow
b. Numpy
c. Panda
d. None of these

Q8. In python, images cannot be converted to greyscale.
a. True
b. False

Q9. Which of the following shortcut exits the nano editor?
a. Ctrl+E
b. Ctrl+O
c. Ctrl+V
d. None of these

Q10. Which of the following is an unordered data type in Python?
a. List
b. Dictionary
c. Both List and Dictionary
d. Tuple

Q11. Sensors can be analog or digital. Is the statement true?
a. Yes
b. No

Q12. Is relay a type of mechanical switch?
a. No
b. Yes

Q13. Which of the following converts energy to motion?
a. Actuator
b. Raspberry Pi
c. Sensor
d. None of these

Q14. Python does not follow strict indentation.
a. True
b. False

Q15. Functions cannot be reassigned to the variables in Python.
a. True
b. False

* The material and content uploaded on this website are for general information and reference purposes only and don’t copy the answers of this website to any other domain without any permission or else copyright abuse will be in action.

Please do it by your own first! Protection Status

0 0 votes
Article Rating
Notify of

Inline Feedbacks
View all comments
close button
Would love your thoughts, please comment.x