Home NIMI TRADE THEORY MOCK TEST COPA Mock Test 4 - DOS & LINUX Operating Systems COPA Mock Test 4 - DOS & LINUX Operating Systems personVIKASH NIMBRAIN September 18, 2023 share 1. What is the name of hierarchical file system in DOS? a) Tree structure b) Root structure c) Hybrid structure d) Directory structure 2. Which DOS command is used to delete a directory? a) RD b) REMOVE c) DEL d) DELETE 3. Which character is used to represent the parent directory in Linux? a) . b) .. c) ~ d) * 4. Which character is used to redirect output into an existing file in Linux? a) > b) >> c) < d) << 5. Which command is used to specify the location of files or folders in MSDOS? a) dir b) path c) sub directories d) tree 6. How are the directories under the root directory called? a) dir b) path c) sub directories d) tree 7. Which filename matches the command DIR????T.TXT in DOS? a) TIME.TXT b) TEXT.TXT c) TEMP.TXT d) TEMPT.TXT 8. What is the use of the CD command in DOS? a) Create a directory b) Change the device name c) Create the root directory d) Change the path of the current directory 9. What is the maximum number of characters allowed as a filename in DOS? a) 3 characters b) 6 characters c) 7 characters d) 8 characters 10. Which one of the following is the wildcard character? a) * and / b) ? and / c) * and ? d) ? and @ 11. Which DOS command is used to create a text file? a) List b) Type c) Copycon d) Dir 12. Which one of the following is the directory separator in Linux? a) / b) \ c) // d) \\ 13. Which character is used to represent a range of values in Linux? a) ( ) b) [ ] c) { } d) < > 14. Which character redirects the output of one command to another in Linux? a) . dot b) | pipe c) : colon d) ; semicolon 15. Which Linux command lists the content of all subdirectories? a) ls ~ b) ls * / c) ls / d) ls ../ 16. Which Linux command lists the contents of the parent directory? a) ls ~ b) ls */ c) ls / d) ls .. / 17. What is the use of the 'who' command in Linux? a) login user b) logout user c) login password d) logout password 18. Which command is used to hide the file? a) attrib -h filename b) attrib +h filename c) attrib /h filename d) attrib \h filename 19. Which command is used to release the read-only permission? a) attrib -r filename b) attrib +r filename c) attrib /r filename d) attrib \r filename 20. Write the Linux command to remove all permissions for the user and group on the directory 'software'? a) chmod ug-rwx software b) chmod ug-a software c) chmod ug-A software d) chmod ug-Rwx software 21. Which DOS command is used to display system time? a) Now b) TIME c) SYSTEM d) SYSTEMTIME 22. What is the result of the DOS command PROMPT $D$G? a) Prompt > b) D : > c) Current date > d) Current time > 23. Which DOS command is used to list all COM files in the D drive? a) DIR D:\com b) DIR D:\com.* c) DIR D:\*.com d) DIR D:\*com* 24. Which Linux command is used to sort the text file 'network' in descending order? a) Sort /r network b) Sort -r network c) Sort +r network d) Sort \r network 25. Which Linux command sets the permission 'x' to the user, 'rw' to others, and 'rwx' to the group for the file 'launcher'? a) chmod 176 launcher b) chmod 671 launcher c) chmod 167 launcher d) chmod 166 launcher Submit Tags NIMI COPA MOCK TESTNIMI TRADE THEORY MOCK TEST Facebook Twitter Whatsapp Newer Older