WEEK 6 2024 Flashcards

1
Q

(T/F) Python is popular for embedded application development as it is a very lightweight programming language

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

(T/F) Python does not support strict rules for syntax

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Software used to write codes, integrate several modules and libraries

A

IDE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

(T/F) To indicate different blocks of code, Python follows rigid indentation

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

(O/P) print(“Hi, Welcome to python!”);

A

Hi, Welcome to python!

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Mode to open a file in python

A

All of these
(Read mode, Write Mode, Append Mode)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

(Correct/ Incorrect)
sudo pip get pillow [ Command to install PIP Library ]

A

Incorrect

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Number of data types in
Python

A

5

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

(Valid/Invalid)
if(condition):
statement 1
statement 2
elif(condition)
statement 1
statement 2
else
statement 1
statement 2

A

Invalid

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Can we configure Raspberry Pi as a Web Server?

A

Yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Frequency of Raspberry Pi Zero CPU

A

None of these

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

(O/P)
sudo apt-get install python-rpi.gpio

A

It installs the Raspberry Pi GPIO library

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Command that exits the nano editor

A

Ctrl+X

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

(O/P) GPIO.output(11,True)

A

Turns on GPIO pin 11

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

(O/P) raspistill -o image.jpg

A

Captures still image

How well did you know this?
1
Not at all
2
3
4
5
Perfectly