Robots are coming! Build IoT apps with Watson, Swift, and Node-RED Quiz Answers

Get Robots are coming! Build IoT apps with Watson, Swift, and Node-RED Quiz Answers

Learn how to program a simple robot (TJBot) to move its arm, recognize objects, flash a light, speak, and more. You can build simple apps to control TJBot by using Node.js or even Node-RED. If you don’t want to purchase the TJBot, you use a simulator instead.

In this hands-on Internet of Things (IoT) course, you’ll build Node-RED flows (applications) running on the cloud and connect them to more flows and Swift applications. You’ll use those applications to track the temperature of a Raspberry Pi CPU, store that data in a Cloudant NoSQL database, take pictures with the RaspCam, use AI to recognize objects in the pictures, send Twitter notifications, and send simple commands from your smartphone to a robot called iRobot Create 2. You don’t need to purchase the iRobot to be successful in this course. But playing with a programmable robot can be a lot more fun!

Enroll on Cognitive Class

Lab 1: Read temperature data from an IoT sensor

Question: In Lab 1, what is the main purpose of the Internet of Things Platform Starter?

  • To provide a boilerplate application in Node-RED
  • To facilitate communication between the Node-RED instance running on the Raspberry Pi and the instance running on IBM Cloud
  • To send data from an iOS device to Twitter
  • To create a Cloudant database

Question: In Lab 1, where exactly does the Swift UI get the temperature data from?

  • Directly from the temperature senson device
  • From a node in the Node-RED flow
  • From the Cloudant database
  • From the IoT QuickStart

Question: What imported library is required for you to do CRUD operations on the Cloudant database in IBM Cloud?

  • SwiftDBCloudant
  • CloudantSwift
  • SwiftyDB
  • SwiftCloudant

Question: In Lab 1, why did you need two Node-RED flows?

  • To get sensor data (flow 1) and then to send it to IBM Cloud (flow 2)
  • To set up a Cloudant database (flow 1) and then send it IBM Cloud (flow 2)
  • To get sensor data (flow 1) and then send it to the IoT Platform QuickStart (flow 2)
  • None of these

Question: In which Node-RED node do you initially enter a device ID? In this lab, the device ID is from the virtual temperature sensor.

  • IBM IoT App Out
  • msg.payload
  • IBM IoT App In
  • GetCPUtemp

Lab 2: Add a camera and analyze images

Question: How is Watson Visual Recognition used by the Raspberry Pi in an IoT environment?

  • Pictures taken by the Raspberry Pi camera are sent in bulk to the cloud and matched against existing pictures.
  • Pictures taken by the Raspberry Pi camera are matched against existing pictures on the Raspberry Pi. The result is communicated to the cloud.
  • Single pictures taken by the Raspberry Pi camera are sent to the cloud and processed by the deep learning network trained on existing pictures.
  • Pictures taken by the Raspberry Pi camera are minimized on the Raspberry Pi before being sent to the cloud for comparison with existing pictures.

Question: The Visual Recognition service uses machine learning to recognize and classify visual content.

  • True
  • False

Question: MQTT cannot be used to pass data through firewalls.

  • True
  • False

Question: What action does the following Swift code perform?

  DispatchQueue.main.asyncAfter(deadline: .now() + .seconds(10), execute: {
            // Put your code which should be executed with a delay here
            NSLog("Read doc: 10 sec")
            self.imageFromDb.image = self.fetchedImage as UIImage
        })
  • Updates the Cloudant database with a new picture
  • Shows a picture on a mobile device
  • Creates buttons in your mobile UI
  • Sends a picture to the Visual Recognition service

Question: In Node-RED, output nodes have the logo on the left side of the node.

  • True
  • False

Lab 3: Connect your app to an iRobot and smartphone

Question: Which one of the following SDKs helps to simplify how you use cognitive services with Swift applications?

  • Text-to-speech-swift
  • Watson-Developer-Cloud SDK for iOS
  • SwiftyJSON SDK
  • IBM Cloud Services SDK for iOS

Question: What’s the purpose of the WeatherData.swift file?

  • Adds the encoding for the network
  • Connects the Text to Speech service to the iRobot
  • Manages the connectivity to the Text to Speech service
  • Manages the connectivity to the Weather Company Data service

Question: The Watson IoT Platform starter automatically deploys and connects which of these services. Select all that apply.

  • Watson IoT Platform
  • Weather Company Data service
  • IBM SDK for Node.js for IBM Cloud
  • IBM Cloudant for IBM Cloud

Question: To manipulate JSON, you added which framework to the XCode project?

  • SpeechToTextV1.framework
  • RestKit.framework
  • SwiftyJSON.framework
  • BMSCore.framework

Question: What additional data can you find in the Weather Data JSON?

  • Conditions for playing golf
  • Conditions for skating
  • Conditions for hiking
  • Conditions for swimming
  • Conditions for running

Final Exam

Question: Which of the following data types can be be sent from an IoT sensor to the cloud for further processing? Select all that apply.

  • Temperature
  • Humidity
  • Air pressure
  • Seismometer data
  • Text

Question: What is the lightweight protocol that is used for communication between a Raspberry Pi device and a cloud application?

  • TCP/IP
  • HTTP
  • MQTT
  • MSP

Question: Which Watson services can you use to build a voice user interface to access IoT devices?

  • Speech to Text
  • Real-time Audio conversion
  • Text to Speech
  • Voice routing over the Internet

Question: You typically need to install a node package to get Cloudant database nodes in Node-RED.

  • True
  • False

Question: How does BM Watson Visual Recognition determine what’s in an image?

  • By analyzing the file names of images
  • By deciding what categories the image and the parts of an image fall into
  • By reading what users post on social media about an image
  • By querying the user who submitted the image

Question: In this course, how did you connect the Raspberry PI to the iRobot?

  • MQTT
  • The iRobot serial port
  • HTTP
  • ICMP

Question: IBM Cloudant is an example of which of the following service types? Select all that apply.

  • MBaaS
  • PaaS
  • SaaS
  • DBaaS

Question: What action does the following code perform?

iotfSession.send(BEEP_MSG.data(using: String.Encoding.utf8, allowLossyConversion: false),
         topic: CMD_TOPIC,
         qos: MQTTQosLevel.exactlyOnce,
         retain: false)
  • Sends a dock command to the iRobot
  • Specifies what encoding to use
  • Sends a command over an MQTT connection
  • Sends a command to a smartphone

Question: What method can you use to extend the functionality of Raspbian Jessie?

  • npm
  • Configure it with apt-get commands
  • Download nodes from the Node-RED community
  • CocoaPods

Question: You can store pictures from a camera or from the Internet by using a Cloudant database.

  • True
  • False

Conclusion:

We hope you know the correct answers to Robots are coming! Build IoT apps with Watson, Swift, and Node-RED If Queslers helped you to find out the correct answers then make sure to bookmark our site for more Course Quiz Answers.

If the options are not the same then make sure to let us know by leaving it in the comments below.

Course Review:

In our experience, we suggest you enroll in this and gain some new skills from Professionals completely free and we assure you will be worth it.

This course is available on Cognitive Class for free, if you are stuck anywhere between quiz or graded assessment quiz, just visit Queslers to get all Quiz Answers and Coding Solutions.

More Courses Quiz Answers >>

Building Cloud Native and Multicloud Applications Quiz Answers

Accelerating Deep Learning with GPUs Quiz Answers

Blockchain Essentials Cognitive Class Quiz Answers

Deep Learning Fundamentals Cognitive Class Quiz Answers

Hadoop 101 Cognitive Class Answers

Machine Learning With R Cognitive Class Answers

Machine Learning with Python Cognitive Class Answers

Leave a Reply

Your email address will not be published.