The Raspberry Pi Platform and Python Programming for the Raspberry Pi Quiz Answers

All Weeks The Raspberry Pi Platform and Python Programming for the Raspberry Pi Quiz Answers

Week 01 Quiz Answers


Q1. Which component is not contained on the Raspberry Pi B+ board?

  • Analog-to-Digital converter

Q2. An ARM-based processor is

  • A processor which contains a core designed by ARM Ltd.

Q3. Which of the following is not a task of an operating system?

  • Improve performance by increasing clock frequency of the processor

Q4. Which feature of the Raspberry Pi tends to make it seem like it is not an IoT device?

  • It provides a graphic interface using a keyboard, monitor and mouse

Q5. Once the Raspberry Pi has been configured, what must be contained on the micro SD card?

  • The operating system

Q6. Which of the following is not an impact of overclocking?

  • Improved temperature profile

Q7. raspi-config can only be used during the initial setup.

  • False

Q8. The Raspberry Pi can be configured to boot directly to the desktop

  • True

Week 02 Quiz Answers


Q1. What does the ‘sudo’ command do?

  • Allows a command to execute with root permission

Q2. What command shows a list of running processes?

  • ps

Q3. What command prints out the contents of a directory?

  • ls

Q4. What command creates a new directory?

  • mkdir

Q5. What command should be used before powering off the machine?

  • shutdown

Q6. What is the username of the non-root account created when Raspian is installed?

  • pi

Q7. What command starts the graphic user interface from the shell after booting the Raspberry Pi?

  • startx

Q8. The Raspberry Pi comes with Linux pre-installed?

  • False

Week 03 Quiz Answers


Q1. 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?

  • m

Q2. 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?

  • True

Q3. 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?

  • ‘344’

Q4. Assume that we have typed the following in the Python shell:

x = [1, 2]

y = [3, 4]

x.append(y)

What will be printed on the screen as a result?

  • [1, 2, [3, 4]]

Q5. Assume that the following Python program is executed:

What will be printed on the screen as a result?

  • 2

Q6. Assume that the following Python program is executed:

What will be printed on the screen as a result?

  • [4, 5, 5, 6]

Q7. Correct indentation is essential for your Python program to work.

  • True

Q8. Raspberry Pi can execute Python 3 code, but not Python 2.

  • False

Week 04 Quiz Answers


Q1. How many GPIO pins does the Raspberry Pi B+ have?

  • 40

Q2. How many GPIO pins are dedicated to the SPI protocol?

  • 5

Q3. What voltage level is associated with HIGH on the GPIO of the Raspberry Pi?

  • 3.3

Q4. What function determines the numbering of the pins used?

  • GPIO.setmode()

Q5. What function determines whether a pin will be used as an input or an output?

  • GPIO.setup()

Q6. What function is used to set a pin to a value?

  • GPIO.output()

Q7. What function is used to read a digital value on a pin?

  • GPIO.input()

Q8. What function is used to read an analog value on a pin?

  • None of the above

Next Quiz Answers >>

Interfacing with the Arduino

<< Previous Quiz Answers

The Arduino Platform and C Programming

All Quiz Answers of An Introduction to Programming the Internet of Things (IoT) Specialization Course

Course 1: Introduction to the Internet of Things and Embedded Systems

Course 2: The Arduino Platform and C Programming

Course 3: Interfacing with the Arduino

Course 4: The Raspberry Pi Platform and Python Programming for the Raspberry Pi

Course 5: Interfacing with the Raspberry Pi

Team Networking Funda
Team Networking Funda

We are Team Networking Funda, a group of passionate authors and networking enthusiasts committed to sharing our expertise and experiences in networking and team building. With backgrounds in Data Science, Information Technology, Health, and Business Marketing, we bring diverse perspectives and insights to help you navigate the challenges and opportunities of professional networking and teamwork.

Leave a Reply

Your email address will not be published. Required fields are marked *