Chapter 6

  1. True/false? A servo may be used as an IoT device.

      A.    True

  1. True/false? Changing the minimum and maximum pulse width values on the Servo object modifies the range of the servo.
    A.    True
  2. Why do we add a delay before calling the close() method of the Servo object?

A.    To delay closing the servo so that it will not be closed prior to being set to its position.

  1. True/false? We do not need a getTemperature() method in our WeatherData class.

A.    True

  1. True/false? A flashing LED on our dashboard indicates a clear and cloudless day.

A.    False

  1. What do we use a pair of shorts on our dashboard to indicate?

A.    Summer weather

  1. Where would you use a regular expression in our code?

A.    In the getLEDValue method.

  1. Why do we import time in our code?

A.    To delay closing the connection to the servo

  1. True/false? An IoT enabled servo can only be used to indicate weather data.

A.    False

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset