0% found this document useful (0 votes)
1 views2 pages

Week5 Assignment Answer

This document is an assignment related to the Internet of Things, focusing on Arduino programming and device interoperability. It includes multiple-choice questions covering topics such as device classification, user interoperability problems, Arduino functions, and sensor integration. The assignment tests knowledge on specific coding practices and hardware components associated with Arduino projects.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views2 pages

Week5 Assignment Answer

This document is an assignment related to the Internet of Things, focusing on Arduino programming and device interoperability. It includes multiple-choice questions covering topics such as device classification, user interoperability problems, Arduino functions, and sensor integration. The assignment tests knowledge on specific coding practices and hardware components associated with Arduino projects.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Introduction to Internet of Things

Assignment 5

1. Which is the device classification solution


a. Uniform Resource Identifier
b. UNSPSC
c. All of these
d. None of these

2. What kind of problems are to be solved for user interoperability?


a. Device identification and categorization for discovery
b. Syntactic interoperability for device interaction
c. Semantic interoperability for device interaction
d. All of the above

3. Before uploading the code to the Arduino board, it needs to be:


a. Verified
b. Compiled
c. Compiled and verified
d. Verified and compiled

4. The function pinmode() in Arduino programming is used to:


a. Change the read/write mode of a pin
b. Change the input/output mode of a pin
c. Change digital/analog mode of a pin
d. None of these

5. Nested loop in Arduino is:


a. Loops in the same function
b. Loop inside a Loop
c. Infinte loop
d. Not supported

Consider pin 11 is connected to an LED and pin A0 to LDR sensor, predict the output for
the given code snippets in question 3 to 5.

6. void Loop(){
Value = analogRead(LDR);
[Link](Value);
delay(100);
}
a. Prints the value from the sensor to console only once
b. Prints the value from the sensor to console for 100 seconds
c. Prints the value from the sensor to console every 100 seconds
d. None of these

7. What amount of power supply is need for integration of DHT sensor with Arduino?
a. 5V
b. 3.3V
c. 12V
d. Either option 1 or option 2

8. What is the function for reading humidity from DHT sensor from Arduino?
a. [Link]()
b. [Link]()
c. [Link]()
d. dht(pin,DHT22)

9. Which is the following is not an Actuator?


a. Servo motor
b. Stepper motor
c. DHT
d. Relay

10. What is the Arduino Servo library command to move the shaft of Servo motor back and forth
across 180 degree?
a. Knob()
b. Sweep()
c. write()
d. detach()

You might also like