Friday, July 5, 2013

LINUX MCQ Test – 2

Que.1. /temp is a type of filesystem directory

A: True
B: False

Right Answer: B

Que.2. Which of the following commands delete the files from the /tmp directory, issued by non-root user?

A: rmdir -rf /tmp/*
B: rm -rf /tmp/* -su
C: su -c "rm -rf /tmp/*"
D: su "rm -rf /tmp/*"

Right Answer: C

Que.3. Echo is used to Display message on screen. Which of the following options below should be used with echo to not output the trailing newline?

A: /e
B: /n
C: -n
D: both b and c

Right Answer: C

Que.4. The basic function of ______________ is to search files for lines (or other units of text) that contain a pattern.

A: awk
B: search
C: %awk
D: cat

Right Answer: A

Que.5. What is the content of /etc directory?

A: Configuration files for your system.
B: Contains the system startup scripts
C: Both a and b
D: User specific settings for programs like IRC, X etc.

Right Answer: C

Que.6. What is the difference between linux file system and windows file system?

A: Under Linux, the various partitions are detected at boot and assigned a drive letter whereas Under windows, unless you mount a partition or a device, the system does not know of the existence of that partition or device.
B: Under Windows, the various partitions are detected at boot and assigned a drive letter whereas Under Linux, unless you mount a partition or a device, the system does not know of the existence of that partition or device.
C: Under Windows, the various partitions are detected at reboot and assigned a drive letter whereas Under Linux, unless you mount a partition or a device, the system does not know of the existence of that partition or device.
D: Under Windows, the various partitions are detected at reboot and assigned a drive letter whereas Under Linux, you mount a partition or a device.

Right Answer: B

Que.7. Which of the following below is/are true for Date command?

A: It can work w/o arguments
B: It always needs an argument
C: It always need to have a+ as an argument
D: None of the above

Right Answer: A

Que.8. What is the default number of shell commands saved in the history list of .cshrc file?

A: 200
B: 100
C: 150
D: 175

Right Answer: A

Que.9. mount -r is used to mount a file in read only mode

A: True
B: False

Right Answer: A

Que.10. The advantage of using NFS rather than Samba for file sharing in Linux is

A: files saved as .tar extension
B: compressed files
C: compatibility with Windows file sharing
D: None of the above

Right Answer: C

Que.11. Which of the following supports for creating a Linux VPN (Virtual Private Network)?

A: RC2
B: 3DES
C: chap
D: NTLMv2

Right Answer: B

Que.12. Find command can search for files by

A: date
B: size
C: name
D: all of above

Right Answer: D

Que.13. How can we find the current value for shell variables?

A: Set command
B: Display command
C: val command
D: Currval command

Right Answer: A

Que.14. CWD is a type of shell variable

A: True
B: False

Right Answer: A

Que.15. Which framework is provided for the programs to interchange information about Linux OS?

A: Resource Sharing Framework
B: Resource Security Framework
C: Information Sharing Framework
D: Resource Definition Framework

Right Answer: D

Que.16. What is the difference between PATH and path?

A: PATH and path specify directories to search for commands and programs
B: Both variables always represent the same directory list
C: altering either automatically causes the other to be changed
D: All choices are correct.

Right Answer: D

Que.17. How much usable space is available, when a Linux system is configured with a RAID 5 array that consists of six 20 GB hard disk drives?

A: 80
B: 100
C: 120
D: 60

Right Answer: C

Que.18. Which of the following below are environmental variables?

A: USER
B: HOME
C: both a and b
D: VARHOST

Right Answer: C

Que.19. Applications written to provide a GUI shell for Unix and Linux are called

A: DOS
B: x windows
C: OS/2
D: Vista

Right Answer: B

Que.20. Which of the following commands can be used to check for file corruption?

A: md5sum
B: checkfile
C: cat -vet
D: tar --checksum

Right Answer: A

No comments:

Post a Comment