Top 50 Kernel Programming & Device Driver Quiz Questions
Hello guys, welcome back to my blog. In this article, I will share the top 50 kernel programming & device driver quiz questions, or MCQ on kernel programming & device driver.
If you have any doubts related to electrical, electronics, and computer science, then ask questions. You can also catch me on Instagram – CS Electrical & Electronics And Chetan Shidling.
Also, read:
- Embedded System Quiz Questions Asked In Online Tests, Placement
- Difference Between Virtual Reality And Augmented Reality
- Top 12 Online Circuit Simulators, Free Online Electronic Circuit Simulators
Kernel Programming & Device Driver Quiz Questions
01. rmmod command can be used for ____?
Options:
- Load dynamic module
- Unload dynamic module
- Unload static module
- None of the above
02. read method returns _____ when an underlying buffer is empty (assume that file is opened with default flags)
Options:
- EFAULT
- -EINVAL
- 0
- None of the above
03. In struct file_operations, ____ methods will support open, close requests from userspace?
Options:
- open, close
- open, release
- init, exit
- None of the above
04. modinfo command can be used for _____ ?
Options:
- meta information of the module like kernel version from which it is built
- load a dynamic module
- list all loaded dynamic modules
- None of the above
05. The following entry is used for building ___
obj-y += sample.o
Options:
- static module
- dynamic module
- both of the above
- none of the above
06. ____ modifiers are specified for init, exit routines of the kernel module to specify that these functions are exclusively for module initialization and cleanup only.
Options:
- _ _ init, _ _ cleanup
- _ _ entry, _ _ exit
- _ _ init, _ _ exit
- None of the above
07. Which is correct about modprobe command?
Options:
- load dynamic modules, but can’t resolve dependencies
- load dynamic modules and resolve dependencies
- load static modules
- none of the above
08. In Linux ____ file represents symbol table of kernel space?
Options:
- cat /proc/symbols
- cat /proc/ksymtable
- cat /proc/kallsyms
- none of the above
09. ____ command is used to check the kernel version?
Options:
- uname -r
- free -m
- df -kh
- None of the above
10. In character driver _____ API is used to create device file automatically when the module is loaded?
Options:
- file_create
- mode_create
- device_create
- None of the above
11. ____ API is used to print messages in kernel space that are stored in kernel log?
Options:
- sprintf
- printk
- printf
- None of the above
12. Linux kernel is of ______ architecture?
Options:
- Monolithic
- Micro
- Modular
- None of the above
13. In Linux kernel source ______ header provides list APIs?
Options:
- klist.h
- list.h
- linkedlist.h
- None of the above
14. ______ API is to check the remaining space available in kfifo?
Options:
- kfifo_avail
- kfifo_len
- kfifo_free
- None of the above
15. Dynamic modules are stored in ______ location and with extension ____?
Options:
- /usr/local, ko
- /lib/modules, .dtb
- /lib/modules, .ko
- None of the above
16. The toolchain which you use to compile your application for embedded Linux is native toolchain?
Options:
- True
- False
17. The mode bit is used by the OS to differentiate the program execution in the following layer?
Options:
- Kernel and BSP Space
- Kernel and user space
- Kernel and CPU space
- Kernel space and Hardware
18. Linux comes under GPL
Options:
- True
- False
19. If you are looking for the vendor-specific Linux configuration file PowerPC, which directory would be looking for?
Options:
- arch/arm/configs
- arch/configs
- arc/powerpc/configs
- arc/
20. I am trying to run qemu, is the following command correct sudo qemu system arm machine?
Options:
- YES
- NO
21. Assume that we have the following configuration -2 partitions on the SD card. What is wrong with the following bootargs
Setev bootargs ‘ console=ttyAMAO root=/dev/mmcblk0p2 rootfstype=ext2 rw’
Options:
- Nothing,everything is fine
- The root node is not correct
- The console is not correct
- None of the above
22. Is the below command OK?
Qemu-system-arm-M vexpress-a9-serial stdio-kernel u-boot-sd rootfs ext-nographic
Options:
- Yes it’s perfectly fine, it should run u-boot
- No the kernel image is not provided, so it will crash
- No the rootfs image has ext format, so this shoudn’t
- Looks like some other issue which is not mentioned here
23. In the Linux file system dynamic modules are stored in ____ location?
Options:
- /boot
- /dev
- /lib/modules
- /usr/lib
24. Identify the SoC behind BeagleBoneBlack?
Options:
- BCM2711
- APQ8016e
- AM35x
- Imx-8m
25. Identify ARM architecture with Linux support?
Options:
- Cortex-M3
- Cortex-M4F
- Cortex-A8
- None of the above
This was about “Kernel Programming & Device Driver Quiz Questions“. I hope this article may help you all a lot. Thank you for reading.
Also, read:
- 100 + Electrical Engineering Projects For Students, Engineers
- 100+ C Programming Projects With Source Code, Coding Projects Ideas
- 1000+ Electronics Projects For Engineers, Diploma, MTech Students
- 1000+ Interview Questions On Java, Java Interview Questions, Freshers
- 1000+ MATLAB Simulink Projects For MTech, Engineering Students
- 500+ Embedded System Projects For Engineer, Diploma, MTech, PhD
- 500+ Projects For Diploma Electrical, Electronics Student, Diploma Project
- 8051 Microcontroller Timers, TCON Register, TMOD Register