Bird
0
0

Which of the following is the correct syntax to start the camera preview using PiCamera in Python?

easy📝 Syntax Q12 of 15
Raspberry Pi - Camera Module
Which of the following is the correct syntax to start the camera preview using PiCamera in Python?
Acamera.startPreview()
Bcamera.preview.start()
Cstart.camera_preview()
Dcamera.start_preview()
Step-by-Step Solution
Solution:
  1. Step 1: Recall the PiCamera method to start preview

    The correct method to start the camera preview is start_preview() called on the camera object.
  2. Step 2: Check method name and syntax

    The method is lowercase with underscore: camera.start_preview(). Other options have wrong casing or order.
  3. Final Answer:

    camera.start_preview() -> Option D
  4. Quick Check:

    Correct method name = A [OK]
Quick Trick: Use underscores and lowercase for PiCamera methods [OK]
Common Mistakes:
MISTAKES
  • Using camelCase instead of snake_case
  • Reversing method and object order
  • Adding extra dots or missing underscores

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Raspberry Pi Quizzes