Explore topic-wise MCQs in Testing Subject.

This section includes 657 Mcqs, each offering curated multiple-choice questions to sharpen your Testing Subject knowledge and support exam preparation. Choose a topic below to get started.

1.

What command is used to remove a file?

A. del
B. mv
C. rm
D. remove
Answer» D. remove
2.

Which of the following command lists the last 10 lines of a file?

A. grep
B. tail
C. head
D. cat
Answer» C. head
3.

Which of the following is not a part of default Red Hat Linux email system?

A. Pine
B. The MTA
C. The MUA
D. procmail
Answer» B. The MTA
4.

You just added a new user, kara, to the system. What group is kara added to by default?

A. root
B. kara
C. group
D. user
Answer» C. group
5.

NIS

A. is Network Information Service
B. is a simple directory service whose main purpose is to allow remote authentication of systems on local network systems
C. was formerly known as yellow pages
D. allows configuration-such as password and group files
Answer» B. is a simple directory service whose main purpose is to allow remote authentication of systems on local network systems
6.

What command is used to display a file contents in octal form?

A. oct
B. of
C. od
D. cd
Answer» D. cd
7.

In what file can you specify which users are not allowed to access a system via FTP?

A. /etc/ftpusers
B. /etc/hosts.deny
C. /etc/ftpaccess
D. All of the above
Answer» B. /etc/hosts.deny
8.

What package group will you select during the custom configuration to enable the machine to communicate with Windows clients?

A. SMB (Samba) Connectivity
B. IPX/NetWare Connectivity
C. Dial-up Workstation
D. All of the above
Answer» B. IPX/NetWare Connectivity
9.

LILO

A. stands for Linux loader
B. is the Linux boot loader
C. is a tool used to boot the Kernel on x86 hardware
D. All of the above
Answer» E.
10.

What command is used to display the top of the file?

A. grep
B. more
C. head
D. cat
Answer» D. cat
11.

What command is used to terminate a process?

A. kill
B. cancel
C. haltsys
D. shutdown
Answer» B. cancel
12.

Which of the following tool allows you to change your default X Window desktop?

A. switchdesk
B. intrc
C. xinitre
D. Xchange
Answer» B. intrc
13.

What TCP/IP protocol is used for transferring electronic mail messages from one machine to another?

A. FTP
B. SNMP
C. SMTP
D. RPC
Answer» D. RPC
14.

What command is used to assign executable permission to all of the files named "report"?

A. chmod ugo + x report
B. chmod u + x report
C. chmod ugo + rw report
D. chmod ugo + r report
Answer» B. chmod u + x report
15.

Who founded the FSF?

A. Linus Torvalds
B. Richard Stallman
C. Bob Young
D. All of the above
Answer» C. Bob Young
16.

The location for subdirectories for local programs and executables for user and administrative commands, is:

A. /usr
B. /tmp
C. /opt
D. /mnt
Answer» B. /tmp
17.

What command is used with vi editor to replace text from cursor to right

A. S
B. s
C. R
D. r
Answer» D. r
18.

What layer of OSI determines the interface of the system with the user?

A. Session
B. Data-link
C. Application
D. Network
Answer» D. Network
19.

What command do you use to create Linux file systems?

A. fdisk
B. mkfs
C. fsck
D. mount
Answer» C. fsck
20.

In which tcp_wrappers file can you specify to allow all connections from all hosts?

A. /etc/hosts.allow
B. /etc/hosts.deny
C. /etc/hosts
D. /etc/tcp.conf
Answer» B. /etc/hosts.deny
21.

What can he used to set up a firewall on a Linux system?

A. netstat
B. route
C. trace
D. ipchains
Answer» E.
22.

What port does squid listen, by default?

A. 4322
B. 2314
C. 7334
D. 3128
Answer» E.
23.

Where can system and mail logs be found in Ret Hat Linux?

A. /var/log
B. /etc/log
C. /mail
D. All of the above
Answer» B. /etc/log
24.

What command is used with vi editor to move back to the beginning of a word?

A. w
B. e
C. a
D. b
Answer» E.
25.

In which directory can you store system user default files used for creating user directories?

A. /usr/tmp
B. /etc/default
C. /etc/skel
D. /etc/users
Answer» D. /etc/users
26.

What command is used with file named 'letter' to remove the executable permission from the user and assign read permission to the group and others?

A. chmod go + x, u - x letter
B. chmod g - x, uo + r letter
C. chmod go + r, u + x letter
D. chmod u - x, go + r letter
Answer» E.
27.

Which of the following command is used to access an SMB share on a Linux system?

A. NFS
B. SMD
C. smbclient
D. smbserver
Answer» D. smbserver
28.

In OSI network architecture, the routing is performed by

A. session layer
B. transport layer
C. data link layer
D. network layer
Answer» E.
29.

What TCP/IP protocol is used for remote terminal connection service?

A. UDP
B. RARP
C. FTP
D. TELNET
Answer» E.
30.

What command is not used to list the files chap01, chap02 and chap04?

A. ls chap*
B. ls chap[124]
C. ls - x chap0[124]
D. ls chap0[124]
Answer» C. ls - x chap0[124]
31.

Which of the following command is used to see the services running in NFS server?

A. rpcinfo
B. serverinfo
C. NFSinfo
D. infserv
Answer» B. serverinfo
32.

Which command can force all buffers to disk?

A. save
B. sync
C. edbuff
D. flush
Answer» C. edbuff
33.

Which of the following is a valid format for mounting a CD-ROM drive?

A. mount -t iso9660 /dev/cdrom / mnt/cdrom
B. mount /dev/cdrom
C. mount /mnt/cdrom
D. All of the above
Answer» E.
34.

What command is used to list contents of directories?

A. tar
B. dir
C. lp
D. ls
Answer» E.
35.

What TCP/IP protocol is used for file transfer with minimal capability and minimal overhead?

A. TELNET
B. TFTP
C. FTP
D. RARP
Answer» C. FTP
36.

Which class network is used for a collection of a small number of networks with a large number of nodes?

A. Class A
B. Class B
C. Class C
D. All of the above
Answer» B. Class B
37.

Which of the following server is used with the BIND package?

A. httpd
B. shttp
C. dns
D. named
Answer» E.
38.

What is the full form of OSS in Linux?

A. Open System Software
B. Original Source Software
C. Open Source Software
D. Original System Server
Answer» D. Original System Server
39.

Which of the following is not a communication command?

A. grep
B. mail
C. mesg
D. write
Answer» B. mail
40.

What is the full form of GNU in Linux?

A. GNU's not Unix
B. Greek Needed Unix
C. General Unix
D. General Noble Unix
Answer» B. Greek Needed Unix
41.

What command do you use to delete a file?

A. rename
B. delete
C. rm
D. cp
Answer» D. cp
42.

Which of the following command is used to create a Linux installation boot floppy?

A. mkboot disk
B. bootfp disk
C. ww and rawwrite
D. dd and rawrite
Answer» E.
43.

What command is used to remove jobs from the print queue?

A. lpq
B. lpr
C. lprm
D. lpc
Answer» D. lpc
44.

The IP address are based on

A. 16-bit addresses
B. 32-bit addresses
C. 64-bit addresses
D. 8-bit addresses
Answer» C. 64-bit addresses
45.

What command can be used to get information about yourself?

A. which
B. pwd
C. i /4
D. who am i
Answer» E.
46.

What command is used to count just the number of lines contained in a file?

A. wc - r
B. wc - w
C. wc - c
D. wc - l
Answer» E.
47.

Which of the following NIS clients, finds and stores information about an NIS domain and server?

A. ypwhich
B. ypbind
C. ypcat
D. yppoll
Answer» C. ypcat
48.

Who founded the Linux Kernel?

A. Bill Gates
B. Ben Thomas
C. Richard Stallman
D. Linus Torvalds
Answer» E.
49.

What file specifies the order in which to use specified name services?

A. /etc/services
B. /etc/nsorder
C. /etc/nsswitch.conf
D. /etc/hosts
Answer» D. /etc/hosts
50.

What X-based tool is available for configuring the X Window system?

A. XConfigurator
B. XF86Setup
C. xf86config
D. All of the above
Answer» C. xf86config