Bird
0
0

Which of the following Python code snippets correctly sets a 5-second delay between photos in a Raspberry Pi time-lapse script?

easy📝 Syntax Q12 of 15
Raspberry Pi - Camera Module
Which of the following Python code snippets correctly sets a 5-second delay between photos in a Raspberry Pi time-lapse script?
Asleep.time(5)
Btime.wait(5)
Cdelay(5)
Dtime.sleep(5)
Step-by-Step Solution
Solution:
  1. Step 1: Recall correct syntax for delay in Python

    The correct function to pause execution is time.sleep(seconds).
  2. Step 2: Check each option

    Only time.sleep(5) uses time.sleep(5), which is correct syntax for 5 seconds delay.
  3. Final Answer:

    time.sleep(5) -> Option D
  4. Quick Check:

    Delay = time.sleep(seconds) [OK]
Quick Trick: Use time.sleep() to pause, not time.wait() or delay() [OK]
Common Mistakes:
MISTAKES
  • Using time.wait() which does not exist
  • Swapping module and function names
  • Using undefined delay() function

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Raspberry Pi Quizzes