MCQ on Linux Operating System with Answers pdf for MCA, BCA, and other IT Exams. Also helpful for Preparation of Interviews.
It is important to gain a better understanding of Linux systems in order to stay competitive in today’s technology-driven world. With this article, you can get the opportunity to test your knowledge and hone your skills related to Linux operating systems.
MCQ on Linux Operating System with Answers
1) The ___ command changes the password for the current user.
a) Pwd
b) Passwd
c) Password
d) None of the above
Ans: B
2) The ___ command is used to see the help for the commands.
a) Cat
b) Tac
c) File
d) Man
Ans: D
3) The default KDE fikle manager is
a) GNome
b) Konqueror
c) Louis
d) Nautilus
Ans: B
4) The directory that contains programs for use by the system and system administrator is
a) /sbin
b) /bin
c) /dev
d) /lib
Ans: A
5) The command to rename a file is
a) Mv
b) Rename
c) Rm
d) Cp
Ans: A
6) The command to search for the files that are bigger than 5MB in the current working directory is
a) Find size + 5000K
b) Find + 5000K
c) Find s + 500K
d) None of the above
Ans: A
7) The command used to give all permissions to users and read permission to others and group is
a) Chmod 400 file
b) Chmod 744 file
c) Chmod 713 file
d) Chmod 722 file
Ans: B
8) The shell/s available with the Linux is-
a) BASH
b) CSH
c) KSH
d) All of the above
Ans: D
9) The system variable PSI stores
a) Shell name
b) Our OS type
c) Our home directory
d) Our Prompt setting
Ans: D
10) The ___ option with echo command is used to enable interpretation of backlash escapede
a) -e
b) -a
c) -n
d) -t
Ans: A
11) The symbol used for output redirection is
a) <
b) >
c) #
d) $
Ans: B
12) One of the most common commands used with pipes is
a) Grep
b) Is
c) Cat
d) Mkcnr
Ans: A
13) Linux is developed by
a) Linux Tanembaum
b) Andy Tannenbaum
c) Linus Trovlads
d) Andy Torvalds
Ans: C
14) LVM stands for
a) Logical Volume Management
b) Logic Virtual Memory
c) Logical Virtual Management
d) None of the above
Ans: A
15) Each hard disk can contain ___ true partitions.
a) One
b) Two
c) Three
d) Four
Ans: D
16) Disk Parameter block is also called as
a) Media parameter block
b) Volume parameter block
c) Volume Boot Code
d) Media Boot Code
Ans: A
17) The common boot manager which enables multi-booting for many operating systems is –
a) CRUB
b) MRUB
c) GRUB
d) DRUB
Ans: C
18) To install windows and Linux on your computer.
a) Install windows first and then install Linux
b) Install Linux First and then install Windows
c) Not Possible
d) None of the above
Ans: A
19) The ___ window is a control panel for the Linux operating system.
a) System window
b) Xterm
c) Tool Window
d) None of the above
Ans: B
20) The current working directory is represented by
a) ~
b) #
c) $
d) >
Ans: A
21) The quotes that are used to evaluate expressions are-
a) double quotes
b) Single Quotes
c) Back Quote
d) None of the above
Ans: C
22) The character used to redirect the input is-
a) >
b) <
c) :wq
d) :n
Ans: B
23) The variable used to exit without saving the contents in the vi editor is-
a) :q
b) :q!
c) :wq
d) :n
Ans: B
24) The variable used to store the size of the shell history in the number of lines is
a) SIZEHIST
b) HISTORY
c) HISTSIZE
d) None of the above
Ans: C
25) To get the original prompt back, the command issued is
a) PS1 = “->”
b) PS1 = ‘#’
c) PS1 = ‘$’
d) PS1 = ‘~’
Ans: A
26) MBR stands for
a) Master block record
b) Master boot record
c) Man block record
d) Man boot record
Ans: B
27) Which one of the following is/are Linux processes?
a) Interactive
b) Automated
c) Daemons
d) All of the above
Ans: D
28) The process which might finish while the parent does not wait for the completion of the process is called ___.
a) Zomble process
b) Zimble process
c) Zamb process
d) Ombile process
Ans: A
29) The ___ command writes a message to all the connected users.
a) Wall
b) Write
c) Allow
d) None of the above
Ans: A
30) The run levels for init are available in ___.
a) /etc/init
b) /etc/inittab
c) /etc/initable
d) None of the above
Ans: B
31) Vi(m) stands for-
a) Vi mode
b) Vi Improved
c) Visual mode
d) None of the above
Ans: B
32) The location of the definition file for input devices such as a keyboard is defined in ___ variable.
a) INPUTRC
b) INPUTRM
c) INPUTCR
d) INPUTKY
Ans: A
33) Which tool from the KDE suite eases the audio-CD creation.
a) Kdeaudiocreator
b) Kaudiocreator
c) Kdeaudiodraftor
d) None of the above
Ans: A
34) The common text tool/s available for adjusting audio is/are-
a) Aumix
b) Alsamixer
c) Both A & B
d) None of the above
Ans: C
35) The standard mount point for filer systems is
a) /net
b) /mnt
c) /opt
d) /rem
Ans: A
36) To stop a running process in the foreground the command given is ___
a) Ctrl + C
b) Ctrl + X
c) Ctrl + D
d) Ctrl + Z
Ans: A
37) The command to put a job back in the foreground is
a) Bg
b) Fg
c) Foreground
d) Backfg
Ans: B
38) The effective group owner is usually the exception when ___ access mode has been applied to the file.
a) SUID
b) EGID
c) RGID
d) SGID
Ans: D
39) The ___ file manager provides a searchable index of the man and info pages.
a) Nautilus
b) Nautilus
c) Nauti
d) Oqueror
Ans: A
40) The ___ color shows broken links
a) Blue
b) Red
c) Cyan
d) Flashing Red
Ans: D
Java Programming MCQ Questions with Answers
41) The numbers used for reading, write, and execute permissions are-
a) 4, 2, 1
b) 2, 1, 4
c) 2, 4, 1
d) 4, 1, 2
Ans: A
42) Which of the following are system variables.
a) SHELL
b) PWD
c) LINES
d) All of the above
Ans: D
43) Every X server has a display name in the form of ___.
a) Hostname: screen number: display number
b) Hostname: display number: screen number
c) Hostname: display name: screen name
d) None of the above
Ans: B
44) To check whether a string is NULL and does exist, the operator used is
a) -e string 1
b) -n string 1
c) -z string 1
d) -f string 1
Ans: C
45) The shortcomings of the Minix file system are
a) 64MB partition size limit
b) Short filenames
c) A single timestamp
d) All of the above
Ans: D
46) The color specified for directories and links in the /etc/DIR_ colors are
a) Blue and Red
b) Blue and Cyan
c) Pink and Cyan
d) Green and flashing red
Ans: B
47) The command used for filtering input lines and returning certain patterns to the output is-
a) Find
b) Filter
c) Grep
d) Locate
Ans: B
48) To display all the lines containing the word “desktop” of the file applist. Txt, the command used is
a) Cat applist.txt │ grep desktop
b) Is applist.txt │ grep desktop?
c) Grep desktop │ cat.applist.txt
d) Grep desktop │ is applist.txt
Ans: B
49) Advantages of Linux are –
i) it is freely downable.
ii) It is fast scalable, stable, and robust.
iii) Linux requires large space (500 MB or more)
iv) It support full multitasking
a) i, ii, iii
b) ii, iii, iv
c) i, ii, iv
d) All of the above
Ans: C
50) The information present in the Inode consists of-
i) owner and group owner of the file.
ii) Number of links to the file.
iii) Permission on the file
iv) Number of characters in a file
a) i, ii, iii
b) ii, iii, iv
c) i, ii, iv
d) All of the above
Ans: C
Conclusion
The Linux operating system is a powerful, reliable, and secure system for anyone looking to take advantage of open source software. Not only does it offer an unparalleled level of freedom, but its vast array of applications makes it easy for users to find what they need.
Thanks for reading the post on MCQ on Linux Operating System with Answers pdf, if you like the article please share it on social media.