COPA Module 4: DOS Interface & Linux OS – all 15 MCQ questions with answers
Which command remove files in Linux?
Answer: rm – In Linux, rm (remove) deletes files, e.g. rm notes.txt.
Which DOS command deletes a directory?
Answer: RD – RD (Remove Directory) deletes an empty directory in DOS.
What is the full form of FSF?
Answer: Free Software Foundation – FSF = Free Software Foundation, founded by Richard Stallman to promote free software.
Which Linux command sorts the text file ‘network’ in descending order?
Answer: Sort - r network – sort -r sorts lines in reverse (descending) order.
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.
Which is open source software?
Answer: Open Office – OpenOffice is free open-source office software; MS Office, Windows and macOS are proprietary.
Where is the user password stored?
Answer: /etc/passwd – User account details are kept in /etc/passwd (encrypted passwords are in /etc/shadow).
What are the directories under the root directory are called?
Answer: sub directories – Directories inside the root directory are called sub-directories.
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.
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.
Which character redirects output into an existing file in Linux?
Answer: > – > redirects command output into a file (overwrites it); >> appends to the file.
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.
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.
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.
Which character represents parent directory in Linux?
Answer: .. – In Linux, .. means the parent directory (cd .. goes one level up); . is the current directory.