Assignment W5
Assignment W5
Introduction to
Internet of Things
Assignment-Week 5
QUESTION 1:
b. Global heterogeneity
Detailed Solution: Large scale of co-operation and Global heterogeneity are current challenges in
IoT.
QUESTION 2:
a. True
b. False
Correct Answer: b. False
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur
QUESTION 3:
QUESTION 4:
Statement: “Use of different programming languages such as JavaScript, Python, JAVA, and others is an
example of heterogeneity in IoT. This brings in the need for interoperability.”
a. False
b. True
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur
Detailed Solution: Use of different programming languages such as JavaScript, Python, JAVA, and others
is an example of heterogeneity in IoT. This brings in the need for interoperability
QUESTION 5:
Statement: “The interoperability between devices and device users in terms of message
formats is called Systematic Interoperability.”
a. True
b. False
Detailed Solution: The interoperability between devices and device users in terms of
message formats is called Syntactic Interoperability.
QUESTION 6:
QUESTION 7:
a. True
b. False
QUESTION 8:
Additional electronic circuits are essential to load a program into the Arduino controller board.
a. True
b. False
Detailed Solution: No additional electronic circuits are essential to load a program into the Arduino
controller board.
QUESTION 9:
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur
a. 8
b. 13
c. 14
d. None of these
Correct Answer: c. 14
QUESTION 10:
void setup() {
pinMode(ledPin, OUTPUT);
digitalWrite(ledPin, HIGH);
delay(1000);
digitalWrite(ledPin, LOW);
delay(500);
}
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur
void loop() {
// Do nothing
d) Stay ON continuously
Detailed Solution:
Thus, the LED blinks 3 times with 1000ms ON and 500ms OFF.
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur
QUESTION 11:
a. 1
b. 2
c. 3
d. 4
Correct Answer: c. 3
Detailed Solution: Like C programming Arduino sketches also have 3 types of loops,
for, while and do-while loops.
QUESTION 12:
QUESTION 13:
QUESTION 14:
What function is used to read the humidity value from the DHT sensor?
A) dht.getHumidity();
B) dht.readTemp();
C) dht.readHumidity();
D) dht.getTemperature();
Correct Answer: c. dht.readHumidity();
Detailed Solution: dht.readHumidity(); function is used to read the humidity value from the DHT sensor
Lecture 24@17:25.
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur
QUESTION 15:
A) ServoDemo.move()
B) ServoDemo.rotate()
C) ServoDemo.write()
D) ServoDemo.setAngle()
Detailed Solution: ServoDemo.write() function is used to set the servo motor to a specific angle.
************END***********