Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 16

CENTURION 

UNIVERSITY OF TECHNOLOGY & MANAGEMENT

ANDHRA PRADESH

EXAMINATION CELL

SUBJECT NAME: (NAME IN FULL) Operating System Concepts

SUBJECT CODE: CUTM1032

MODULE NO: 9985464704


S. MCQ
NO
1 Which command is used to view contents
of a file
A Cat YES
B Cat with redirection

C Type

D Ls –l

2 Which option of list command displays file


protection attributes
A Ls –a
B Ls -l YES
C Ls -b
D All the above
3 Which command is used to print a file

A print

B ptr

C lpr YES

D none of the mentioned

4 Which command is used to create or


overwrite a file
A Cat > YES
B Cat >>
C Cat <
D Cat <<
5 Which command is used to append a file
A Cat >
B Cat >> YES
C Cat <
D Cat <<
6 Which option of ls command used to view
file inode number

A –l

B -o

C –a

D –i YES

7 Find / -name ‘*’ will

A List all files and directories recursively YES


starting from /

B List a file named * in /

C List all files in / directory

D List all files and directories in / directory

8 Command used to determine the path of


an executable file is

A which YES

B where

C wexec

D what

9 Command used to count number of


character in a file is

A grep
B wc YES

C count

D cut

10 Which of these commands could you use


to show one page of output at a time?

A less YES

B sed

C pause

D grep

11 Secure shell (SSH) network protocol is


used for __________

A secure data communication

B remote command-line login

C remote command execution

D all of the mentioned YES

12 SSH can be used in only _____________

A unix-like operating systems

B windows

C both unix-like and windows systems YES

D none of the mentioned

13 SSH uses ___________ to authenticate


the remote computer.

A public-key cryptography YES

B private-key cryptography

C any of public-key or private-key

D both public-key & private-key


14 Which standard TCP port is assigned for
contacting SSH servers?

A port 21

B port 22 YES

C port 23

D port 24

15 5. Which one of the following protocol


can be used for login to a shell on a
remote host except SSH?

A telnet

B rlogin

C both telnet and rlogin YES

D none of the mentioned

16 The command that is used to create a


directory
A md
B mkdir
C mdir YES
D none
17 The command that is used to change the
directory
A cd YES
B chdir
C Chkdir
D None
18 The command used to come out of one
directory is
A cd .. YES
B cd /
C cd \
D none
19 The command used to come out of any
number of directories to root directory is
A cd ..
B cd /
C cd \ YES
D none

20 Which one of the following authentication


method is used by SSH?

A public-key

B host based

C password

D all of the mentioned YES

21 Lpq command

A Forwards printer jobs to a spooling area


for subsequent printing as facilities
become available.
B displays the contents of a printer queue YES

C Lists the printers available

D none

22 Lpr command

A Forwards printer jobs to a spooling area YES


for subsequent printing as facilities
become available.
B displays the contents of a printer queue

C Lists the printers available


D none

23 Who command is

A a tool print information about users who YES


are currently logged in
B Prints the effective username of the
current user when invoked.
C Both A and B
D none

24 Who am I command is

A a tool print information about users who


are currently logged in

B Prints the effective username of the YES


current user when invoked.

C Both A and B

D none

25 Su stands for

A Super user YES

B Subuser

C Both A and B

D None

26 Sudo stands for


A Subuser

B Super user can do YES

C Both A and B

D None

27 Grep stands for

A Global regular expression printer YES

B Global routine expression protocol

C Group routine evaluation protocol

D Group regular evaluation printer

28 script command

A Used to execute scripts

B Used to write scripts


C starts recording everything printed on the YES
screen 

D none

29 Whichis command is

A Used to locate users

B Used to locate directory

C Used to find printers

D used to locate some special files of a YES


command like the binary file, source and
manual page files.

30 Locate command

A Finds the directories

B finds files in Linux using the file name YES

C Finds printers

D none
31 Free command is used to

A Frees the disks mounted and all the other


disks connected to it

B Free command which displays the total YES


amount of free space available along with
the amount of memory used and swap
memory in the system, and also the
buffers used by the kernel.
C Allocates space

D Deletes space

32 Uniq command is used to

A Find the duplicates files and display them

B Find the duplicate users

C Delete duplicate users

D delete repeated lines in a file YES

33 Echo command is used to


A Display the message on screen YES

B Duplicate the terminal

C Displays contents of a file

D none

34 To display contents of a file we use

A Cat filename YES

B Cat >filename

C Cat>>filename

D none

35 Touch command is used to

A Creates an empty file YES

B Creates a empty directory


C Both A and B

D none

36 Pipe command

A Sends output of a command as input to


another command

B is applied using ‘|’

C Added to a command

D All YES

37 Passwd command

A Displays username and password

B Changes password YES

C Changes username

D none
38 To display current path in which we are

A cd

B Show directory

C pwd YES

D none

39 Directories are separated by

A \

B / YES

C ./

D none

40 To get information on a command

A Man
B Info
C Help
D All YES
41 To copy files or directories we use
A Copy command
B Cp command YES
C Cpy command
D none
42 Top command is used to
A Display top of the stack
B Displays the linux processes YES
C Shows the recent commands types
D none
43 Kill command is used to
A Terminate a process YES
B Find the process and display its status
C Stop the system
D none
44 To print the first n lines we use the
following command
A Head filename
B Head -n num filename YES
C Head -n filename
D none
45 To display last lines of a file
A Head
B Tail YES
C Last
D none
46 Ps command is used to
A Display the list of processes that are
terminated
B writes the status of active processes YES
C Displays the list of users that are running
the processes
D none
47 The command used to compress in linux
A Tar
B Gzip
C Bzip
D All YES
48 xz command is used to
A Compress or decompress files YES
B Execute a file
C Delete files
D none
49 File command is used to
A Displays files in a directory
B Lists the files with new extensions
C determine the type of a file YES
D none
50 Sort command is used to
A Sort file contents
B Sort list obtained by ls command
C Sort can be applied using pipe
D All the above YES

You might also like