गुरुर्ब्रह्मा गुरुर्विष्णु गुरुर्देवो महेश्वरा गुरुर्साक्षात परब्रह्म तस्मै श्री गुरवे नमः !
Course Material: Click Here for Week-6
Session: JULY-DEC 2023
Course Link: Click Here
Q1. Python doesn’t support strict rules for syntax and static variable declaration like C
a. True
b. False
Answer: a. True
Q2. Fill in the blanks. __ is a data-type in Python.
a. List
b. Tuple
c. Dictionary
d. All of these
Answer: d. All of these
Q3. Fill in the blanks. __________are the variables declared inside a function.
a. Immediate variables
b. Global variables
c. Local variables
d. None of these
Answer: c. Local variables
Q4. What does the open() function return for file operations?
a. File mode
b. File object
c. File name
d. None of these
Answer: b. File object
Q5. Python does not follow rigid indentation.
a. True
b. False
Answer: b. False
Q6. Which of the following is used to display an image in Python?
a. image.show()
b. image.open()
c. image.name()
d. image.mode()
Answer: a. image.show()
Q7. Which of the following models does python follow for networking.
a. Client-server
b. P2P
c. All of these
d. None of these
Answer: a. Client - Server
Q8. In python, ”with” ensures the file is closed after the operation is completed, but not when an exception occurs.
a. True
b. False
Answer: b. False
Q9. In Raspberry Pi, GPIO acts only as a digital output.
a. True
b. False
Answer: b. False
Q10. Which of the following exits the nano editor in the terminal?
a. Ctrl+O
b. Ctrl+X
c. Ctrl+A
d. None of these
Answer: b. Ctrl+X
Q11. Does Raspberry Pi provide configuration options for cameras ?
a. Yes
b. No
Answer: a. Yes
Q12. Does python provide a module for pi-camera ?
a. Yes
b. No
Answer: a. Yes
Q13. Which of the following converts energy to motion?
a. Actuator
b. Raspberry Pi
c. All of these
d. None of these
Answer: a. Actuator
Q14. Which of the following is a property of a Relay.
a. Mechanical switch
b. Electrochemical switch
c. None of these
d. All of these
Answer: a. Mechanical switch
Q15. Sensors can be neither analog nor digital.
a. True
b. False
Answer: b. False
ASSIGNMENT-6 DETAILED SOLUTIONS