Exam 1 Linux

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 10

LINUX PARTIAL EXAM

Student: ...JOSE LUIS ALATA MEZA......................................


Instructor: Josué Cruz R.

1. One of the tasks of the kernel is:


a. Transfer mail from one machine to another.
b. Create machine code from source code
c. Load the operating system when turning on the computer
d. Manage system resources

2. Unix is
a. An operating system
b. One type of hardware
c. A text editor
d. A Linux distribution

3. Linux is written in:


a. Perl
b. Java
c. C++
d. C

4. The source code refers to:


a. A human-readable version of computer programs
b. The license that dictates how software can be used and shared
c. The interface used by the software to communicate with the kernel.
d. The version of a program that the computer runs on the CPU.

5. Open source means:


a. You cannot charge anything for the software
b. You must support the software you share
c. You can modify the source code of the software
d. You must share your changes

6. Most of the tools that are part of Linux systems come from:
a. Linux Foundation
b. Red Hat and Debian
c. The Open Source Initiative
d. The GNU Project

7. The end of bootloader is:


a. Assign the initial values, such as the network addresses
b. Installing the software from the Internet or removable media
c. Load the application into memory
d. Perform initial installation of the kernel on the hard drive
e. Loading the kernel on computer startup

8. UNIX was originally invented in:


a. AT&T Bell Labs
b. Bangalore University
c. Stanford University
d. Berkeley University
e. Xerox PARC

9. A license for which you cannot get access to the source code is called:
a. No code
b. Open Source
c. Closed code
d. Altered code

10. What distribution or clone does Red Hat produce?


a. Ubuntu
b. Debian
c. CentOS
d. Slackware

11. What distribution is Ubuntu derived from?


1. Red Hat Enterprise Linux
2. Debian
3. Slackware
4. Scientific Linux
5. Fedora

12. Open source licenses are different, but in general they agree that:
a. You must not know how to modify the software as you want it to be modified
b. You do not have permission to sell the software
c. You must have access to the source code of the software
d. You must redistribute your changes

13. Applications send requests to the kernel, and in return receive resources, such as memory,
CPU and disk. True or false?
a. False
b. True

14. The most important consideration when choosing an operating system is:
a. How much performance is needed
b. The operating system licensing model
c. Whether or not it is cloud-compliant
d. The operating system mascot
e. What the computer will do

15. Linux is not Unix because:


a. Has not been the subject of certification
b. Not good enough
c. Not produced by Open Group
d. There are too many distributions
e. It is free of charge

16. A launch cycle:


a. It is always 6 months
b. Describeshow often the software release is updated
c. Describes how long the software will be supported
d. No matter in an open source environment
e. Applies only to paid software

17. A maintenance cycle:


a. It should be short so that you always have the most recent versions.
b. It should be long so that you have time for the upgrade.
c. It only makes sense for paid software
d. Describes how often the software release is updated
e. Describes how long the software version will be supported for

18. If a software release is at a stage of many new features that have not been rigorously tested
it is usually called beta software. True or false?
a. True
b. False

19. The software is backward compatible if:


a. Runs on Linux/Mac/Windows platforms
b. People are still using the old versions
c. Can be upgraded without downtime
d. Still compatible with older file formats or applications
e. Whether the next version will continue to operate in the same manner

20. Apple OS X is not:


a. FreeBSD derivative
b. Only compatible with Apple hardware
c. Certified as UNIX compliant
d. Linux derivative

21. Microsoft Windows no:


a. Comes in desktop and server variants
b. It has an integrated virtualization
c. Has powerful scripting capabilities
d. Has a Linux compatibility mode

22. Other commercial UNIX:


a. They use completely different commands than Linux
b. Do not run GNU tools
c. They are UNIX certified
d. They are almost obsolete

23. When choosing a Linux distribution, you should not consider:


a. The distribution maintenance cycle
b. Popularity in social networks.
c. Whether or not the distribution is under active development
d. Which distributions are supported by the software you want to run
e. What management tools are provided by distribution
f. If you need support for your own distribution

24. The Samba application is:


a. File server
b. Mail server
c. Security server
d. Web server

25. If you want to create a blog, which software would be most useful?
a. Dovecot
b. Postfix
c. MySQL
d. Samba
e. WordPress

26. Which of the following pieces of software is not focused on file sharing? (select three)
a. NFS
b. Netatalk
c. Samba
d. X-Window

27. If you want to create and print an invoice, which software can you use?
a. GNOME
b. LibreOffice
c. Compiz
d. Evolution
e. Firefox

28. POP and IMAP refer to the following:


a. Reading and writing music
b. File sharing
c. E-mail address
d. Web page service
e. Allow users to log in to multiple servers with 1 set of credentials
29. When a computer is started, it can obtain information from its network through:
a. DHCP
b. SMTP
c. LDAP
d. X11
e. DNS

30. Which of the following is not an example of a text editor?


a. vim
b. nano
c. emacs
d. yum
e. peak

31. Package manager:


a. Download the software via the Internet
b. Sends you an e-mail when the software is out of date
c. You can recreate optional partitions of your disk to create more space for Linux
d. Performs a new Linux installation

32. Which of the following is true about compiled programming languages?


a. Perl is a compiled language
b. Compiled languages are ideal for system administration tasks such as scripting.
c. C is a compiled language
d. Ruby is a compiled language
e. A programmer is generally more productive when using a compiled language.

33. Which package manager is used in Fedora, a Red Hat-derived system?


a. bash
b. apt-get
c. yum
d. tar
e. vim

34. The Linux shell does not:


a. It is customizable
b. Has a scripting language
c. It has an integrated text editor
d. Allows you to start programs

35. What application would you use to edit and rebuild sound files to create a podcast?
a. Audiolicious
b. Bash
c. Thunderbird
d. Audacity
e. GIMP

36. A server is likely to run in graphical mode. True or false?


a. True
b. False

37. Running which applications in graphical mode can reach the shell?
a. gbash
b. guiterm
c. xconsole
d. terminal
38. Virtualization means:
a. A single host can be divided into several hosts
b. A user can connect to a server over the network and use the virtual console
c. Many users can share one hard disk drive
d. A machine can change the memory on the disk
e. Two users get different memory spaces on the same machine

39. If you want to write a report that you would have to print, you would probably use:
a. Chrome
b. LibreOffice
c. Firefox
d. Adobe Flash
e. A wiki

40. If you want to store usernames and passwords for different websites in a secure way, you
can use:
a. A LibreOffice document
b. A text file in your home directory
c. KeePassX
d. A sticky note on your monitor
e. Firefox

41. You can configure your computer to check for updates automatically. True or false?
a. True
b. False

42. Which of the following is a tool that helps you anonymize your Internet browsing?
a. CookieCleaner
b. iptables
c. AnonFirefox
d. Web proxy
e. The onion router

43. Social media "like" buttons can track your activity across the Internet. True or false?
a. False
b. True

44. What can be done to prevent remote people from running programs on your computer?
a. Block all cookies
b. Turn on a firewall
c. Block third party cookies
d. Do not use wireless networks - wired only

45. What are the benefits of increasing the level of privacy you have in your web browser?
a. Images do not load correctly
b. You can obtain viruses
c. Websites may load slower
d. Sites may not function properly

46. Which environment variables contain a list of directories in which to look for the commands
you want to execute?
a. PATH
b. PS1
c. PS2
d. EXEC

47. Selects the command that can report the location of a command:
a. which
b. what
c. where

48. A pair of single quotes (') will prevent the shell from interpreting any metacharacters. True or
false?
a. False
b. True

49. A pair of double quotes (") will prevent the shell from interpreting any metacharacters. True
or false?
a. True
b. False

50. The use of a pair of inverted quotes (`) will prevent the shell from executing text between
inverted quotes as a command and will replace the new output with the original command.
True or false?
a. False
b. True

51. The semicolon ";" can be used to separate several commands so that they are executed in
order. True or false?
a. False
b. True

52. Which of the following is not the glob character?


a. The dash character "-"
b. The asterisk "*"
c. The question mark "?"
d. The square brackets "[" and "]"

53. The double ampersand character (&&) is used to separate commands so that they are
executed conditionally, where if the command to the left of the ampersand symbols fails,
then the command to the right of the ampersand symbols will be executed. True or false?
a. True
b. False

54. In order to see the output messages on the screen, we use the command _______:
a. echo
b. display
c. type
d. print

55. The command _______ will print a list of commands you have previously executed.
a. history
b. eval
c. list
d. exec

56. What is the standard option for providing a command line program to view your
documentation?
a. --doc
b. --info
c. -h
d. --help

57. The man-k command is the same as the apropos command.true or false?
a. False
b. True

58. The whatis command is the same as man -w. True or false?
a. False
b. True

59. The directory where you can most likely find additional documentation for the software
packages is:
a. /usr/software/doc
b. /var/share/doc
c. /var/lib/doc
d. /usr/share/doc

60. Which two in-page navigation commands are used by the man command to control
movement within the document?
a. grep and more
b. more and less
c. page and grep
d. page and less

61. In which section of the manual will you find the content dealing with commands normally
executed by a user?
a. 5
b. 1
c. 3
d. 2

62. The instruction describing the difference between a man page and info page command is:
a. The man page is a long and detailed reference; the info page is a very concise
reference.
b. The info page command is like a guide; the man page is a more concise reference.
c. The man page command is like a guide; the info page is a more concise reference.
d. There is very little difference between them.

63. If you are reading the synopsis of a command from the man page, then the items in square
brackets are:
a. Arguments required
b. Required options
c. Optional
d. Comments

64. Section 5 of the manual pages covers:


a. User commands
b. Games
c. File formats
d. System administration commands

65. To start the man page search, the first key to press is:
a. !
b. s
c. f
d. /

66. Which option for the ls command will show all files, including hidden files?
a. -H
b. -w
c. -L
d. -a

67. The top-level directory on a Linux system is represented as:


a. /root
b. /home
c. /
d. C:
68. Is the following route absolute or relative?
a. /etc/ppp
b. Relative
c. Absolute

69. Is the next route absolute or relative?


a. sysadmin/Documents
b. Absolute
c. Relative

70. The tilde (~) is used to represent:


a. Nothing; it has no special significance
b. Any two individual characters
c. The user's home directory.
d. The directory above the current working directory

71. The double dot (...) can be used with the cd command to represent:
a. Any two individual characters
b. The user's home directory.
c. The directory above the current working directory
d. Nothing; it has no special significance

72. What directory will the cd command alone take you to?
a. To none; not a valid command
b. The system root directory
c. To your home directory
d. To the directory above the current working directory

73. Which command will allow you to change the current working directory?
a. chdir
b. ls
c. cd
d. list

74. The first character in a long list (ls -l) indicates:


a. The size
b. Whether something is a file, directory, or symbolic link
c. The owner
d. Permits

75. The compression of a file works through:


a. Elimination of redundant information
b. Delete spaces within the file
c. Storage of most of the data on removable media by keeping only the pointer
d. Extraction of the high order bit from each byte
e. Consolidation of multiple files into a single file

76. In general, for which of the following would you want to use lossless compression?
a. An mp3 audio file
b. A log file
c. An encrypted e-mail
d. A movie
e. A JPEG image

77. How would you get an output similar to the following?


compressed uncompressed uncompressed ratio uncompressed_name
278168 1016950 72.6% tags
a. gunzip -t tags
b. file tags
c. gzip -l tags

78. What command would you use to package the Documents directory and compress it with
bzip2?
a. tar -cf Documents documents.tbz
b. tar -fzc Documents documents.tbz
c. tar -cjf documents.tbz Documents
d. tar -cjf Documents
e. tar -czf documents.tbz Documents

79. Which option would you pass to tar in order to create a new packed file?
a. -t
b. -c
c. -n
d. -j
e. -x

80. Which command will show what is inside the compressed tar archive with a name of
foo.tar.gz?
a. tar -xf foo.tar.gz
b. tar -tf foo.tar.gz
c. tar -tjf foo.tar.gz
d. tar -tzf foo.tar.gz
e. tar -lf foo.tar.gz

81. In the command tar -cvjf foo.tbz a b c what do the letters a, b, c refer to?
a. Additional options passed to the tar
b. a is the directory that precedes the files; b and c are the files inside the directory
c. Matching operators; anything beginning with a, b, or c is added.
d. Nothing; -cvjf only expects one parameter
e. The filenames to be added to the packed file

82. You packed your user directories in an archive called backup.tar.gz. Below you can view the
packed file and see that the file names follow this convention:
home/username/somefile
How are you going to extract only the files for the user named fred?
a. tar -xzf backup.tar.gz home/fred/
b. tar -tzf /home/fred < backup.tar.gz
c. tar -xjf backup.tar.gz home/fred/
d. tar -xzf backup.tar.gz fred
e. tar -tjf backup.tar.gz /home/fred

83. Which of the following commands will create a zip file with the contents of the Documents
directory?
a. zip -f mydocs.zip Documents
b. zip -r mydocs.zip Documents
c. zip mydocs.zip Documents
d. zip -cf mydocs.zip Documents
e. zip -c mydocs.zip Documents

84. You have an archive named documents.zip, how can you see what is inside without
extracting the files?
a. showzip documents.zip
b. zip -l documents.zip
c. unzip -l documents.zip
d. zip -lf documents.zip
e. unzip --list documents.zip

85. Where are error messages generated by commands sent by default?


a. STDERR
b. STDOUT
c. STDIN
d. Log Files

86. A successful command will print the output to STDOUT. True or false?
a. True
b. False

87. A vertical bar allows you to...


a. ...enter several commands at the same prompt.
b. ...send the output of one command to another.
c. ...send the output of a command to a file.
d. ...send the same input to several commands.

88. Channel 2 is:


a. STDERR
b. STDALL
c. STDOUT
d. STDIN

89. Which of the following commands will append your output to output.file?
a. echo Testing > output.file
b. echo Testing >> output.file
c. output.file < echo Testing
d. echo Testing -> output.file

90. Which option of the head command will display only the first five lines of a file?
a. -n 5
b. No option is required; the head displays only the five lines by default.
c. -l 5
d. -n

91. The grep command ...


a. ...is not case sensitive.
b. ...will display the line numbers in a file containing a specified regular expression.
c. ...will display all lines in a file containing a specified Regular Expression.
d. ...will display all lines in a file that begin with the specified Regular Expression.

92. The grep command can be used with glob characters. True or false?
a. True
b. False

93. Which of the following commands will display only lines beginning with start?
a. grep $start file.txt
b. grep *start file.txt
c. grep ^start file.txt
d. grep \start file.txt

94. Which of the following commands will display only lines beginning with test?
a. grep $test* file.txt
b. grep *test file.txt
c. grep ^test file.txt
d. grep &test file.txt

You might also like