Deck 6: Devices and Device Drivers
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/45
Play
Full screen (f)
Deck 6: Devices and Device Drivers
1
Which of the following is NOT a type of device special file used in Linux systems?
A) Block special files
B) Character special files
C) Stream special files
D) Named pipes
A) Block special files
B) Character special files
C) Stream special files
D) Named pipes
C
2
Device drivers perform the actual communication between physical devices and the operating system.
True
3
Which of the following is a common format for distributing driver files?
A) zip
B) txt
C) drv
D) xml
A) zip
B) txt
C) drv
D) xml
A
4
You have attached a new USB camera to your computer but it doesn't seem to be working. Which tool can you use to see if Windows successfully installed the driver and verify that the device is working correctly?
A) Add a device wizard
B) Device Manager
C) Programs and Features
D) Windows Update
A) Add a device wizard
B) Device Manager
C) Programs and Features
D) Windows Update
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
5
In which I/O device communication strategy are the control and data registers separate from the computer's RAM address space?
A) memory-mapped I/O
B) programmed I/O
C) direct memory access
D) port-mapped I/O
A) memory-mapped I/O
B) programmed I/O
C) direct memory access
D) port-mapped I/O
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
6
Generic mouse and keyboard drivers are included with the OS.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
7
The management software for your sound card has just downloaded and installed the latest driver for your sound card. After a reboot, your computer shows signs of instability and the sound skips. What feature should you use to resolve the problem that will cause the least disruption?
A) Windows update
B) Plug and Play
C) driver roll back
D) system restore
A) Windows update
B) Plug and Play
C) driver roll back
D) system restore
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
8
You are designing a new device that must be able to accept bursts of data that are held until the CPU is ready for them. What can you include in the device design to accommodate this requirement?
A) FIFO chip
B) status register
C) port-mapped I/O
D) BIOS chip
A) FIFO chip
B) status register
C) port-mapped I/O
D) BIOS chip
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
9
You are writing a device driver for a sensor attached to the computer. Your driver is experiencing an error when it tries to write a command instructing the device to read data. In which component of the device does the problem most likely lie?
A) I/O controller
B) control register
C) data register
D) address register
A) I/O controller
B) control register
C) data register
D) address register
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
10
You need to install a new sound card for a colleague's computer. Which of the following does NOT represent a typical method for installing the driver on a Windows system?
A) PnP
B) Add a device wizard
C) Device Manager
D) Programs and Features
A) PnP
B) Add a device wizard
C) Device Manager
D) Programs and Features
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
11
Which of the following is a goal of driver signing?
A) to give credit to the driver developer
B) to prevent someone from copying the driver
C) to ensure a driver does not contain malware
D) to allow the driver to be decrypted
A) to give credit to the driver developer
B) to prevent someone from copying the driver
C) to ensure a driver does not contain malware
D) to allow the driver to be decrypted
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
12
Which of the following is NOT a typical step in the process for installing new hardware on a macOS system?
A) Shut down the system.
B) Attach new hardware.
C) Configure dip switches.
D) Insert the DVD.
A) Shut down the system.
B) Attach new hardware.
C) Configure dip switches.
D) Insert the DVD.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
13
Which of the following is a good practice when you are installing a new device?
A) Reinitialize the kernel.
B) Check for a new driver.
C) Recompile the installed driver.
D) Always use the driver supplied by the OS.
A) Reinitialize the kernel.
B) Check for a new driver.
C) Recompile the installed driver.
D) Always use the driver supplied by the OS.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
14
A Windows 10 user is having trouble with Zoom sessions. She tells you that she recently installed an updated webcam driver that she hoped would allow her to properly use Zoom backgrounds. However, ever since she updated the driver, her Zoom sessions frequently freeze and her video is very slow. What do you recommend that she do to get Zoom working again quickly?
A) Use Device Manager to roll back the webcam driver.
B) Use Programs and Features to uninstall and reinstall the webcam software.
C) Ask her to install an unsigned driver that you downloaded from the Internet.
D) Ask her to stop using the webcam and only use audio for the Zoom sessions.
A) Use Device Manager to roll back the webcam driver.
B) Use Programs and Features to uninstall and reinstall the webcam software.
C) Ask her to install an unsigned driver that you downloaded from the Internet.
D) Ask her to stop using the webcam and only use audio for the Zoom sessions.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
15
All device drivers are built-in to the operating system and provided by the operating system vendor.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
16
You are about to install a new USB camera on your Linux system and you realize that there is no device special file available for your device. What command can you use on the system to create a new device special file?
A) lshw
B) mknod
C) newdev
D) lspci
A) lshw
B) mknod
C) newdev
D) lspci
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
17
Linux drivers may be delivered in an archive format called Stuffit.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
18
A print spooler is a log file that maintains a history of print jobs.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
19
Which of the following is NOT a basic component of most I/O devices?
A) control register
B) I/O controller
C) address register
D) data register
A) control register
B) I/O controller
C) address register
D) data register
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
20
A technician calls you and ask for some help installing an old printer. The printer is supposed to connect directly to the network but there is no place to plug in a network cable; there is only a USB port. What should you tell him?
A) Install a network printer interface.
B) Remove a NIC from an old PC and connect it to the USB port.
C) Connect the printer to a nearby PC.
D) Use a network switch that has USB ports.
A) Install a network printer interface.
B) Remove a NIC from an old PC and connect it to the USB port.
C) Connect the printer to a nearby PC.
D) Use a network switch that has USB ports.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
21
You have been tasked with writing a device driver for an SSD storage device. Which of the following accurately describes how data is accessed and transferred on the device?
A) random, block
B) sequential, character-stream
C) sequential, block
D) random, character-stream
A) random, block
B) sequential, character-stream
C) sequential, block
D) random, character-stream
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
22
Which of the following is true about device drivers?
A) Drivers are only available on the OS vendor installation media.
B) Some drivers may come with a .exe file extension.
C) Downloaded drivers can only be installed using PnP.
D) Windows drivers are most commonly delivered in tar format.
A) Drivers are only available on the OS vendor installation media.
B) Some drivers may come with a .exe file extension.
C) Downloaded drivers can only be installed using PnP.
D) Windows drivers are most commonly delivered in tar format.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
23
What type of I/O device transfers a single byte of data at a time?
A) block
B) FIFO chip
C) character-stream
D) named pipe
A) block
B) FIFO chip
C) character-stream
D) named pipe
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
24
If a hard drive is organized in groups of 4 sectors, how many bytes can be read or written to the drive at one time?
A) 4
B) 512
C) 2048
D) 8192
A) 4
B) 512
C) 2048
D) 8192
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
25
You are installing a TCP/IP printer on a Windows system. What is the next step you should take after you have selected to add a printer using a TCP/IP address or hostname?
A) Select the printer driver.
B) Assign a port name.
C) Get a DHCP address.
D) Specify an IP address.
A) Select the printer driver.
B) Assign a port name.
C) Get a DHCP address.
D) Specify an IP address.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
26
Where are print job stored before they are sent to a printer?
A) external disk
B) network card
C) file cache
D) print queue
A) external disk
B) network card
C) file cache
D) print queue
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
27
You have installed a new sound card in your system, closed the computer case, and turned on the computer. Windows boots and you sign in but you didn't hear the familiar Windows sound that usually occurs when boot Windows. You look in Device Manager and see a device with a question mark icon. What is the most likely problem?
A) Windows found more than one driver and is unsure which to install.
B) The device is okay, but Windows could not find the correct icon to display.
C) The device driver could not be installed.
D) The sound card has been disabled.
A) Windows found more than one driver and is unsure which to install.
B) The device is okay, but Windows could not find the correct icon to display.
C) The device driver could not be installed.
D) The sound card has been disabled.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
28
You are developing a Linux driver that handles internal communication between processes. What type of device special file will this driver require?
A) block special file
B) character special file
C) named pipe
D) random access
A) block special file
B) character special file
C) named pipe
D) random access
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
29
What type of data transfer strategy allows large blocks of data to be transferred to and from memory with little CPU involvement?
A) DMA
B) PIO
C) FIFO
D) sequential
A) DMA
B) PIO
C) FIFO
D) sequential
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
30
You are developing a Linux device driver for a device that manages data in streams of bytes. This driver will be loaded by the OS when it is started. What type of driver is this and what type of device special file will it use?
A) kernel module, block special file
B) loadable module, character special file
C) loadable module, block special file
D) kernel module, character special file
A) kernel module, block special file
B) loadable module, character special file
C) loadable module, block special file
D) kernel module, character special file
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
31
You have been asked to acquire a printer for a business. You have been told that it should be easy for users to print to the printer from their smartphones and tablets. What feature should you look for when selecting the printer?
A) a wireless interface
B) an RJ45 connector
C) a USB 3.0 connector
D) a mobile operating system
A) a wireless interface
B) an RJ45 connector
C) a USB 3.0 connector
D) a mobile operating system
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
32
You are trying to install a new printer on a Windows computer. You are using the Add a printer or scanner option in Settings. The Add a printer or scanner option does not detect your printer. What should you do next?
A) Purchase a different printer.
B) Install the printer manually.
C) In Device Manager, choose Scan for hardware changes.
D) Install the Windows Generic Printer driver.
A) Purchase a different printer.
B) Install the printer manually.
C) In Device Manager, choose Scan for hardware changes.
D) Install the Windows Generic Printer driver.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
33
What protocol does a network-attached printer that can print over the Internet use?
A) HTTP
B) FTP
C) IPP
D) PPP
A) HTTP
B) FTP
C) IPP
D) PPP
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
34
You have ten employees, each with their own computer. You currently have only one printer that is connected via USB to your computer. You frequently run into the problem where other employees try to print to the printer when your computer is shut down or when you are in a meeting. You have funds for a new printer but you don't want to run into the same problems even if the printer is installed on another user's computer. What do you suggest?
A) Buy a long printer cable so you can place it away from the user's desk.
B) Buy a printer with a LAN interface.
C) Buy a printer with a USB interface.
D) Buy one printer for each employee.
A) Buy a long printer cable so you can place it away from the user's desk.
B) Buy a printer with a LAN interface.
C) Buy a printer with a USB interface.
D) Buy one printer for each employee.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
35
You are looking for the device special file associated with the second SATA drive on your system and the first partition on that drive. What file should you look for?
A) /dev/st2a
B) /dev/sd2a
C) /dev/sta1
D) /dev/sdb1
A) /dev/st2a
B) /dev/sd2a
C) /dev/sta1
D) /dev/sdb1
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
36
Which of the following is true about device drivers on Linux systems?
A) Many drivers are in the form of kernel modules.
B) All drivers must be linked to the kernel.
C) All drivers are loadable modules.
D) Most driver files are found in the /usr directory.
A) Many drivers are in the form of kernel modules.
B) All drivers must be linked to the kernel.
C) All drivers are loadable modules.
D) Most driver files are found in the /usr directory.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
37
Which of the following is NOT an advantage of using device drivers instead of building all device functionality into the OS kernel?
A) kernel efficiency
B) new devices can be added easily
C) the number of devices is not limited
D) easier to prevent malware
A) kernel efficiency
B) new devices can be added easily
C) the number of devices is not limited
D) easier to prevent malware
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
38
Where should you look for the configuration settings of your printer on a Linux computer?
A) /dev/printers
B) /root/devprint
C) /etc/cups
D) /home/printconf
A) /dev/printers
B) /root/devprint
C) /etc/cups
D) /home/printconf
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
39
You have double-clicked a device in Device Manager to open its Properties window. Where can you find information about IRQs the device might use?
A) General tab
B) Driver tab
C) Details tab
D) Resources tab
A) General tab
B) Driver tab
C) Details tab
D) Resources tab
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
40
Which of the following device is most likely to be a block device?
A) keyboard
B) DVD
C) mouse
D) NIC
A) keyboard
B) DVD
C) mouse
D) NIC
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
41
In which type of I/O addressing does a read or write operation trigger a dedicated I/O bus to select the appropriate device?
A) memory-mapped I/O
B) dedicated I/O
C) port-mapped I/O
D) triggered I/O
A) memory-mapped I/O
B) dedicated I/O
C) port-mapped I/O
D) triggered I/O
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
42
How does a CPU know if a data transfer has been completed if an I/O device uses DMA to transfer data?
A) An interrupt is generated.
B) The status register is polled.
C) The data register is empty.
D) The program counter is incremented.
A) An interrupt is generated.
B) The status register is polled.
C) The data register is empty.
D) The program counter is incremented.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
43
You are instructing a colleague to create a device driver for a new tape drive that will be used to store collected data for an embedded system. What are two of the qualities of this type of device that must be understood to write the driver?
A) It is a random-access, character-stream device
B) It is a packet-oriented device that uses PIO.
C) It is a sequential-access, block device.
D) I uses memory-mapped I/O and DMA.
A) It is a random-access, character-stream device
B) It is a packet-oriented device that uses PIO.
C) It is a sequential-access, block device.
D) I uses memory-mapped I/O and DMA.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
44
You have been asked to install a network-attached printer that will be used with macOS client computers. Which of the following is an example of a setting you will use when configuring this printer?
A) 172.16.1.100
B) 0AAA-1111-2222
C) UDP port 1024
D) NetBIOS Name HPLaser
A) 172.16.1.100
B) 0AAA-1111-2222
C) UDP port 1024
D) NetBIOS Name HPLaser
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
45
What is the name of the print spooler daemon in the most widely used Linux printing system on modern systems?
A) LPD
B) CUPS
C) Spooler
D) SQL
A) LPD
B) CUPS
C) Spooler
D) SQL
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck