Computer Science Linux Practice Test - Set 02 - ObjectiveBooks

Computer Science Linux Practice Test - Set 02

Practice Test: Question Set - 02


1. What command is used with vi editor to append text at end of line?
    (A) I
    (B) i
    (C) a
    (D) A

2. What command is used to sort the lines of data in a file in reverse order?
    (A) sort - r
    (B) st
    (C) sh
    (D) sort

3. What command is used to display and create files?
    (A) lyrix
    (B) ed
    (C) vi
    (D) cat

4. How can you navigate around virtual consoles?
    (A) Alt+Function Key
    (B) Ctrl+Function Key
    (C) Ctrl+Alt+Del
    (D) Alt+a+w+Function Key

5. What TCP/IP protocol is used for file transfer with minimal capability and minimal overhead?
    (A) TELNET
    (B) TFTP
    (C) FTP
    (D) RARP

6. 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) None of the above

7. What command is used to count the total number of lines, words, and characters contained in a file?
    (A) countw
    (B) wcount
    (C) wc
    (D) count p

8. What can he used to set up a firewall on a Linux system?
    (A) netstat
    (B) route
    (C) trace
    (D) ipchains

9. What command is used to save the standard output in a file, as well as display it on the terminal?
    (A) tee
    (B) grep
    (C) cat
    (D) more

10. The physical layer of a network
    (A) Constructs packets of data and sends them across the network
    (B) Controls error detection and correction
    (C) Defines the electrical characteristics of signals passed between the computer and communication devices
    (D) All of the above

11. Where can system and mail logs be found in Ret Hat Linux?
    (A) /var/log
    (B) /etc/log
    (C) /mail
    (D) None of the above

12. What command is used to list contents of directories?
    (A) tar
    (B) dir
    (C) lp
    (D) ls

13. 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

14. What sign is used to back up over typing errors in vi?
    (A) !
    (B) $
    (C) #
    (D) @

15. What command is used to display the top of the file?
    (A) grep
    (B) more
    (C) head
    (D) cat

Show and hide multiple DIV using JavaScript View All Answers

 Next Tests: