WEEK 6 2024 Flashcards
(T/F) Python is popular for embedded application development as it is a very lightweight programming language
True
(T/F) Python does not support strict rules for syntax
True
Software used to write codes, integrate several modules and libraries
IDE
(T/F) To indicate different blocks of code, Python follows rigid indentation
True
(O/P) print(“Hi, Welcome to python!”);
Hi, Welcome to python!
Mode to open a file in python
All of these
(Read mode, Write Mode, Append Mode)
(Correct/ Incorrect)
sudo pip get pillow [ Command to install PIP Library ]
Incorrect
Number of data types in
Python
5
(Valid/Invalid)
if(condition):
statement 1
statement 2
elif(condition)
statement 1
statement 2
else
statement 1
statement 2
Invalid
Can we configure Raspberry Pi as a Web Server?
Yes
Frequency of Raspberry Pi Zero CPU
None of these
(O/P)
sudo apt-get install python-rpi.gpio
It installs the Raspberry Pi GPIO library
Command that exits the nano editor
Ctrl+X
(O/P) GPIO.output(11,True)
Turns on GPIO pin 11
(O/P) raspistill -o image.jpg
Captures still image