Linux Sysfs Questions & Answers – 2

This set of Linux / Unix questions and answers focuses on sysfs. This is set 2.

1. The directories of /sys directory
a) are created at system startup when the subsystems register themselves with kobject core
b) are created when any device is connects with the system
c) are created at the time of kernel compilation
d) none of the mentioned
View Answer

Answer: a
Explanation: None.

2. The directory /sys/block contains
a) sub-directories for each block device
b) symbolic link for each block device only
c) device file for each block device only
d) none of the mentioned
View Answer

Answer: a
Explanation: None.

3. In sysfs, each represented bus type has two directories named as
a) attributes and kobjects
b) devices and drivers
c) devices and kobjects
d) none of the mentioned
View Answer

Answer: b
Explanation: None.

4. A device class describes the ____ type of device.
a) physical
b) stuctural
c) functional
d) none of the mentioned
View Answer

Answer: c
Explanation: None.
advertisement

5. Which one of the following directory contains every physical device that has been discovered by the bus types registered with the kernel?
a) /sys/devices
b) /sys/bus/devices
c) /devices
d) none of the mentioned
View Answer

Answer: a
Explanation: None.

6. Which type of devices are peripheral devices?
a) platform devices
b) system devices
c) both system and platform devices
d) none of the mentioned
View Answer

Answer: b
Explanation: None.
Free 30-Day Java Certification Bootcamp is Live. Join Now!

7. Which one of the following is not a system device?
a) CPU
b) APIC
c) Timer
d) None of the mentioned
View Answer

Answer: d
Explanation: None.

8. Which one of the following is not a platform specific code?
a) x86 BIOS
b) EFI on ia64
c) both x86 BIOS and EFI on ia64
d) none of the mentioned
View Answer

Answer: d
Explanation: None.

9. In device driver model bus_type object contains the
a) name of the bus type
b) set of kobjects of the drivers
c) set of kobjects of the devices
d) all of the mentioned
View Answer

Answer: d
Explanation: None.

10. The file fs/sysfs/sysfs.h contains the
a) internal header files for sysfs
b) function definitions will not shared locally among the sysfs source
c) all of the mentioned
d) none of the mentioned
View Answer

Answer: a
Explanation: None.
advertisement

Sanfoundry Global Education & Learning Series – Linux Administration & Programming.
Here’s the list of Best Books in Linux Commands & Shell Programming.
Here’s the list of Best Books in Linux Kernel, Device-Drivers & System Programming.

To practice all questions on Linux Administration & Programming, here is complete set of 1000+ Multiple Choice Questions and Answers on Linux.

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
I’m Manish - Founder and CTO at Sanfoundry. I’ve been working in tech for over 25 years, with deep focus on Linux kernel, SAN technologies, Advanced C, Full Stack and Scalable website designs.

You can connect with me on LinkedIn, watch my Youtube Masterclasses, or join my Telegram tech discussions.

If you’re in your 40s–60s and exploring new directions in your career, I also offer mentoring. Learn more here.