Bird
0
0

Which of the following is the correct syntax to scan I2C devices on bus 1 using i2cdetect?

easy📝 Syntax Q12 of 15
Raspberry Pi - I2C Communication
Which of the following is the correct syntax to scan I2C devices on bus 1 using i2cdetect?
Ai2cdetect --bus 1
Bi2cdetect -scan 1
Csudo i2cdetect -y 1
Dsudo i2cdetect 1 -y
Step-by-Step Solution
Solution:
  1. Step 1: Recall the correct command format

    The correct syntax is sudo i2cdetect -y 1 where -y disables interactive confirmation and 1 is the bus number.
  2. Step 2: Check other options for errors

    Options A, B, and C use incorrect flags or order, making them invalid.
  3. Final Answer:

    sudo i2cdetect -y 1 -> Option C
  4. Quick Check:

    Correct syntax = sudo i2cdetect -y 1 [OK]
Quick Trick: Use sudo i2cdetect -y followed by bus number [OK]
Common Mistakes:
MISTAKES
  • Switching flag order or using wrong flags
  • Omitting sudo causing permission errors
  • Using non-existent flags like --bus

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Raspberry Pi Quizzes