MCQOPTIONS
Saved Bookmarks
This section includes 746 Mcqs, each offering curated multiple-choice questions to sharpen your Technical Programming knowledge and support exam preparation. Choose a topic below to get started.
| 201. |
The minor number range should be |
| A. | 0 to 15 |
| B. | 0 to 63 |
| C. | 0 to 255 |
| D. | none of the mentioned |
| Answer» D. none of the mentioned | |
| 202. |
The major number identifies the _____ associated with the device. |
| A. | driver |
| B. | protocol |
| C. | port |
| D. | none of the mentioned |
| Answer» B. protocol | |
| 203. |
Sysfs attribute should export ____ value per file. |
| A. | One |
| B. | Two |
| C. | Three |
| D. | Four |
| Answer» B. Two | |
| 204. |
Which one of the following function is used to create a new attribute? |
| A. | sysfs_create_file() |
| B. | sysfs_attribute |
| C. | both sysfs_create_file() and sysfs_attribute |
| D. | none of the mentioned |
| Answer» B. sysfs_attribute | |
| 205. |
Which one of the following function is used to add the kobject to sysfs? |
| A. | kobject_add() |
| B. | kobject_register() |
| C. | kobject_init() |
| D. | all of the mentioned |
| Answer» E. | |
| 206. |
Which one of the following is a element of a kset data structure? |
| A. | pointer to the subsystem descriptor |
| B. | pointer to the kobject type descriptor of the kset |
| C. | pointer to the subsystem descriptor & kobject type descriptor of the kset |
| D. | none of the mentioned |
| Answer» D. none of the mentioned | |
| 207. |
The kobjects can be organized in a hierarchical tree by means of |
| A. | ksets |
| B. | kref |
| C. | ktype |
| D. | none of the mentioned |
| Answer» B. kref | |
| 208. |
Which one of the following is not contained in the kobject data structure? |
| A. | pointer to the kobject type descriptor |
| B. | pointer to the containing kset |
| C. | pointer to the parent kobject |
| D. | none of the mentioned |
| Answer» E. | |
| 209. |
To read/write attribute, which one of the following method is required? |
| A. | show |
| B. | store |
| C. | both show and store |
| D. | none of the mentioned |
| Answer» D. none of the mentioned | |
| 210. |
The name pointer of the attribute data structure represents the _____ in sysfs. |
| A. | directory |
| B. | file |
| C. | symbolic link |
| D. | none of the mentioned |
| Answer» C. symbolic link | |
| 211. |
In sysfs.h which one of the following structure represents the directory entries? |
| A. | struct sysfs_dirent |
| B. | struct sysfs_dir |
| C. | struct sysfs |
| D. | none of the mentioned |
| Answer» B. struct sysfs_dir | |
| 212. |
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 the mentioned |
| Answer» B. kobjects | |
| 213. |
one of the mentioned |
| A. | /sys/kernel |
| B. | /sys/module |
| C. | /sys/kernel/module |
| D. | none of the mentioned |
| Answer» D. none of the mentioned | |
| 214. |
The channel between the processor and devices is called? |
| A. | bus |
| B. | driver |
| C. | class |
| D. | none of the mentioned |
| Answer» B. driver | |
| 215. |
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» E. | |
| 216. |
Each device in the device driver model is represented by a _____ object. |
| A. | driver |
| B. | device |
| C. | node |
| D. | none of the mentioned |
| Answer» C. node | |
| 217. |
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 the mentioned |
| Answer» B. rwsemaphore | |
| 218. |
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 the mentioned |
| Answer» E. | |
| 219. |
The core data structure of device driver model is |
| A. | kobject |
| B. | kfile |
| C. | kmodule |
| D. | none of the mentioned |
| Answer» B. kfile | |
| 220. |
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. | egular files represent the kernel sets |
| Answer» B. regular files represent the kernel objects | |
| 221. |
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 the mentioned |
| Answer» D. none of the mentioned | |
| 222. |
When a device is removed from the system |
| A. | files and directories of that device in the sysfs are removed automatically |
| B. | all the files of sysfs are preserved until the system turn offs |
| C. | it does not create any change in the sysfs |
| D. | none of the mentioned |
| Answer» B. all the files of sysfs are preserved until the system turn offs | |
| 223. |
A ____ is a higher level view of a device that abstracts out low level implementation details/ |
| A. | inode |
| B. | class |
| C. | major number |
| D. | minor number |
| Answer» C. major number | |
| 224. |
In the device driver model the device_driver object contains the |
| A. | name of the device driver |
| B. | embedded kobjects |
| C. | method for probing a device |
| D. | all of the mentioned |
| Answer» E. | |
| 225. |
Which one of the following is a notification to user space from the kernel that something has changed in the system’s configuration? |
| A. | hotplug event |
| B. | module event |
| C. | attach event |
| D. | none of the mentioned |
| Answer» C. attach event | |
| 226. |
sysfs is based on |
| A. | rootfs |
| B. | ramfs |
| C. | initramfs |
| D. | none of the mentioned |
| Answer» C. initramfs | |
| 227. |
In sysfs every subsystem has |
| A. | a shared attribute structure |
| B. | its own attribute structure |
| C. | a shared & own attribute structure |
| D. | none of the mentioned |
| Answer» C. a shared & own attribute structure | |
| 228. |
Attributes can be exported for objects in the form of _______ in the file system. |
| A. | regular files |
| B. | directories |
| C. | symbolic links |
| D. | symbolic links |
| Answer» B. directories | |
| 229. |
Sysfs internally stores the pointer to the ____ that implements the directory in the file system. |
| A. | kobjects |
| B. | kstructures |
| C. | kinodes |
| D. | none of the mentioned |
| Answer» B. kstructures | |
| 230. |
Kernel objects are exported as _____ via sysfs. |
| A. | regular files |
| B. | symbolic links |
| C. | directories |
| D. | none of the mentioned |
| Answer» D. none of the mentioned | |
| 231. |
Sysfs is initialised in ______ file via sysfs_init function. |
| A. | fs/sysfs/mount.c |
| B. | sysfs/mount.c |
| C. | fs/mount.c |
| D. | none of the mentioned |
| Answer» B. sysfs/mount.c | |
| 232. |
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 |
| Answer» B. function definitions will not shared locally among the sysfs source | |
| 233. |
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 |
| Answer» E. | |
| 234. |
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 |
| Answer» E. | |
| 235. |
Which one of the following is not a system device? |
| A. | CPU |
| B. | APIC |
| C. | Timer |
| D. | None of the mentioned |
| Answer» E. | |
| 236. |
Which type of devices are peripheral devices? |
| A. | platform devices |
| B. | system devices |
| C. | both system and platform devices |
| D. | none of the mentioned |
| Answer» C. both system and platform devices | |
| 237. |
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/devices |
| C. | /devices |
| D. | none of the mentioned |
| Answer» B. /sys/devices | |
| 238. |
A device class describes the ____ type of device. |
| A. | physical |
| B. | stuctural |
| C. | functional |
| D. | none of the mentioned |
| Answer» D. none of the mentioned | |
| 239. |
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 |
| Answer» C. devices and kobjects | |
| 240. |
The directory /sys/block contains |
| A. | sub-directories for each block device |
| B. | symbolic link for each block device only |
| C. | evice file for each block device only |
| D. | none of the mentioned |
| Answer» B. symbolic link for each block device only | |
| 241. |
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 |
| Answer» B. are created when any device is connects with the system | |
| 242. |
The directories in the /sys directory represents |
| A. | the device files |
| B. | major subsystems that are registered with sysfs |
| C. | details of buses only |
| D. | none of the mentioned |
| Answer» C. details of buses only | |
| 243. |
Sysfs does not contains |
| A. | regular files |
| B. | symbolic links |
| C. | directories |
| D. | none of the mentioned |
| Answer» E. | |
| 244. |
Sysfs represents the |
| A. | kernel objects |
| B. | libraries |
| C. | api |
| D. | none of the mentioned |
| Answer» B. libraries | |
| 245. |
Libsysfs is a |
| A. | user space library |
| B. | kernel space library |
| C. | not a library |
| D. | none of the mentioned |
| Answer» B. kernel space library | |
| 246. |
In linux sysfs is always mounted at |
| A. | /sys |
| B. | /proc/sys |
| C. | /proc/mounts |
| D. | none of the mentioned |
| Answer» B. /proc/sys | |
| 247. |
The files of sysfs contains the information about |
| A. | devices and drivers |
| B. | memory mapping |
| C. | ports |
| D. | none of the mentioned |
| Answer» B. memory mapping | |
| 248. |
Sysfs can be considered as the reflection of the |
| A. | kernel’s device model |
| B. | user’s device model |
| C. | network’s device model |
| D. | none of the mentioned |
| Answer» B. user’s device model | |
| 249. |
What is sysfs? |
| A. | it is a virtual filesystem |
| B. | users use it to get the information about the running kernel |
| C. | it is used for exporting kernel objects. |
| D. | all of the mentioned |
| Answer» E. | |
| 250. |
Sysfs was originally called |
| A. | device driver filesystem |
| B. | kernel interface filesystem |
| C. | kernel filesystem |
| D. | none of the mentioned |
| Answer» B. kernel interface filesystem | |