Computer Science - Linux MCQs Part 2
1. What command is used to save the standard output in a file, as well as display it on the terminal?
A.
tee
tee
B.
grep
grep
C.
cat
cat
D.
more
more
E.
None of the above
None of the above
Answer Option A
2. What command is used to count just the number of lines contained in a file?
A.
wc - r
wc - r
B.
wc - w
wc - w
C.
wc - c
wc - c
D.
wc - l
wc - l
E.
None of the above
None of the above
Answer Option D
3. In OSI network architecture, the routing is performed by
A.
session layer
session layer
B.
transport layer
transport layer
C.
data link layer
data link layer
D.
network layer
network layer
E.
None of the above
None of the above
Answer Option D
4. The 32-bit internet address 10000000 00001010 00000010 00011110 will be written in dotted decimal notation as
A.
128.10.2.30
128.10.2.30
B.
210.20.2.64
210.20.2.64
C.
164.100.9.61
164.100.9.61
D.
148.20.2.30
148.20.2.30
E.
None of the above
None of the above
Answer Option A
5. Which class network is used for a collection of a small number of networks with a large number of nodes?
A.
Class A
Class A
B.
Class B
Class B
C.
Class C
Class C
D.
All of the above
All of the above
E.
None of the above
None of the above
Answer Option A
6. What type of addressing format is used by Class A network.
A. Net.Net.Net.Node
B. Net.Net.Node.Node
C. Net.Node.Net.Node
D. Net.Node.Node.Node
E. None of the above
Answer Option D
7. What types of installations require a special boot disk?
A. NFS
B. FTP
C. PCMCIA
D. All of the above
E. None of the above
Answer Option D
8. RPM
A. stands for Red Hat Package Manager
B. is used to install, uninstall, and manage packages
C. is used to keep track of the users
D. assigns a dynamic IP address
E. None of the above
Answer Option A
9. What command is used to query for a specific package with RPM?
A. rpm -q
B. rpm -a
C. rpm -d
D. rpm -1
E. None of the above
Answer Option A
10. What script is run for setting bash global defaults for all users?
A. /etc/.profile
B. /etc/.bashrc
C. /etc/.log
D. /etc/profile
E. None of the above
Answer Option D
11. Who founded the Linux Kernel?
A. Bill Gates
B. Ben Thomas
C. Richard Stallman
D. Linus Torvalds
E. None of the above
Answer Option D
12. 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
E. None of the above
Answer Option A
13. _____ tool allows you to change your default X Window desktop.
A. utilinux
B. cempre
C. switchdesk
D. window
E. None of the above
Answer Option C
14. 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
E. None of the above
Answer Option A
15. Which program is used to schedule particular jobs or programs at particular times on the system?
A. vi
B. Outlook
C. Scheduler
D. cron
E. None of the above
Answer Option D
16. Which command can force all buffers to disk?
A. save
B. sync
C. edbuff
D. flush
E. None of the above
Answer Option B
17. How many extended partitions can exist on one drive?
A. 16
B. 4
C. 2
D. 1
E. None of the above
Answer Option D
18. For you to create a swap partition by using fdisk, what must the partition's system ID type be?
A. 83
B. 82
C. 5
D. 4
E. None of the above
Answer Option B
19. What file contains the list of port numbers (and associated names) monitored by inetd?
A. /etc/services
B. /etc/nsorder
C. /etc/nsswitch.conf/
D. /etc/hosts
E. None of the above
Answer Option A
20. The location of some system configuration and system administrator executable files, is:
A. /home
B. /proc
C. /var
D. /sbin
E. None of the above
Answer Option D
21. The location for subdirectories for local programs and executables for user and administrative commands, is:
A. /usr
B. /tmp
C. /opt
D. /mnt
E. None of the above
Answer Option A
22. Which of the following is not a filter command?
A. sort
B. wc
C. grep
D. cat
E. None of the above
Answer Option D
23. What command is used to display a file contents in octal form?
A. oct
B. of
C. od
D. cd
E. None of the above
Answer Option C
24. 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
E. None of the above
Answer Option A
25. What command is used to change the working directory?
A. cdir
B. chdir
C. changedir
D. cd
E. None of the above
Answer Option D
26. What command is used to count the number of files in the current directory by using pipes?
A. ls | ws - c
B. ls | wc - w
C. ls | wc - l
D. ls | wc
E. None of the above
Answer Option C
27. What command is used to count just the number of characters in a file?
A. wc - r
B. wc - w
C. wc - c
D. wc - 1
E. None of the above
Answer Option C
28. How many class A, B and C network IDs can exist?
A. 128
B. 126
C. 16,382
D. 2,113,658
E. None of the above
Answer Option D
29. 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
E. None of the above
Answer Option D
30. How can you rebuild the RPM file to include the new patches?
A. - - recompile
B. - - rebuild
C. - - generate
D. - - execute
E. None of the above
Answer Option A
31. What command is used to set user and group quotas?
A. /sbin/usrquota
B. /sbin/edquota
C. /sbin/quotaon
D. /sbin/quota
E. None of the above
Answer Option B
32. 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
E. None of the above
Answer Option A
33. In order to increase the amount of memory available for a system, what is the maximum size of a swap partition (with kernel version 2.2.x)?
A. 2GB
B. 128MB
C. 64MB
D. 32MB
E. None of the above
Answer Option A
34. Which file is used to configure which filesystems are mounted?
A. /etc/mount.sys
B. /etc/filesys
C. /etc/sysconfig
D. /etc/fstab
E. None of the above
Answer Option D
35. Who has developed the Linux?
A. Bob Young
B. Mark Eving
C. Richard Stallman
D. Linus Torvalds
E. None of the above
Answer Option D
36. What does OSS stand for?
A. Open System Software
B. Original Source Software
C. Open Source Software
D. Original System Server
E. None of the above
Answer Option C
37. Which of the following subdirectory(ies) contains the device files?
A. /dev
B. /bin
C. /etc
D. /home
E. None of the above
Answer Option A
38. Which of the following subdirectory(ies) contains the system boot scripts.
A. /dev
B. /bin
C. /etc
D. /home
E. None of the above
Answer Option C
39. What of the following tool is used to check and repair Linux file systems?
A. mkfs
B. fdisk
C. fsck
D. mount
E. None of the above
Answer Option C
40. Which of the following tool is used to partition your hard drive?
A. mkfs
B. fdisk
C. fsck
D. mount
E. None of the above
Answer Option B
41. 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
E. None of the above
Answer Option A
42. What command is used to display and create files?
A. lyrix
B. ed
C. vi
D. cat
E. None of the above
Answer Option D
43. Which of the following command can be used to rename a file in UNIX?
A. ren
B. mv
C. remove
D. change
E. None of the above
Answer Option B
44. What command is used to remove a file?
A. del
B. mv
C. rm
D. remove
E. None of the above
Answer Option C
45. What command is used to display the top of the file?
A. grep
B. more
C. head
D. cat
E. None of the above
Answer Option C
46. What command can be used to get information about yourself?
A. which
B. pwd
C. i /4
D. who am i
E. None of the above
Answer Option D
47. What layer protocol is responsible for user and the application programme support such as passwords, resource sharing, file transfer and network management?
A. Layer 4 protocols
B. Layer 5 protocols
C. Layer 6 protocols
D. Layer 7 protocols
E. None of the above
Answer Option D
48. 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
E. None of the above
Answer Option A
49. Which of the following tool allows you to change your default X Window desktop?
A. switchdesk
B. intrc
C. xinitre
D. Xchange
E. None of the above
Answer Option A
50. Which of the following is the main Apache configuration file?
A. httpd.conf
B. apache.con
C. /etc/profile
D. system.ini
E. None of the above
Answer Option A
Comments
Post a Comment