Ty Linux MCQ

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 8

Smt Chandibai Himathmal Mansukhani College 2019-20

T.Y.B.Sc Computer Science Semester-V


USCS502:Linux Server Administration
MCQ’s
Managing Software
1. What does GNU stand for? 6. Which command removes a
A. GNU's not Unix package named editor-
B. Greek Needed Unix 2.0.i386.rpm?
C. General Unix A. rpm -i editor-
D. General Noble Unix 2.0.i386.rpm
ANSWER: A B. rpm -e editor-
2.0.i386.rpm
2. Which script generates a C. dpkg -install editor-
Makefile for your specific 2.0.i386.rpm
system? D. apt-get install editor-
A. ./gen 2.0.i386.rpm
B. ./genmake ANSWER: B
C. ./configure
7. Which command will tell you
D. ./config which package owns the file
ANSWER: C
/etc/printcap?
A. dpkg -F /etc/printcap
3. Which packaging system does B. rpm -f /etc/printcap
Red Hat use? C. who /etc/printcap
A. RPM D. rpm -qf /etc/printcap
B. Deb ANSWER: D
C. Tgz
D. Rhp 8. How to install RPM in linux ?
ANSWER: A A. rpm –ivh packagename
B. rpm -e packagename
4. Which command(s) is/are used to C. rpm -Uvh packagename
remove an RPM package? D. None of these
A. rpm –uninstall ANSWER: A
B. rpm –remove
9. How to remove a RPM ?
C. rpm -e A. rpm –ivh packagename
D. Both rpm –uninstall and B. rpm -e packagename
rpm -e C. rpm -Uvh packagename
ANSWER: D D. None of these
ANSWER: B
5. Which command would you use
to see if a package is already 10. How to Upgrade a RPM ?
installed? A. rpm –ivh packagename
A. rpm -i packagename B. rpm -e packagename
B. rpm -qa packagename C. rpm -Uvh packagename
C. rpm -qv packagename D. None of these
D. rpm -ql packagename ANSWER: C
ANSWER: B
11. RPM

1
Smt Chandibai Himathmal Mansukhani College 2019-20

A. stands for Red Hat user, to your system?


Package Manager A. Using useradd
B. is used to install, B. Using adduser
uninstall, and manage C. Using linuxconf
packages D. All of these
C. is used to keep track of ANSWER: D
the users
D. assigns a dynamic IP 17. User‟s Primary Group id is listed
address in which file, at the time of
ANSWER: A creation of the user (On a
standard Unix system)
12. Fedora Linux uses _____ A. /etc/passwd
packages. B. /etc/groups
A. Deb C. /etc/login
B. Ebuild D. /etc/profile
C. deb_src ANSWER: A
D. RPM
ANSWER: D 18. The encrypted password of a user
is stored in
13. What command is used to query A. /etc/shadow
for a specific package with B. /etc/enpasswwd
RPM? C. /etc/.passwd
A. rpm -q D. /etc/passwd
B. rpm -a ANSWER: A
C. rpm -d
19. A user can change the default
D. rpm -1 log-in shell using
ANSWER: A
A. chmod
B. chsh
14. What script is run for setting bash
C. rmsh
global defaults for all users?
D. tchsh
A. /etc/.profile ANSWER: B
B. /etc/.bashrc
C. /etc/.log 20. The login shell is
D. /etc/profile A. The shell program that
ANSWER: D runs when the user logs in
B. The shell program that
15. Which of the following is a valid authenticates the user
format for mounting a CD-ROM while logging in
drive? C. Common shell for all the
A. mount -t iso9660 users that belong to the
/dev/cdrom / mnt/cdrom same group
B. mount /dev/cdrom D. None of the mentioned
C. mount /mnt/cdrom ANSWER: A
D. All of these
ANSWER: D 21. Which of the following command
can be used to change the user
Managing users and groups password?
16. How can you add Amit, a new A. user can‟t change the
password

2
Smt Chandibai Himathmal Mansukhani College 2019-20

B. passwd ANSWER: B
C. passd
D. pwd Booting and Shutting Down
ANSWER: B 27. What does GRUB stand for?
A. Grand Unified
22. Which of the following files need Bootloader
to be referred for user‟s B. Grand Unification
secondary group? Bootloader
A. /etc/passwd C. Great Unique Bootloader
B. /etc/shadow D. Gum Removal Under
C. /etc/group Boot
D. /etc/profile ANSWER: A
ANSWER: C
28. Which one of the following
23. Files located in which file are bootloader is not used by linux?
copied to users‟ home A. GRUB
directories? B. LILO
A. /etc/group C. NTLDR
B. /etc/passwd D. None of the mentioned
C. /etc/skel ANSWER: C
D. /etc/user
ANSWER: C 29. Where are system startup scripts
stored on a Red Hat–based
24. Which option with the useradd system?
command specifies that the home A. /etc
directory should be created if it B. /etc/rc.d/rc3.d
doesn‟t already exist? C. /etc/init.d
A. -h D. /etc/rc.d/init.d
B. -m ANSWER: D
C. -c
D. -d 30. Which runlevel allows full
ANSWER: B multiuser mode but with no
graphical login manager?
25. Which option is used with A. Runlevel 1
userdel to remove a user‟s home B. Runlevel 2
directory as the account is C. Runlevel 3
removed? D. Runlevel 0
A. –d ANSWER: C
B. –h
C. –r 31. Single User Mode equivalent to
D. -e _____.
ANSWER: C A. run level 4
B. run level 1
26. Which option with usermod is C. run level 3
used to change a user‟s default D. run level 2
shell? E. run level 0
A. -d ANSWER: B
B. -s
C. -b 32. The behavior of the system for
D. -q each “runlevel” is available in the

3
Smt Chandibai Himathmal Mansukhani College 2019-20

_____ file. 38. What is GNOME ?


A. /etc/mtab A. A computer software
B. /etc/inittab system and network
C. /etc/hosts protocol that provides a
D. /etc/rlevel basis for graphical user
E. /etc/crontab interfaces (GUIs) and rich
ANSWER: B input device capability for
networked computers.
33. The run level in a system can be B. A desktop environment
configured in the file _____. and graphical user
A. /bin/runlev interface that runs on top
B. /sys/rinit of a computer operating
C. /bin/rlev system.
D. /etc/inittab C. A linux distribution
E. /etc/syslev D. All of these
ANSWER: D ANSWER: B

34. Which file determines what will 39. What program is launched by the
be run at each runlevel? kernel at system start up first?
A. /etc/init/runlevels A. /sbin/start
B. /etc/levels/fstab B. /boot
C. /etc/fstab C. /sbin/initial
D. /etc/inittab D. /sbin/init
ANSWER: D ANSWER: D

35. Which command displays the 40. LILO…


settings for all services at all A. is a boot loader that can
runlevels? boot Linux
A. Runlevel --settings B. stands for “Lannister-In-
B. Status --l Lannister-Out”
C. Services --runlevels C. is only used by
D. chkconfig –list Slackware
ANSWER: D D. stands for “Light Loader”
E. is a type of Linux Distro
36. The process of starting up a ANSWER: A
computer is known as
A. Boot Loading 41. LVM is…
B. Boot Record A. Logical Volume
C. Boot Strapping Manager
D. Booting B. Linux Video Manager
ANSWER: C C. Linux Volume Manager
D. Light Video Manager
37. What is the full path for grub's ANSWER: A
configuration file
A. /boot/grub/lsof.conf 42. LILO is _____.
B. /boot/grub/menu.lst A. used for Listing the
C. /etc/grub/grub.conf boot Loaders
D. /etc/grub/grub.txt B. a boot loader
ANSWER: C C. lists all the devices
D. lists all the lower

4
Smt Chandibai Himathmal Mansukhani College 2019-20

memory areas D. A LE can map to more


E. a type of Linux than one PE
ANSWER: B ANSWER: A

FileSystem 47. Which of the following is not a


43. What command do you use to feature of LVM
create Linux file systems? A. Independent of disk
A. fdisk location
B. mkfs B. Concatenation and
C. fsck striping of storage
D. mount systems
ANSWER: B C. Protection against disk
failures
44. A “Logical Volume Manager” D. Snapshot capability
helps in ANSWER: C
A. Virtualizing storage
B. provide direct access to 48. The fsck utility checks a file
the underlying storage system using how many passes?
C. Manage disk space A. Three
efficiently without having B. Four
to know the actual C. Five
hardware details D. Six
D. Both storage ANSWER: C
virtualization and
efficient disk space 49. Defragmentation is the process of
management A. physically reorganizing
ANSWER: D the contents of the disk to
store the pieces of each
45. Which of the following are true. file close together and
Logical Volumes _____ contiguously
A. Can span across multiple B. Create extra space in
volume groups filesystem
B. Can span across multiple C. Resizing the filesystem
physical volumes D. None of the mentioned
C. Can be constructed only ANSWER: A
using a single physical
disk 50. Journaling is preferred for
D. None of the mentioned A. Faster file system
ANSWER: B recovery
B. Faster write operation
46. A logical Extent(LE) and C. Storing logs
Physical extent(PE) are related as D. Storing metadata
follows ANSWER: A
A. PE resides on a disk,
whereas LE resides on a 51. The Superblock is required for
logical volume A. Description of the basic
B. LE is larger in size than a size and shape of this file
PE system
C. LE‟s are unique whereas B. This is the inode number
PE‟s are not of the first inode in the

5
Smt Chandibai Himathmal Mansukhani College 2019-20

file system A. ext2


C. The number of free B. ext3
blocks in the file system C. ext4
D. All of the mentioned D. None of the mentioned
ANSWER: D ANSWER: A

52. Which file system has journaling 58. Which directory contains all the
capability? files needed to boot the Linux
A. ext2 system?
B. ext4 A. /dev
C. Isofs B. /boot
D. Procfs C. /bin
ANSWER: B D. /etc
ANSWER: B
53. An “Inode” represents
A. Buffer 59. „mkfs‟ is used to:
B. Data A. create a filesystem on a
C. Files & Directories device (such as a hard
D. None of the mentioned disk partition) format a
ANSWER: C floppy disk
B. create a fast changing
54. Examples of Journaling section on a hard disk
filesystem C. create a named pipe
A. ext2 (fifo) on a device
B. ext3 D. All of these
C. UFS ANSWER: A
D. JFS
ANSWER: B 60. Which parameter allows syslog
to receive network messages?
55. To format a device as an ext3 A. -n
(journaled) Linux extended B. -r
filesystem, you use the C. -m
commands: D. -s
A. mkfs.ext3 ANSWER: B
B. all of these
C. mkfs.ext2 -j 61. The location of system logs can
D. None of the mentioned be specified in the file
ANSWER: B /var/log/syslog.conf file.
A. True
56. mount –a will load all B. False
filesystems listed in: ANSWER: B
A. /etc/mtab
B. /etc/filesystems 62. Core files are viewed using
C. /etc/fstab which of the following?
D. /etc/fs.conf A. Coreview
ANSWER: C B. Debug
C. Gbd
57. Which one of the following linux D. dumpview
file system does not support ANSWER: C
journaling feature?

6
Smt Chandibai Himathmal Mansukhani College 2019-20

TCP/IP hardware address of a local


device?
63. What layer in the TCP/IP stack is A. RARP
equivalent to the Transport layer B. ARP
of the OSI model? C. IP
A. Application D. ICMP
B. Host-to-Host ANSWER: B
C. Internet
D. Network Access 69. TCP is a ………. protocol.
ANSWER: A A. stream-oriented
B. message-oriented
64. In OSI network architecture, the C. block-oriented
dialogue control and token D. packet-oriented
management are responsible of ANSWER: A
A. data link layer
B. transport layer 70. TCP groups a number of bytes
C. network layer together into a packet called a ….
D. session layer A. user datagram
ANSWER: D B. segment
C. datagram
65. In OSI network architecture, the D. Packet
routing is performed by ANSWER: B
A. session layer
B. transport layer 71. TCP is a(n) ……….. transport
C. data link layer protocol.
D. network layer A. protocol delivery
ANSWER: D B. reliable
C. best-effort delivery
66. Layer one of the OSI model is D. effortless delivery
A. network layer ANSWER: B
B. transport layer
C. link layer 72. UDP packets are called …….
D. physical layer A. user datagrams
ANSWER: D B. segments
C. frames
67. Which of the following are layers D. Packets
in the TCP/IP model? ANSWER: A
1. Application
2. Session 73. ………. is responsible for
3. Transport converting the higher level
4. Internet protocol address (IP addresses) to
5. Data Link physical network addresses.
6. Physical A. Internet Protocol(IP)
A. 1 and 2 B. Internet Control Message
B. 1, 3 and 4 Protocol(ICMP)
C. 2, 3 and 5 C. Address Resolution
D. 3, 4 and 5 Protocol(ARP)
ANSWER: B D. Bootstrap
Protocol(BOOTP)
68. What protocol is used to find the ANSWER: C

7
Smt Chandibai Himathmal Mansukhani College 2019-20

C. IP
74. UDP and TCP are both ……… D. ARP
layer protocols. ANSWER: B
A. data link
B. network 76. Which of the following functions
C. transport does UDP perform?
D. Interface A. Process-to-process
ANSWER: C communication
B. Host-to-host
75. ……….. is a process-to-process communication
protocol that adds only port C. End-to-end reliable data
addresses, checksum error delivery
control, and length information to D. Interface-to-interface
the data from upper layer. communication.
A. TCP ANSWER: A
B. UDP

You might also like