Bird
0
0

Which command correctly scans I2C devices on bus 1 without prompting for confirmation on a Raspberry Pi?

easy📝 Syntax Q3 of 15
Raspberry Pi - I2C Communication
Which command correctly scans I2C devices on bus 1 without prompting for confirmation on a Raspberry Pi?
Ai2cdetect -r 1
Bsudo i2cdetect -y 1
Csudo i2cdetect 1
Di2cdetect -y
Step-by-Step Solution
Solution:
  1. Step 1: Understand the -y option

    The -y flag disables interactive confirmation, allowing the scan to run immediately.
  2. Step 2: Identify the correct bus number

    Bus 1 is the default I2C bus on most Raspberry Pi models.
  3. Step 3: Use sudo for permissions

    Running i2cdetect usually requires root privileges, so sudo is needed.
  4. Final Answer:

    sudo i2cdetect -y 1 -> Option B
  5. Quick Check:

    Command includes sudo, -y, and bus 1 [OK]
Quick Trick: Use sudo with -y and bus number [OK]
Common Mistakes:
MISTAKES
  • Omitting sudo and getting permission errors
  • Forgetting the -y flag and needing confirmation
  • Using incorrect bus number

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Raspberry Pi Quizzes