Linux Sysfs Questions & Answers – 4

Basic Computer Knowledge Test Questions and Answers

1.

Relationship between components of device driver models are expressed in the sysfs as

   A.) a directory
   B.) a regular file
   C.) symbolic links between files and directories
   D.) none of these

Answer: Option 'C'

symbolic links between files and directories

Basic Computer Knowledge Test Questions and Answers

2.

What is the main role of the regular files in the sysfs?

   A.) regular files represent the attributes of devices and drivers
   B.) regular files represent the kernel objects
   C.) regular files represent the kernel sets
   D.) none of these

Answer: Option 'A'

regular files represent the attributes of devices and drivers

Basic Computer Knowledge Test Questions and Answers

3.

The core data structure of device driver model is

   A.) kobject
   B.) kfile
   C.) kmodule
   D.) none of these

Answer: Option 'A'

kobject

Basic Computer Knowledge Test Questions and Answers

4.

The kset contains

   A.) pointer to subsystem descriptor
   B.) pointer to the kobject type descriptor of the kset
   C.) head of the kobjects included in the kset
   D.) all of these

Answer: Option 'D'

all of these

Basic Computer Knowledge Test Questions and Answers

5.

Which one of the following is a read-write semaphore in linux that protects all ksets and kobjects included in the filesystem?

   A.) rwsem
   B.) rwsemaphore
   C.) rws
   D.) none of these

Answer: Option 'A'

rwsem

Basic Computer Knowledge Test Questions and Answers

6.

Each device in the device driver model is represented by a _____ object.

   A.) driver
   B.) device
   C.) node
   D.) none of these

Answer: Option 'B'

device

Basic Computer Knowledge Test Questions and Answers

7.

Each driver in the device driver model is described by a ______ object.

   A.) dev_d
   B.) device_d
   C.) dev_driver
   D.) device_driver

Answer: Option 'D'

device_driver

Basic Computer Knowledge Test Questions and Answers

8.

The channel between the processor and devices is called?

   A.) bus
   B.) driver
   C.) class
   D.) none of these

Answer: Option 'A'

bus

Basic Computer Knowledge Test Questions and Answers

9.

In which directory every kernel module of the system is represented?

   A.) /sys/kernel
   B.) /sys/module
   C.) /sys/kernel/module
   D.) none of these

Answer: Option 'C'

/sys/kernel/module

Basic Computer Knowledge Test Questions and Answers

10.

In sysfs the device drivers of same _____ are expected to provide same functionalities to the user mode application.

   A.) class
   B.) kobjects
   C.) ksets
   D.) none of these

Answer: Option 'A'

class

Linux Sysfs Questions & Answers – 4 Download Pdf

Recent Posts