Vidyalelo
Computer Science · Q30

Disk Operating System (DOS)

Engineering and GATE · Computer Science · question 30

Q30

Which command is used to clear the screen

A.
Cls
Answer
B.
Clear
C.
Clscreen
D.
All of above

Answer: Option A

Solution

Answer: Option A
Solution:
In Disk Operating System (DOS), the command used to clear the screen is Cls. This command clears the console screen, removing all previous commands and output, and displays the command prompt at the top of the screen.

Option B, "Clear," is not a valid DOS command for clearing the screen. It is commonly used in Unix-like systems.
Option C, "Clscreen," is not a valid DOS command.

Therefore, the correct answer is Option A: Cls.