Q. Which command is used to display or set the system environment variables?

  • (A) ENV
  • (B) SET
  • (C) GET
  • (D) VAR
πŸ’¬ Discuss
βœ… Correct Answer: (B) SET
Explanation: SET displays or modifies environment variables in MS-DOS.

Q. Which command is used to remove a file attribute in MS-DOS?

  • (A) ATTRIB -R filename
  • (B) REMOVEATTR filename
  • (C) CHATTR filename
  • (D) DELATTR filename
πŸ’¬ Discuss
βœ… Correct Answer: (A) ATTRIB -R filename
Explanation: ATTRIB -R removes the read-only attribute from a file.

Q. What does the PATH command do in MS-DOS?

  • (A) Sets or displays the directories searched for executable files
  • (B) Changes the current directory
  • (C) Deletes files from the path
  • (D) Displays the directory structure
πŸ’¬ Discuss
βœ… Correct Answer: (A) Sets or displays the directories searched for executable files
Explanation: PATH command specifies the directories MS-DOS searches for executable files.