Linux Device Drivers Major-Minor Numbers Questions & Answers

This set of Linux questions and answers focuses on Major-Minor numbers used by the Linux Device Drivers.

1. The major number identifies the _____ associated with the device.
a) driver
b) protocol
c) port
d) none of the mentioned
View Answer

Answer: a
Explanation: None.

2. The minor number range should be
a) 0 to 15
b) 0 to 63
c) 0 to 255
d) none of the mentioned
View Answer

Answer: c
Explanation: None.

3. Which one of the following is not true?
a) dynamic allocation of major numbers is not possible
b) major number can not be shared among drivers
c) dynamic allocation of major numbers is not possible & also major number can not be shared among drivers
d) none of the mentioned
View Answer

Answer: c
Explanation: None.

4. In linux kernel 2.4, we can have
a) 256 character drivers only
b) 256 block drivers only
c) 256 character drivers and 256 block drivers at the same time
d) none of the mentioned
View Answer

Answer: c
Explanation: c
advertisement

5. In we use a driver for N number of files, then we have to create ____ device files.
a) N
b) 1
c) N-1
d) None of the mentioned
View Answer

Answer: a
Explanation: None.

6. If we use a driver for various device files, then
a) minor number will be different for every device file
b) minor number will be same for every device file
c) minor number can not be allocated for any device file
d) none of the mentioned
View Answer

Answer: a
Explanation: None.
Free 30-Day C Certification Bootcamp is Live. Join Now!

7. The connection between the device file and device driver is based on the
a) name of device file
b) number of device file
c) name & number of device file
d) none of the mentioned
View Answer

Answer: b
Explanation: None.

8. In linux kernel 2.1, the minor numbers were used to
a) represnt the sub-functionalitites of the driver
b) identify the driver
c) represent the device files
d) none of the mentioned
View Answer

Answer: a
Explanation: None.

9. The kernel identifies the driver with its
a) module
b) major number
c) device file
d) none of the mentioned
View Answer

Answer: b
Explanation: None.

10. In linux, a device driver can work without the
a) major number
b) minor number
c) device file name
d) none of the mentioned
View Answer

Answer: d
Explanation: None.
advertisement

Sanfoundry Global Education & Learning Series – Linux Administration & Programming.
Here’s the list of Best Books in Linux Commands & Shell Programming.
Here’s the list of Best Books in Linux Kernel, Device-Drivers & System Programming.

To practice all questions on Linux Administration & Programming, here is complete set of 1000+ Multiple Choice Questions and Answers on Linux.

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
I’m Manish - Founder and CTO at Sanfoundry. I’ve been working in tech for over 25 years, with deep focus on Linux kernel, SAN technologies, Advanced C, Full Stack and Scalable website designs.

You can connect with me on LinkedIn, watch my Youtube Masterclasses, or join my Telegram tech discussions.

If you’re in your 40s–60s and exploring new directions in your career, I also offer mentoring. Learn more here.