QCM - Section 1: Vcc
Quiz interactif avec 5 questions. Testez vos connaissances!
Comment jouer ?
- 1. Lisez chaque question attentivement
- 2. Choisissez votre réponse parmi les options
- 3. Cliquez sur "Voir la réponse" pour vérifier
- 4. Comptez vos bonnes réponses à la fin !
Quiz: QCM - Section 1: Vcc
5 questions | Difficulté: moyen
Question 1
What is the correct pin to connect the DATA wire of the one-wire temperature sensor on Raspberry Pi?
- A. Pin 01
- B. Pin 06
- C. Pin 07
- D. Pin 25
Voir la réponse
Réponse correcte: B
The DATA wire should be connected to pin 06 on Raspberry Pi.
Question 2
What command is used to enable the one-wire interface from the RPi side?
- A. sudo reboot
- B. dtoverlay=w1–gpio
- C. sudo modprobe g1-gpio
- D. nano /boot/config.txt
Voir la réponse
Réponse correcte: A
The command to enable the one-wire interface from the RPi side is dtoverlay=w1–gpio.
Question 3
Which file contains the temperature and other information like CRC when using a one-wire temperature sensor on Raspberry Pi?
- A. w1_slave
- B. /boot/config.txt
- C. config.txt
- D. temperature_data
Voir la réponse
Réponse correcte: A
The file containing the temperature and other information like CRC when using a one-wire temperature sensor on Raspberry Pi is w1_slave.
Question 4
What does the RATE parameter in the provided Python module do?
- A. Defines the frequency of temperature query from the sensor
- B. Changes or adjusts the voltage level
- C. Initializes the one-wire interface
- D. Prints the temperature vs address for infinite time
Voir la réponse
Réponse correcte: A
The RATE parameter defines the frequency of temperature query from the sensor.
Question 5
Which Python function is used to read the files in the module provided?
- A. open()
- B. temperature_read()
- C. w1_slave.read()
- D. glob.read()
Voir la réponse
Réponse correcte: A
The Python function used to read the files in the provided module is open().