All Weeks Interfacing with the Raspberry Pi Coursera Quiz Answers
Interfacing with the Raspberry Pi Week 01 Quiz Answers
Q1. What is DHCP used for?
- It is a network protocol used to assign IP addresses.
Q2. What is an SSH server?
- A program which responds to incoming ssh requests
Q3. When an ssh client is invoked at the command line with the “ssh” command, what other argument must be provided on the command line?
- A domain name or IP address to connect to
Q4. What command will reveal the IP address of your Raspberry Pi?
Q5. What is a fair definition of the term “protocol”?
- A set of rules for communication
Q6. What does an IP address uniquely identify?
- A host communicating on the Internet
Q7. How big is a port TCP/UDP number?
Q8. The nslookup command will show the IP address corresponding to a given domain name.¶
Interfacing with the Raspberry Pi Week 02 Quiz Answers
Q1. What is the difference between clients and servers on the Internet?
- Clients initiate requests for service
Q2. What Python function is used to perform a DNS lookup?
Q3. What Python function is used by the client to establish a connection between sockets?
Q4. The recv() function performs a non-blocking wait, by default.
Q5. When is the code inside an except clause executed?
- When code inside the associated try clause causes an appropriate exception
Q6. Binding a socket on the server-side requires what information?
- The port number for communication
Q7. What is a “live” server?
- A server that serves many requests over a long time
Q8. Sockets can be used to communicate between two Raspberry Pis.
Interfacing with the Raspberry Pi Week 03 Quiz Answers
Q1. What is a fair definition of an API?
- A protocol for communicating between programs
Q2. What is a good reason to use an SDK rather than directly using an API?
- An SDK is usually easier to use than an API
Q3. What is Pip?
- A tool to install Python packages
Q4. In the Twython library, what function sends a tweet?
Q5. In the Twython library, what function is used to detect tweets in a stream that contain a given string?
Q6. What is the name of the callback function that is invoked when a tweet that contains a selected string is found in a stream?
Q7. The TwythonStreamer class defines the callback function which is invoked when a tweet containing a given string is found in a stream.
Q8. An SDK is never absolutely necessary because the Socket library can always be used to perform network communication.¶
Interfacing with the Raspberry Pi Week 04 Quiz Answers
Q1. What is the name of the Python package used to control the Raspberry Pi camera module?
Q2. What function in the camera library is used to take a picture?
Q3. What is a “duty cycle”?
- The fraction of time a square wave is high
Q4. Why is pulse width modulation useful?
- It can be used to mimic an analog signal
Q5. How many input wires does a servo have?
Q6. Why is it common to use an external power supply to drive a servo?
- A servo needs more current than a microcontroller can provide
Q7. The CSI camera interface of the Raspberry Pi needs to be activated before using the camera module.
Q8. The speed of a servo motor is easily controlled.
<< Previous Quiz Answers
The Raspberry Pi Platform and Python Programming for the Raspberry Pi
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