COPA Module 4: DOS Interface & Linux OS – all 15 MCQ questions with answers

  1. Which command remove files in Linux?

    Answer: rm – In Linux, rm (remove) deletes files, e.g. rm notes.txt.

  2. Which DOS command deletes a directory?

    Answer: RD – RD (Remove Directory) deletes an empty directory in DOS.

  3. What is the full form of FSF?

    Answer: Free Software Foundation – FSF = Free Software Foundation, founded by Richard Stallman to promote free software.

  4. Which Linux command sorts the text file ‘network’ in descending order?

    Answer: Sort - r network – sort -r sorts lines in reverse (descending) order.

  5. Which DOS command lists all .com files in D drive?

    Answer: DIR D :\ * .com – The wildcard * matches any name, so DIR D:\*.com lists every .com file on drive D.

  6. Which is open source software?

    Answer: Open Office – OpenOffice is free open-source office software; MS Office, Windows and macOS are proprietary.

  7. Where is the user password stored?

    Answer: /etc/passwd – User account details are kept in /etc/passwd (encrypted passwords are in /etc/shadow).

  8. What are the directories under the root directory are called?

    Answer: sub directories – Directories inside the root directory are called sub-directories.

  9. What is the full form of OSS?

    Answer: Open Source Software – OSS = Open Source Software – its source code is free to view, change and share.

  10. Which software coding is freely available on the internet and open for users for further use?

    Answer: Open source software – Open source software makes its source code freely available for anyone to use and improve.

  11. Which character redirects output into an existing file in Linux?

    Answer: > – > redirects command output into a file (overwrites it); >> appends to the file.

  12. Which of the following is an advantage of open source software?

    Answer: Edit and customize the source code – With open source you can edit and customise the source code for your needs.

  13. Which linux command is used to copy the context from one file to another file?

    Answer: cp – cp copies a file's contents to another file, e.g. cp a.txt b.txt.

  14. What is the first option of the KDE desktop in Linux?

    Answer: Application – The first menu of the KDE launcher is Applications, listing all installed programs.

  15. Which character represents parent directory in Linux?

    Answer: .. – In Linux, .. means the parent directory (cd .. goes one level up); . is the current directory.