XK0-005 · Question #268
XK0-005 Question #268: Real Exam Question with Answer & Explanation
The correct answer is C: /dev/gpio. {"question_number": 8, "question": "A switch returning 1 (door open) or 0 (door closed) attached to an IO card.", "correct_answer": "C", "explanation": "/dev/gpio represents General Purpose Input/Output pins - hardware interfaces that read or write digital high/low (1/0) signals,
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
Explanation
{"question_number": 8, "question": "A switch returning 1 (door open) or 0 (door closed) attached to an IO card.", "correct_answer": "C", "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.", "generated_by": "claude-sonnet", "llm_judge_score": 4}
Topics
Community Discussion
No community discussion yet for this question.