Dos & Linux Operating System MCQ.
Dos & Linux Operating System MCQ.
28
COPA - DOS & Linux operating system
Choose the correct answer
1 The full form of DOS is 12 In DOS, C:ACOPA>MDILAB is used to create a LAB
ADisk Operating Secure directory at...
B Disk Operating System A Cdrive B D drive
C ROOT $> D ROOT >> C lists the deleted files available to be recovered C II D ||
40 In DOS, file names have maximum of...
30 PROMPT $D$G gives A 3 characters B 6 characters D recovers files without prompting for confirmation 61 Which is the root directory in Linux?
B dd date > A*
A prompt > C 7 characters "D 8characters 50 The DOS command D:\COPA\DEL*. "deletes..
Ccurrent date > D current time> A deletes all files of a COPA directory C+ D/
41 In DOS, optional extension have maximum of.
31 Which one of the following is a corect DOS command? B deletes all doc files of a COPA directory 62 Which of the folowing is super user's home directory
A 3 characters B 6 characters in Linux?
A DIR:P B DIR-p C deletes all exe files of a COPA directory
C 7 characters D 8 characters A ib B bin
C DIRP D DIRP D deletes all text files of a COPA directory
32 Which DOS command is used to list all .com file in D
42 Which of the following is a valid DOS filename? C Iroot D /sbin
51 The first piece of software that the computer executes
dive? A COPALtxt B [Link] when it is turned on is... 63 In Linux, ? represents ...
A DIRD:\COM DIR D:ACOM. C [Link] D COPA [Link] A microsoft word B micrOsoft access A no character B all characters
C DIRD:1'.COM D DIR D:/COM 43 Which command is used to copy a file C operating system D application software C two characters D single character
to anouio
33 Which DOS command is used to list five letter name location? 52 Which of the following allocates the execution of CPU 64 In Linux, which character is used to represent a range
to a number of different tasks in Linux? w ofvalues?
files starting with letter F? A COPY
B COPY FILE
A DIRF* B DIR FIVE CFILE COPY A Task scheduler B Memory manager A ()
D COPY MORE
C DIRFIRST* D DIRF????.* C Network manager D Security manager D<>
IT& ITES: COPA (NSQF Level-4) IT &ITES: COPA (NsQF Level-4) Assignment for Exercise 1.5.21 -1.5.28 29
28
Assignment for Exercise 1.5.21 -1.5.28
command Is-
76 The Linux lists the
another
the output of one
commandis redirected
65 InLinux,command is done by the character
into
A sub directory
C home directory
B root directory e
D parent direcoN
conterts
dispiay first ten lines
B pipe 87 Which command is used make a new directory? 6 The Command which is used to
Adot
77 The Linux command, Is../lists of a file, unless otherwise stated is
D semicolon the A cd (directoryl
C colon
66 In LinuUx, which
acts as command separator?
A sub directory
C home directory
B root irectory
D parent directory
contents B rmdir directory
A cp
C lp filename D head flename
Bpipe C mkdir [option] directory
A dot: 97 Which cormmand is used to delver the last part ot fie7
78 The Linux command Is/ lists D mv(-f-] oldname newname
semicolon the
root contents
D
C colon A lp B cp
accessed and they are A sub directory B o
67 In Linux,
hardware devices are
C home directory D
direcory 88 Which command is usedto deletea directory? C tail D head
kept under ...directory
A letc B ldev
79 The Linux command cp is used to
parent director A cat
B pwd
98 The command, which is used to disolay a count of
lines, words and characters in a file
D erase 128 What command is used to assign executable per 139 To remove a directory which is not
A Linux and Unix B Gnome and KDE C delete Used
mission to the owner of the file named "letter"?
C Window and Unix D Unix and Windows commandis used to remove the
rmdir
direcor A chmod ugo + x letter
B chmod u + x letter
A mdir
C rm -f
B
D m
ndir
A tasks B applets C rd D C chmod u + w letter 140 To access a directory the minimum permission re
following command quired is
C functions D operations
120 Which of the can you D chmod g + x letter
109 If a menu system has an arow that is..
A an another point to an applet
count the number of
A lc
lines in
B
a file?
WC -| exeate 129 What command is used to compare the files?
A cmpr B Compare
Ar
Cx D
W
wX
32 IT& ITES: COPA (NSQF Level4) IT &ITES: COPA (NSQF Level-4) Assignment for Exercise 1.5.21 -1.5.28 33
Assignment for Exercise 1.5.21 -1.5.28
displays the line
option of "grep"
149 The command for changing the permission relating
to files is
157 Which
well?
B
number 168 What command is used with vi editor to moves the 178 What command is used to copy directory
in and out?
structures
A n Cursor one character to the left?
A 0s B head D -al B cp -p
Ah BI A copy
Cd
ca
C tail D chmod the file structure can be found in 9 C w Ccpio D cp
158 Printerin D :q
150 Read &Write permission means
A letc
B /html 169 What command is used with vi editor to moves the 179 What command is used to save the standard output
Cursor one line up ? in a file, as well as display t on the terrn1nal?
A 1 B6 D /dev
C ww
C 2 D5 159 Which command gives the first byte where Ah BI A tee B grep
151 Chmod 632 stuff means the file1 & file2 ?
difference is in Ck D j C cat D more
A Gives read &write& execute permission for owner B differ 170 What command is used with vi editor to moves the 180 Which of the foilowing is not a fiter command?
A diff
write &execute for group read pemission for othe. cursor one line down ? A sort BWC
D Compare
B Gives read & write permission for owner write & C cmp Ah
160 Which command ochanges atfile's grOup owner Cgrep D cat
execute for group Write permission for other. Ck D
181 Which command is used to assign executabie per
C Gives write permission for owner write &execute A chmod B chgrp 171 What command is used to activates text insert mode. mission to al! of the files named "report?
for group Write permission for other. C chown D chgrep inserting text immediately under current position of
the cursor?
A chmod ugo + x report
DGives read &write permission for owner read & ex 161 Which command in LINUX is used for description of
ecute for group Write permission for other. B chmod u+x report
any command ? Ah Bi
Ck
C chmod ugo + rw report
152 Command1 | command2 will? A help B man D j
D chmod ugo + r report
A Command1 and Command2 run together D desc 172 What command is used to deletes the character im
C detail
mediately under the cursor? 182 What command is used to count the number of files
B Output command2 will be input of command1
162 What commandis used with vi ieditor to delete aa single A CW B dw in the current directory by using pipes?
C Output command1 will be input of command2 character?
C dd D cb A ls ws - C B Is wc - w
D Command2 run after Command1 A X By
173 What command is used to switches text insert mode, C is | wc - I D 0s WC
153 'mkdir -m 444 any' will: Ca D Z
insertion of text immediately to the right of the cur 183 What command is used to count just the number of
A Create a read-write-execute directory named any 163 What command is used with vieditor to replace teyt sor? characters in a file?
from cursor to right A a Bi
B Createa read-only directory named any A WC -r B WC - w
A S B S Ck D j
CCreate a write-only directory named any C WC -C D WC -1
CR Dr 174 What command is used to deletes a single character
DCreate a read-write directory named any 184 Who has deveoped the Linux?
to the left of the cursor?
154 How do you make a list of all filenames in the /tmp 164 What sign is used to back up over typing errors in vi? A Bob Young B Mark Eving
A dd B dw
directory that the contain the text "user", regardless A ! B $ C Richard Stallman D Linus Tovaids
of case? C cb D CW
C # D @
A ls tmp : grep User B Is /tmp grep user 185 What command can be used to get infomation about
175 What command is used to deletes the entire line con yourseit?
C is tmp grep -i user D Grep user /tmp 165 What sign is used to erase or kill an entire line you taining the cursor, and the cursor moves to the next
have typed and start you are on a new line (but not line ? A whicth B DWd
155 What does permission 641 (octal) mean? display a new prompt)? A dd BD Cwho D who am i
A Owner can read and write; group can write; other A!
can read
CX D CW 186 What shell's wild-card is used to matcha singie char
C # acter?
D @ 176 What command is used with vi editor to guits without
B Owner can read and write: group can write and ex
1b6 What command is used with vieditor to save file and saving any changes? A [ijk] 8
ecute; other can read
remain in the editing mode? A w C? D *
C Owner can read, write and execute; group can read
A x
and write: other can read B g! C w D q! 187 What command is used to copy a file?
D Owner can read and write, group can read; other C:w D :g 177 What command is used with vi editor to append text A tar
can execute 167 What command is used with vi editor to moves e at end of the current line?
C cp D copy
156 To do unlimited precision arithmetic calculations from cursor one character to the right ? A I B i
188 Which of the foilowing command lists the last 10 ines
the shell, you use: A x of a file?
BI Ca D A
A Calculate B bc C :w
D :q A grep B tail
C cal D calc C head D cat
34 IT&ITEs: COPA(NSQF Level4) IT&ITES: cOPA (NSQFLevel-4) Assignment for Exercise 1.5.21-1.5.28 35
Assignment for Exercise 1.5.21 - 1.5.28
to separate more than o
symbol is usedcommand line2
189 What command is used to terminate a process? 198 Which same with the
command in the 208 Which command is used to change directory to the 216 Which comnand is uSed to copy a file wb
A kill B Break B name beginning with a'p'? same name from the prograns directory to the misc
A $ directory?
C Cancel D shutdown D A cd p B cdp?
C commands is used A copy programs/wb nisciwb
190 What command is used with vi editor to delete three the following to update C cd p D cd [p]
199 Which of modification times ofa file2
words? B cp prograrns/wb misc
access and 209 Which set option is used with vi editor to display line
B WC numbers on screen? Ctar prograrnsiwb misciwb
A 3$ B 3dw A grep
D cat A nm B nu D copya prograrns/wb b miSC/wb
C 3x D 3dd C touch
200 Which of thefollowing directoriess contain allthe Alias C ic D i
191 What command is used with file named 'letter' to re 217 Which of the foilowing commands can be used to get
his login directonw)
move the executatble permission from the user and created by a user, including 210 Which of the following set options is used with vi edi inforrmation atout all users who are currently logged
assign read permission to the group and others? B letc tor to ignore case while searching for patterns? into the systern?
A /tmp
A chmod go + x, u-x letter D /dev A ic B ai A which B wO
C Is -x D Is -F
36 It& ITES: COPA(NSQF Level4) Assignment for Exercise 1.5.21-1.5.28 it& iTES: cOPA (NSQF Level4) Assignment for Exercise 1.5.21 -1.5.28