Unix/Lunux MCQ Quiz Hub

Linux Mcqs Questions Set 12

Choose a topic to test your knowledge and improve your Unix/Lunux skills

The directories of /sys directory





✅ Correct Answer: 1

The directory /sys/block contains





✅ Correct Answer: 1

In sysfs, each represented bus type has two directories named as





✅ Correct Answer: 2

A device class describes the ____ type of device.





✅ Correct Answer: 3

Which one of the following directory contains every physical device that has been discovered by the bus types registered with the kernel?





✅ Correct Answer: 1

Which type of devices are peripheral devices?





✅ Correct Answer: 2

Which one of the following is not a system device?





✅ Correct Answer: 4

Which one of the following is not a platform specific code?





✅ Correct Answer: 4

In device driver model bus_type object contains the





✅ Correct Answer: 4

The file fs/sysfs/sysfs.h contains the





✅ Correct Answer: 1

Sysfs is initialised in ______ file via sysfs_init function.





✅ Correct Answer: 1

Kernel objects are exported as _____ via sysfs.





✅ Correct Answer: 3

Sysfs internally stores the pointer to the ____ that implements the directory in the file system.





✅ Correct Answer: 1

Attributes can be exported for objects in the form of _______ in the file system.





✅ Correct Answer: 1

In sysfs every subsystem has





✅ Correct Answer: 2

sysfs is based on





✅ Correct Answer: 2

Which one of the following is a notification to user space from the kernel that something has changed in the system’s configuration?





✅ Correct Answer: 1

In the device driver model the device_driver object contains the





✅ Correct Answer: 4

A ____ is a higher level view of a device that abstracts out low level implementation details/





✅ Correct Answer: 2

When a device is removed from the system





✅ Correct Answer: 1

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





✅ Correct Answer: 3

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





✅ Correct Answer: 1

The core data structure of device driver model is





✅ Correct Answer: 1

The kset contains





✅ Correct Answer: 4

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





✅ Correct Answer: 1

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





✅ Correct Answer: 2

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





✅ Correct Answer: 4

The channel between the processor and devices is called?





✅ Correct Answer: 1

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





✅ Correct Answer: 3

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





✅ Correct Answer: 1

Which one of the following is not true?





✅ Correct Answer: 4

In sysfs.h which one of the following structure represents the directory entries?





✅ Correct Answer: 1

The name pointer of the attribute data structure represents the _____ in sysfs.





✅ Correct Answer: 2

To read/write attribute, which one of the following method is required?





✅ Correct Answer: 3

Which one of the following is not contained in the kobject data structure?





✅ Correct Answer: 4

The kobjects can be organized in a hierarchical tree by means of





✅ Correct Answer: 1

Which one of the following is a element of a kset data structure?





✅ Correct Answer: 3

Which one of the following function is used to add the kobject to sysfs?





✅ Correct Answer: 4

Which one of the following function is used to create a new attribute?





✅ Correct Answer: 1

Sysfs attribute should export ____ value per file.





✅ Correct Answer: 1

The major number identifies the _____ associated with the device.





✅ Correct Answer: 1

The minor number range should be





✅ Correct Answer: 3

Which one of the following is not true?





✅ Correct Answer: 3

In linux kernel 2.4, we can have





✅ Correct Answer: 3

In we use a driver for N number of files, then we have to create ____ device files.





✅ Correct Answer: 1

If we use a driver for various device files, then





✅ Correct Answer: 1

The connection between the device file and device driver is based on the





✅ Correct Answer: 2

 In linux kernel 2.1, the minor numbers were used to





✅ Correct Answer: 1

The kernel identifies the driver with its





✅ Correct Answer: 2

In linux, a device driver can work without the





✅ Correct Answer: 4