The Raspberry Pi Platform and Python Programming for the Raspberry Pi Quiz Answer. In this post you will get Quiz & Assignment Answer Of The Raspberry Pi Platform and Python Programming for the Raspberry Pi
The Raspberry Pi Platform and Python Programming
Offered By ”University of California, Irvine”
Week- 1
Module 1 Quiz
1.
Question 1
Which component is not contained on the Raspberry Pi B+ board?
1 point
- USB ports
- Analog-to-Digital converter
- Ethernet port
- micro SD slot
=================================================
2.
Question 2
An ARM-based processor is
1 point
- A processor manufactured in its entirety by ARM Ltd.
- A processor manufactured in part by ARM Ltd.
- A processor whose design is similar to that of an ARM processor
- A processor which contains a core designed by ARM Ltd.
=================================================
3.
Question 3
Which of the following is not a task of an operating system?
1 point
- Improve performance by increasing clock frequency of the processor
- Support the execution of multiple processes
- Enable access to a filesystem
- Hide hardware details from the user
=================================================
4.
Question 4
Which feature of the Raspberry Pi tends to make it seem like it is not an IoT device?
1 point
- It can directly interact with sensors and actuators
- It is small and cheap
- It provides a graphic interface using a keyboard, monitor and mouse
- D. It provides network connectivity and computational intelligence
=================================================
5.
Question 5
Once the Raspberry Pi has been configured, what must be contained on the micro SD card?
1 point
- The operating system
- The firmware
- The web browser
- The MAC address
=================================================
6.
Question 6
Which of the following is not an impact of overclocking?
1 point
- More instructions executed per unit time
- Increased power consumption
- Improved temperature profile
- Reduced reliability
=================================================
7.
Question 7
raspi-config can only be used during the initial setup.
1 point
- True
- False
=================================================
8.
Question 8
The Raspberry Pi can be configured to boot directly to the desktop
1 point
- True
- False
Peer-graded Assignment: Module 1 Peer Assignment:
Week- 2
Module 2 Quiz
1.
Question 1
What does the ‘sudo’ command do?
1 point
Allows a command to execute with root permission
Compiles a program
Configures the operating system
Executes a program at a later date
=================================================
2.
Question 2
What command shows a list of running processes?
1 point
ls
mk
ps
cd
=================================================
3.
Question 3
What command prints out the contents of a directory?
1 point
mkdir
rm
ls
more
=================================================
4.
Question 4
What command creates a new directory?
1 point
mkdir
pwd
type
rm
=================================================
5.
Question 5
What command should be used before powering off the machine?
1 point
turnoff
reboot
rm
shutdown
=================================================
6.
Question 6
What is the username of the non-root account created when Raspian is installed?
1 point
default
pi
raspberry
rpi
=================================================
7.
Question 7
What command starts the graphic user interface from the shell after booting the Raspberry Pi?
1 point
windows
gui
startx
shell
=================================================
8.
Question 8
The Raspberry Pi comes with Linux pre-installed?
1 point
True
False
Peer-graded Assignment: Module 2 Peer Assignment
Week- 3
Module 3 Quiz
1.
Question 1
Assume that we have typed the following in the Python shell:
>>> x = ‘chemistry’
>>> x[3]
What will be printed on the screen as a result?
1 point
h
e
m
i
=================================================
2.
Question 2
Assume that we have typed the following in the Python shell:
>>> x = ‘chemistry’
>>> ‘i’ in x
What will be printed on the screen as a result?
1 point
4
5
True
=================================================
6
3.
Question 3
Assume that we have typed the following in the Python shell:
>>> x = ‘3’
>>> y = ‘4’
>>> x + y * 2
What will be printed on the screen as a result?
1 point
7
‘344’
11
‘3434’
=================================================
4.
Question 4
Assume that we have typed the following in the Python shell:
>>> x = [1, 2]
>>> y = [3, 4]
>>> x.append(y)
>>> x
What will be printed on the screen as a result?
1 point
[3, 4]
[1, 2]
[1, 2, 3, 4]
[1, 2, [3, 4]]
=================================================
5.
Question 5
Assume that the following Python program is executed:
What will be printed on the screen as a result?
1 point
0
2
3
4
=================================================
6.
Question 6
Assume that the following Python program is executed:
What will be printed on the screen as a result?
1 point
[4, 5, 5, 6]
[1, 2, 3, 4]
[13, 14, 23, 24]
[1, 2, 5, 6]
=================================================
7.
Question 7
Correct indentation is essential for your Python program to work.
1 point
True
False
=================================================
8.
Question 8
Raspberry Pi can execute Python 3 code, but not Python 2.
1 point
True
False
Peer-graded Assignment: Module 3 Peer Assignment
[Attention]: – To get any assignment File you must need to click here to subscribe to YouTube and after that fill up this google form]
Week- 4
Module 4 Quiz
1.
Question 1
How many pins does the Raspberry Pi B+ have?
1 point
16
26
36
40
=================================================
2.
Question 2
How many GPIO pins are dedicated to the SPI protocol?
1 point
3
4
5
6
=================================================
3.
Question 3
What voltage level is associated with HIGH on the GPIO of the Raspberry Pi?
1 point
2.5
3.3
3.5
5.0
=================================================
4.
Question 4
What function determines the numbering of the pins used?
1 point
GPIO.pinMode()
GPIO.setdir()
GPIO.output()
GPIO.setmode()
=================================================
5.
Question 5
What function determines whether a pin will be used as an input or an output?
1 point
GPIO.setup()
GPIO.setmode()
GPIO.setdir()
None of the above
=================================================
6.
Question 6
What function is used to set a pin to a value?
1 point
GPIO.output()
GPIO.set()
GPIO.drive()
GPIO.setval()
=================================================
7.
Question 7
What function is used to read a digital value on a pin?
1 point
GPIO.read()
GPIO.readval()
GPIO.input()
GPIO.digitalRead()
=================================================
8.
Question 8
What function is used to read an analog value on a pin?
1 point
GPIO.analogRead()
GPIO.input()
GPIO.analoginput()
None of the above
Peer-graded Assignment: Module 4 Peer Assignment