Q. In an IoT system that monitors temperature, which Python statement would be most appropriate for triggering an alert when the temperature exceeds a threshold?

एक IoT प्रणाली में जो तापमान की निगरानी करती है, तापमान एक सीमा से अधिक होने पर अलर्ट ट्रिगर करने के लिए कौन सा पायथन कथन सबसे उपयुक्त होगा?

A
if temperature > threshold: send_alert()
B
temperature > threshold and send_alert()
C
while temperature > threshold: send_alert()
D
for reading in temperature: if reading > threshold: send_alert()

Explanation

Explanation will be available soon. Please stay tuned.

व्याख्या जल्द ही उपलब्ध होगी। कृपया बने रहें।

Invest in Future Achievers

Your support helps keep Exam Achiever 100% free for students preparing for exams.

Thanks for your support!

Comments

Leave a Comment