Linux Sysfs Questions & Answers – 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 these

Answer: Option 'A'

are created at system startup when the subsystems register themselves with kobject core
 

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 these

Answer: Option 'A'

sub-directories for each block device

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 these

Answer: Option 'B'

devices and drivers

4.

A device class describes the ____ type of device.

   A.) physical
   B.) stuctural
   C.) functional
   D.) none of these

Answer: Option 'C'

functional

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 these

Answer: Option 'A'

/sys/devices

6.

Which type of devices are peripheral devices?

   A.) platform devices
   B.) system devices
   C.) both system and platform devices
   D.) none of these

Answer: Option 'B'

system devices

7.

Which one of the following is not a system device?

   A.) CPU
   B.) APIC
   C.) Timer
   D.) None of these

Answer: Option 'D'

None of these

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 these

Answer: Option 'D'

none of these

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 these

Answer: Option 'D'

all of these

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 these

Answer: Option 'A'

internal header files for sysfs


Linux Sysfs Questions & Answers – 2 Download Pdf

Recent Posts