Search the courses, subjects, tracks, games and features, or jump straight to a page.
4 cards from this section. Quick, good the night before a test.
What is a device file?
Think about the /dev directory in Linux.
Name two types of device files.
Consider how they handle data.
What is the purpose of device files?
Think about how user applications interact with hardware.
True or False: Block devices transmit data as a continuous stream.
Consider the characteristics of block vs character devices.
You need to interface with a custom device file that requires reading and writing as part of a project. Create a basic outline of the Python code you might write to read the file.
Use the open function in Python to access the device file.
A user reports that their application fails when trying to write to /dev/ttyS0. How will you approach diagnosing the problem?
Consider file permissions and concurrent access.
5 more questions in this section. Enroll free to practise them all.
Enroll free