← Home
MECHANICAL ENGINEERING MCQ

Fundamentals of IoT and Sensors

Programming Fundamentals

Q1. In Arduino-style ESP32 code, setup() runs
Correct Answer: D   |   Marks: 1
Q2. The loop() function executes
Correct Answer: D   |   Marks: 1
Q3. Serial.begin() is used to
Correct Answer: D   |   Marks: 1
Q4. Serial.println() prints data
Correct Answer: A   |   Marks: 1
Q5. pinMode(pin, OUTPUT) configures a pin as
Correct Answer: A   |   Marks: 1
Q6. digitalRead() returns
Correct Answer: B   |   Marks: 1
Q7. A variable is used to
Correct Answer: C   |   Marks: 1
Q8. The bool data type stores
Correct Answer: C   |   Marks: 1
Q9. An if statement provides
Correct Answer: C   |   Marks: 1
Q10. A for loop is useful for
Correct Answer: C   |   Marks: 1
Q11. A function helps to
Correct Answer: C   |   Marks: 1
Q12. Compilation translates/checks
Correct Answer: A   |   Marks: 1
Q13. A syntax error is caused by
Correct Answer: D   |   Marks: 1
Q14. The Serial Monitor baud rate should
Correct Answer: B   |   Marks: 1
Q15. Wokwi is primarily used for
Correct Answer: C   |   Marks: 1
Q16. In a laboratory implementation, which action is appropriate regarding in arduino-style esp32 code, setup() runs?
Correct Answer: D   |   Marks: 1
Q17. When diagnosing a fault related to the loop() function executes?
Correct Answer: A   |   Marks: 1
Q18. Which design consideration is most important for serial.begin() is used to?
Correct Answer: C   |   Marks: 1
Q19. A student is validating a prototype involving serial.println() prints data?
Correct Answer: D   |   Marks: 1
Q20. Which evidence best confirms correct operation of pinmode(pin, output) configures a pin as?
Correct Answer: D   |   Marks: 1
Q21. Before integrating a component for digitalread() returns?
Correct Answer: A   |   Marks: 1
Q22. For reliable operation of a variable is used to?
Correct Answer: B   |   Marks: 1
Q23. In a laboratory implementation, which action is appropriate regarding the bool data type stores?
Correct Answer: A   |   Marks: 1
Q24. When diagnosing a fault related to an if statement provides?
Correct Answer: D   |   Marks: 1
Q25. Which design consideration is most important for a for loop is useful for?
Correct Answer: A   |   Marks: 1
Q26. A student is validating a prototype involving a function helps to?
Correct Answer: B   |   Marks: 1
Q27. Which evidence best confirms correct operation of compilation translates/checks?
Correct Answer: B   |   Marks: 1
Q28. Before integrating a component for a syntax error is caused by?
Correct Answer: D   |   Marks: 1
Q29. For reliable operation of the serial monitor baud rate should?
Correct Answer: A   |   Marks: 1
Q30. In a laboratory implementation, which action is appropriate regarding wokwi is primarily used for?
Correct Answer: B   |   Marks: 1
Q31. When diagnosing a fault related to in arduino-style esp32 code, setup() runs?
Correct Answer: C   |   Marks: 1
Q32. Which design consideration is most important for the loop() function executes?
Correct Answer: B   |   Marks: 1
Q33. A student is validating a prototype involving serial.begin() is used to?
Correct Answer: C   |   Marks: 1
Q34. Which evidence best confirms correct operation of serial.println() prints data?
Correct Answer: D   |   Marks: 1
Q35. Before integrating a component for pinmode(pin, output) configures a pin as?
Correct Answer: A   |   Marks: 1
Q36. For reliable operation of digitalread() returns?
Correct Answer: B   |   Marks: 1
Q37. In a laboratory implementation, which action is appropriate regarding a variable is used to?
Correct Answer: B   |   Marks: 1
Q38. When diagnosing a fault related to the bool data type stores?
Correct Answer: B   |   Marks: 1
Q39. Which design consideration is most important for an if statement provides?
Correct Answer: B   |   Marks: 1
Q40. A student is validating a prototype involving a for loop is useful for?
Correct Answer: B   |   Marks: 1
Q41. Which evidence best confirms correct operation of a function helps to?
Correct Answer: C   |   Marks: 1
Q42. Before integrating a component for compilation translates/checks?
Correct Answer: B   |   Marks: 1
Q43. For reliable operation of a syntax error is caused by?
Correct Answer: B   |   Marks: 1
Q44. In a laboratory implementation, which action is appropriate regarding the serial monitor baud rate should?
Correct Answer: C   |   Marks: 1
Q45. When diagnosing a fault related to wokwi is primarily used for?
Correct Answer: A   |   Marks: 1
Q46. Which design consideration is most important for in arduino-style esp32 code, setup() runs?
Correct Answer: D   |   Marks: 1
Q47. A student is validating a prototype involving the loop() function executes?
Correct Answer: D   |   Marks: 1
Q48. Which evidence best confirms correct operation of serial.begin() is used to?
Correct Answer: C   |   Marks: 1
Q49. Before integrating a component for serial.println() prints data?
Correct Answer: D   |   Marks: 1
Q50. For reliable operation of pinmode(pin, output) configures a pin as?
Correct Answer: A   |   Marks: 1