Bird
0
0

You want to create a time-lapse that takes a photo every 10 seconds for 1 hour using Raspberry Pi. Which approach correctly calculates the number of photos and implements the loop?

hard🚀 Application Q8 of 15
Raspberry Pi - Camera Module
You want to create a time-lapse that takes a photo every 10 seconds for 1 hour using Raspberry Pi. Which approach correctly calculates the number of photos and implements the loop?
AUse 60 photos and loop with range(60), sleeping 1 second each iteration
BUse 100 photos and loop with range(100), sleeping 36 seconds each iteration
CUse 600 photos and loop with range(600), sleeping 6 seconds each iteration
DUse 360 photos (3600 seconds / 10) and loop with range(360), sleeping 10 seconds each iteration
Step-by-Step Solution
Solution:
  1. Step 1: Calculate total photos

    1 hour = 3600 seconds; taking photo every 10 seconds means 3600/10 = 360 photos.
  2. Step 2: Implement loop and sleep

    Loop range should be 360; sleep duration should be 10 seconds to space photos correctly.
  3. Final Answer:

    Use 360 photos (3600 seconds / 10) and loop with range(360), sleeping 10 seconds each iteration -> Option D
  4. Quick Check:

    Correct photo count and sleep = Use 360 photos (3600 seconds / 10) and loop with range(360), sleeping 10 seconds each iteration [OK]
Quick Trick: Divide total seconds by interval for photo count [OK]
Common Mistakes:
MISTAKES
  • Mixing up total photos and sleep duration
  • Using wrong loop range
  • Incorrect sleep time causing wrong intervals

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Raspberry Pi Quizzes