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
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.
Note: Join free Sanfoundry classes at Telegram or Youtube

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.
advertisement

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.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

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
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.