FeedWatchdog is a function and must be called with parentheses.
Step 2: Analyze code snippet
FeedWatchdog; is missing parentheses, so it does not call the function.
Final Answer:
Missing parentheses in FeedWatchdog call -> Option A
Quick Check:
Function call needs () [OK]
Hint: Always use () to call functions [OK]
Common Mistakes:
Forgetting parentheses on function calls
Assuming delay is incorrect without context
Thinking timeout value causes error
5. You have a system with a watchdog timeout of 3 seconds. Your main loop takes 5 seconds to complete one iteration. How should you modify your code to prevent the watchdog from resetting the system?
hard
A. Remove the FeedWatchdog() calls entirely
B. Increase the watchdog timeout to 10 seconds
C. Call FeedWatchdog() multiple times inside the loop before 3 seconds pass
D. Call FeedWatchdog() only once after the loop finishes
Solution
Step 1: Understand watchdog timeout vs loop time
The loop takes longer than the watchdog timeout, so feeding once per loop is too late.
Step 2: Feeding watchdog multiple times inside loop
Calling FeedWatchdog() multiple times before 3 seconds resets timer and prevents reset.
Final Answer:
Call FeedWatchdog() multiple times inside the loop before 3 seconds pass -> Option C
Quick Check:
Feed watchdog before timeout expires [OK]
Hint: Feed watchdog often enough within timeout [OK]
Common Mistakes:
Assuming increasing timeout is always possible
Feeding watchdog only once after long loop
Removing feeding calls thinking it helps
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.