{"id":151,"date":"2020-04-03T09:15:11","date_gmt":"2020-04-03T09:15:11","guid":{"rendered":"https:\/\/temp.ashkerala.com\/?p=151"},"modified":"2020-04-03T09:15:11","modified_gmt":"2020-04-03T09:15:11","slug":"operating-systems-mcq-2","status":"publish","type":"post","link":"https:\/\/temp.ashkerala.com\/?p=151","title":{"rendered":"Operating Systems MCQ -2"},"content":{"rendered":"<p>11.\u00a0\u00a0\u00a0 Which command displays all the files having the same name but different extensions?<\/p>\n<p> a.\u00a0\u00a0\u00a0 Dir filename.*<\/p>\n<p> b.\u00a0\u00a0\u00a0 Dir filename.ext<\/p>\n<p> c.\u00a0\u00a0\u00a0 Dir *.sys<\/p>\n<p> d.\u00a0\u00a0\u00a0 Dir *.ext<br \/> \u00a0<\/p>\n<p> Correct Answer: a. Dir filename.*<\/p>\n<p> Explanation: * is a wild card character that stands for all any character. When you specify filename.*, it meant filename should be specified one but extension can be any. Second option lists only the specified filename.exe and third and fourth commands lists all files with sys extension and specified extension.<\/p>\n<p> \u00a0<\/p>\n<p> 12.\u00a0\u00a0\u00a0 Which command displays only file and directory names without size, date and time information?<br \/> a.\u00a0\u00a0\u00a0 Dir\/w<\/p>\n<p> b.\u00a0\u00a0\u00a0 Dir a:<\/p>\n<p> c.\u00a0\u00a0\u00a0 Dir \/b<\/p>\n<p> d.\u00a0\u00a0\u00a0 Dir \/s<br \/> \u00a0<br \/> Correct Answer: dir\/b<\/p>\n<p> Explanation: dir\/b command barely lists the names of files and directories without any other information like size, date, time etc.<br \/> \u00a0<\/p>\n<p> 13.\u00a0\u00a0\u00a0 Which command displays comma for thousand separating on file size while listing?<br \/> a.\u00a0\u00a0\u00a0 Dir\/w<br \/> b.\u00a0\u00a0\u00a0 Dir\/s<br \/> c.\u00a0\u00a0\u00a0 Dir\/b<br \/> d.\u00a0\u00a0\u00a0 Dir\/c<br \/> \u00a0<\/p>\n<p> Correct Answer: d. Dir\/c<\/p>\n<p> Explanation: Using comma for separating thousand in file size is by default on. You can use dir\/-c to remove comma from the listing. \/C stands for comma.<br \/> \u00a0<\/p>\n<p> 14.\u00a0\u00a0\u00a0 Which command is used to display all the files having the (.exe) extension but different filename?<\/p>\n<p> a.\u00a0\u00a0\u00a0 Dir filename.*<\/p>\n<p> b.\u00a0\u00a0\u00a0 Dir filename.ext<\/p>\n<p> c.\u00a0\u00a0\u00a0 Dir *.sys<\/p>\n<p> d.\u00a0\u00a0\u00a0 Dir *.ext<br \/> \u00a0<\/p>\n<p> Correct Answer: d. Dir *.ext<\/p>\n<p> Explanation: First two options are obviously wrong since specifying filename will list for that filename only. Since we need to list only with .ext extension fourth option is correct. Third option displays all files with sys extension.<br \/> \u00a0<\/p>\n<p> 15.\u00a0\u00a0\u00a0 Which command should be used to display all files within the specified subordinate directory of the subdirectory?<\/p>\n<p> a.\u00a0\u00a0\u00a0 Dir \\ pathname<\/p>\n<p> b.\u00a0\u00a0\u00a0 Dir \\ pathname\\pathname<\/p>\n<p> c.\u00a0\u00a0\u00a0 Dir \/ ch<\/p>\n<p> d.\u00a0\u00a0\u00a0 Dir \\pathname\\filename<br \/> \u00a0<br \/> Correct Answer: b. Dir \\pathname\\pathname<\/p>\n<p> Explanation: The subordinate directory of subdirectory can be accessed through the path sequence pathname\\pathname and dir command lists the files of that location.<br \/> \u00a0<\/p>\n<p> 16.\u00a0\u00a0\u00a0 Which command displays the directory list including files in tree structure?<br \/> a.\u00a0\u00a0\u00a0 Dir\/s\/f<br \/> b.\u00a0\u00a0\u00a0 Tree\/f<br \/> c.\u00a0\u00a0\u00a0 Tree\/s\/f<br \/> d.\u00a0\u00a0\u00a0 Dir\/f<br \/> \u00a0<\/p>\n<p> Correct Answer: b. Tree\/f<\/p>\n<p> Explanation: Tree command lists the directory structure in tree structure and \/f switch of tree command includes the filenames in the structure.<br \/> \u00a0<\/p>\n<p> 17.\u00a0\u00a0\u00a0 Which command will be used to display a file within the specified directory of pathname?<\/p>\n<p> a.\u00a0\u00a0\u00a0 Dir \\pathname<\/p>\n<p> b.\u00a0\u00a0\u00a0 Dir \\pathname\\pathname<br \/> c.\u00a0\u00a0\u00a0 Dir\/ch<\/p>\n<p> d.\u00a0\u00a0\u00a0 Dir \\pathname\\filename<br \/> \u00a0<\/p>\n<p> Correct Answer: d. Dir \\pathname\\filename<\/p>\n<p> Explanation: Displaying a file which is inside specified directory can be done by specifying a directory name \\ and filename.<br \/> \u00a0<\/p>\n<p> 18.\u00a0\u00a0\u00a0 Which command creates a directory or subdirectory?<br \/> a.\u00a0\u00a0\u00a0 Dir<br \/> b.\u00a0\u00a0\u00a0 Mkdir<br \/> c.\u00a0\u00a0\u00a0 Md<\/p>\n<p> d.\u00a0\u00a0\u00a0 Both b and c<br \/> \u00a0<\/p>\n<p> Correct Answer: d. Both b and c<\/p>\n<p> Explanation: MK command and MKDIR both commands are equivalent and can be used to create subdirectories. Dir only lists directory but can\u0393\u00c7\u00d6t create.<br \/> \u00a0<\/p>\n<p> 19.\u00a0\u00a0\u00a0 Which command displays current directory name or change from one to another?<br \/> a.\u00a0\u00a0\u00a0 Chdir<br \/> b.\u00a0\u00a0\u00a0 Cd<br \/> c.\u00a0\u00a0\u00a0 Mkdir<\/p>\n<p> d.\u00a0\u00a0\u00a0 Both a and b<br \/> \u00a0<\/p>\n<p> Correct Answer: d. Both a and b<\/p>\n<p> Explanation: CD and CHDIR commands are equivalent and both used to change current working directory to another one. MKDIR creates a new directory and can\u0393\u00c7\u00d6t be used to change.<br \/> \u00a0<\/p>\n<p> 20.Which command is used to delete the directory that is empty?<br \/> a.\u00a0\u00a0\u00a0 Del *.*<br \/> b.\u00a0\u00a0\u00a0 RD<br \/> c.\u00a0\u00a0\u00a0 Erase<br \/> d.\u00a0\u00a0\u00a0 MD<br \/> \u00a0<br \/> Correct Answer: b. RD<\/p>\n<p> Explanation: RD command or RMDIR commands can be used to remove a directory if it is empty. Del command and Erase commands are used to delete files not directories. MD creates a new directory and can\u0393\u00c7\u00d6t remove directory.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>11.\u00a0\u00a0\u00a0 Which command displays all the files having the same name but different extensions? a.\u00a0\u00a0\u00a0 Dir filename.* b.\u00a0\u00a0\u00a0 Dir filename.ext c.\u00a0\u00a0\u00a0 Dir *.sys d.\u00a0\u00a0\u00a0 Dir *.ext \u00a0 Correct Answer: a. Dir filename.* Explanation: * is a wild card character that stands for all any character. When you specify filename.*, it meant filename should be specified&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"categories":[14],"tags":[],"class_list":["post-151","post","type-post","status-publish","format-standard","hentry","category-operating-systems"],"_links":{"self":[{"href":"https:\/\/temp.ashkerala.com\/index.php?rest_route=\/wp\/v2\/posts\/151","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/temp.ashkerala.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/temp.ashkerala.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/temp.ashkerala.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/temp.ashkerala.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=151"}],"version-history":[{"count":0,"href":"https:\/\/temp.ashkerala.com\/index.php?rest_route=\/wp\/v2\/posts\/151\/revisions"}],"wp:attachment":[{"href":"https:\/\/temp.ashkerala.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=151"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/temp.ashkerala.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=151"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/temp.ashkerala.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=151"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}