Q11

Week 11 Quiz

Arduino Libraries and Advanced Programming

Student Information

Question 1: Multiple Choice (2 points)

What is the purpose of the #include directive in Arduino programming?

Question 2: Multiple Choice (2 points)

Which library is commonly used for controlling servo motors in Arduino?

Question 3: Short Answer (3 points)

Write Arduino code to include the Servo library and control a servo motor connected to pin 9 to move to 90 degrees:

Question 4: Multiple Choice (2 points)

What function is used to create a delay that doesn't block other code execution?

Question 5: True/False (1 point)

Arrays in Arduino can store multiple values of the same data type.

← Back to Lesson Semester Overview Next Lesson →