XK0-005 · Question #268
A new IO card has been added to the security server to log the opening and closing of the main entrance. A switch is attached, so the interface card returns a 1 when the door is opened and a 0 when…
The correct answer is C. /dev/gpio. /dev/gpio represents General Purpose Input/Output pins - hardware interfaces that read or write digital high/low (1/0) signals, exactly as described. GPIO is commonly used for sensors, switches, and simple hardware integration. /dev/tty0 is a virtual terminal (console)…
Question
A new IO card has been added to the security server to log the opening and closing of the main entrance. A switch is attached, so the interface card returns a 1 when the door is opened and a 0 when the door is closed. Which of the following describes the Linux device to which this switch is attached?
Options
- A/dev/tty0
- B/dev/port
- C/dev/gpio
- D/dev/sg0
How the community answered
(25 responses)- A4% (1)
- C96% (24)
Explanation
/dev/gpio represents General Purpose Input/Output pins - hardware interfaces that read or write digital high/low (1/0) signals, exactly as described. GPIO is commonly used for sensors, switches, and simple hardware integration. /dev/tty0 is a virtual terminal (console). /dev/port provides raw access to I/O port addresses in the processor's I/O space. /dev/sg0 is the SCSI generic device interface for SCSI/SAS storage.
Topics
Community Discussion
No community discussion yet for this question.