Question:

The printer can be accessed using the predefined file name

Show Hint

These device names (`PRN`, `LPT1`, `COM1`, `CON`) are relics from the days of MS-DOS but still have some relevance in Windows command-line environments.
  • Printer file
  • Print
  • Cout
  • PRN, LPT1, etc.
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is D

Solution and Explanation

Step 1: Understand device access in legacy systems. In older command-line operating systems like MS-DOS and early versions of Windows, physical devices were often treated as files and could be accessed through reserved device names.
Step 2: Identify the predefined names for printers.

LPT1, LPT2, etc.: Stood for "Line Printer Terminal" and referred to the parallel ports to which printers were typically connected.
PRN: Was a generic device name that usually pointed to LPT1.
You could, for example, copy a text file directly to the printer using a command like `COPY file.txt PRN`.
Was this answer helpful?
0
0