ccpq/data/list_book1.csv

21 KiB

1LEVELANSWERQUESTION12345
2010-160Which of the following is **not** a function of the Linux kernel?Allocating memory for use by programsAllocating CPU time for use by programsCreating menus in GUI programsControlling access to the hard diskEnabling programs to use a network
3010-160Which of the following is an example of an embedded Linux OS?AndroidSUSECentOSDebianFedora
4010-160Which of the following is a notable difference between Linux and Mac OS X? Linux can run common GNU programs whereas OS X cannot.Linux's GUI is based on the X Window System whereas OS X's is not.Linux cannot run on Apple Macintosh hardware whereas OS X can run only on Apple hardware.Linux relies heavily on BSD software whereas OS X uses no BSD software.Linux supports text-mode commands but OS X is a GUI-only OS.
5010-1602True or false: The Linux kernel is derived from the BSD kernel.TrueFalse
6010-1602True or false: If you log into a Linux system in graphical mode you cannot use text-mode commands in that session.TrueFalse
7010-1601True or false: CentOS is a Linux distribution with a long release cycle.TrueFalse
8010-1601What type of multitasking does Linux use?PreemptiveMulti-userCo-operativeSingle-taskingSingle-user
9010-160Which of the following is a characteristic of all open source software?The software cannot be sold for a profit; it must be distributed free of charge.It must be distributed with both source code and binaries.Users are permitted to redistribute altered versions of the original software.The software was originally written at a college or university.The software must be written in an interpreted language that requires no compilation.
10010-1604Which of the following programs is **most** likely to be installed and regularly used on a desktop computer that runs Linux?ApachePostfixAndroidEvolutionBIND
11010-160True or false: VMS was a common OS on x86 PCs at the time Linux was created.TrueFalse
12010-1601True or false: Some DVRs run Linux.TrueFalse
13010-1601True or false: A Linux computer being used as a server generally does not require X.TrueFalse
14010-160Which of the following is **not** required in order for software to be certified as open source?The license must not discriminate against people or groups of people.The license must not require that the software be distributed as part of a specific product.The license must require that changes be distributed under the same license.The program must come with source code or the author must make it readily available on the Internet.The license must automatically apply to anybody who acquires the software.
15010-160Which is true of Linux distributions as a whole? They're covered by the GPL or the BSD license depending on the distribution.Sometimes they may not be copied because of non-open source software they may contain.They may be copied only after software using the MIT license is removed.They all completely conform to the principles of the open source movement.They all qualify as free software as the FSF uses the term.
16010-160Which of the following is a key part of the FSF's philosophy?Developers should use the latest version of the FSF's GPL.Users should have the right to modify free software and distribute it under a commercial license.Developers should write software only for free operating systems such as GNU/Linux.Users should engage in civil disobedience by copying proprietary software.Users must have the right to use software as they see fit.
17010-160True or false: Copyright law governs the distribution of software in most countries.TrueFalse
18010-160True or false: The FSF's free software definition and the OSI's ten principles of open source software both require that users have the ability to examine a program's workings---that is its source code.TrueFalse
19010-1602True or false: Because their hardware designs are proprietary, hardware vendors cannot release open source drivers for their products.TrueFalse
20010-160Which of the following are Linux desktop environments? (Select all that apply.)GTK+GNOMEKDEEvolutionXfce
21010-160If you want to enable one Linux computer to access files stored on another Linux computer's hard disk which of the following network protocols is the *best* choice?SMTPNFSPHPDNSDHCP
22010-1603In which of the following languages was most of the Linux kernel written?Bash shell scriptJavaCC++Perl
23010-1601True or false: OpenOffice.org and LibreOffice are very similar office suites.TrueFalse
24010-1601True or false: Servers can be disrupted by malicious outsiders even if the computer that runs them is never broken into.TrueFalse
25010-1601True or false: Python is generally implemented as an interpreted language.TrueFalse
26010-1604Which of the following commands provides the most information about your motherboard's features?`lscpu``Xorg -configure``fdisk -l /dev/sda``lspci``http://localhost:631`
27010-160Why might you want to partition a hard disk? (Select all that apply.)To install more than one OS on the diskTo use ext4fs rather than ReiserFSTo turn a PATA disk into an SATA diskTo separate filesystem data from swap spaceTo separate the disk's cache from its main data
28010-1601Which of the following devices is *not* commonly attached via USB?Video monitorsKeyboardsExternal hard disksPrintersScanners
29010-1601True or false: An EM64T CPU is capable of running a Linux distribution identified as being for the AMD64 CPU.TrueFalse
30010-1602True or false: UDF is a good filesystem to use for a Linux installation on a hard disk.TrueFalse
31010-1601True or false: The Linux kernel includes drivers for various disk controllers, network adapters and USB interfaces among other things.TrueFalse
32010-1601What keystroke moves the cursor to the start of the line when typing a command in Bash?Ctrl+ALeft arrowCtrl+TUp arrowCtrl+E
33010-160How can you run a program in the background when launching it from a shell? (Select all that apply.)Launch the program by typing `start command` where `command` is the command you want to run.Launch the program by typing `bg command` where `command` is the command you want to run.Append an ampersand `&` to the end of the command line.Launch the program normally then type Ctrl+Z in the shell and then type `bg` in the shell.Launch the program normally and type Ctrl+Z in the shell then type `fg` in the shell.
34010-1605Which of the following commands; typed at a Bash prompt; returns you to your home directory?`home``cd /home``cd homedir``homedir``cd ~`
35010-1602True or false: The Alt+F2 keystroke, typed in X, brings up a text-mode display you can use to log into Linux.TrueFalse
36010-1602True or false: The filename `..\upone.txt` refers to the file `upone.txt` in the parent of the current directory.TrueFalse
37010-1602True or false: The `-r` option to `ls` creates a recursive directory listing.TrueFalse
38010-1601Which of the following commands would you type to rename `newfile.txt` to `afile.txt`?`mv newfile.txt afile.txt``cp newfile.txt afile.txt``ln newfile.txt afile.txt``rn newfile.txt afile.txt``touch newfile.txt afile.txt`
39010-160You type `mkdir one/two/three` and receive an error message that reads which reads in part `No such file or directory`. What can you do to overcome this problem? (Select all that apply.)Add the `--parents` parameter to the `mkdir` command.Issue three separate `mkdir` commands: `mkdir one` then `mkdir one/two` and then `mkdir one/two/three`.Type `touch /bin/mkdir` to be sure the `mkdir` program file exists.Type `rmdir one` to clear away the interfering base of the desired new directory tree.Type `rm -r one` to clear away the entire interfering directory tree.
40010-1601True or false: You can create a symbolic link from one low-level filesystem to another.TrueFalse
41010-1602True or false: You can easily damage your Linux installation by mistyping an `rm` command when you log into your regular account.TrueFalse
42010-1601True or false: You can set a directory's time stamps with the `touch` command.TrueFalse
43010-1604Which of the following commands is an improved version of `more`?`grep``html``cat``less``man`
44010-160Which of the following statements is a fair comparison of `man` pages to HOWTO documents?`man` pages require Internet access to read; HOWTOs do not.`man` pages are a type of printed documentation; HOWTOs are electronic.`man` pages describe software from a user's point of view; HOWTOs are programmers' documents.`man` pages are brief reference documents; HOWTOs are more tutorial in nature.`man` pages use a hyperlinked format whereas HOWTOs do not.
45010-160A user types `whatis less`. What type of output can be expected?A short one-paragraph description of the purpose of the `less` commandThe complete path to the `less` command in the Linux filesystemSummary information from `man` pages whose Name sections mention `less`The complete `man` page for `less` which you would then scroll through with your terminalThe URLs for Web sites with information on the `less` command
46010-1601True or false: You can force `man` to display a `man` page in a specific section of the manual by preceding the search name with the section number, as in `man 5 passwd`.TrueFalse
47010-160True or false: `info` pages are a Web-based documentation format.TrueFalse
48010-1602True or false: Linux documentation in the `/usr/share/doc` directory tree is almost always in OpenDocument Text format.TrueFalse
49010-1605Which of the following tools is best suited to installing a software package and all its dependencies on a Debian computer?`yum``zypper``dmesg``rpm``apt-get`
50010-1601What is the usual name of the first process that the Linux kernel runs aside from itself?`init``bash``cron``login``grub`
51010-1601Where do most log files reside on a Linux computer?`/var/log``/etc/logging``/usr/log``/home/logging``/log/usr`
52010-1601True or false: When using suitable commands you can normally install a program and be sure that all the software on which it depends will also be installed provided you have an Internet connection.TrueFalse
53010-1601True or false: By default the first process listed in `top` is currently consuming the most CPU time.TrueFalse
54010-1601True or false: The `dmesg` command may produce different output after a computer has been running for weeks than when it first started.TrueFalse
55010-1601Which of the following commands will print lines from the file `world.txt` that contain matches to `changes`and `changed`?`grep change[ds] world.txt``tar change[d-s] world.txt``find "change'd|s'" world.txt``cat world.txt changes changed``find change[^ds] world.txt`
56010-1605Which of the following redirection operators appends a program's standard output to an existing file without overwriting that file's original contents?`|``2>``&>``>``>>`
57010-160You've received a tarball called `data79.tar` from a colleague but you want to check the names of the files it contains before extracting them. Which of the following commands would you use to do this?`tar uvf data79.tar``tar cvf data79.tar``tar xvf data79.tar``tar tvf data79.tar``tar Avf data79.tar`
58010-1601True or false: The regular expression `Linu[^x].*lds` matches the string `Linus Torvalds`.TrueFalse
59010-1601True or false: The `find` command enables you to locate files based on their sizes.TrueFalse
60010-160True or false: To compress files archived with `zip` you must use an external compression program such as `gzip` or `bzip2` in a pipeline with `zip`.TrueFalse
61010-1604Which type of file is `nano` *least* likely to be useful for examining or editing?A `/var/log/messages` log fileAn HTML Web page fileAn e-mail message saved from an e-mail clientA LibreOffice word processing documentAn `/etc/X11/xorg.conf` configuration file
62010-160Which keystrokes invoke the `pico` or `nano` search function? (Select all that apply.)F3F6Esc-SCtrl+FCtrl+W
63010-1601How would you remove two lines of text from a file using Vi?In command mode position the cursor on the first line and type `2dd`.In command mode position the cursor on the last line and type `2yy`.In insert mode position the cursor at the start of the first line. Hold down the Shift key while pressing the Down arrow key twice and press the Delete key on the keyboard.In insert mode position the cursor at the start of the first line and press Ctrl+K twice.Select the text with the mouse and then select File ⇒ Delete from the menu.
64010-1602True or false: Unicode is useful for encoding most European languages but not Asian languages.TrueFalse
65010-1602True or false: GUI text editors for ASCII are superior to text-mode ASCII text editors because the GUI editors support underlining and italics and multiple fonts.TrueFalse
66010-1601True or false: Many (but not all) configuration files use a hash mark `#` to identify comment lines.TrueFalse
67010-1601After using a text editor to create a shell script what step should you take before trying to use the script by typing its name?Set one or more executable bits using `chmod`.Copy the script to the `/usr/bin/scripts` directory.Compile the script by typing `bash scriptname` where `scriptname` is the script's name.Run a virus checker on the script to be sure it contains no viruses.Run a spell checker on the script to ensure it contains no bugs.
68010-1603What is the purpose of conditional expressions in shell scripts?They prevent scripts from executing if license conditions aren't met.They display information about the script's computer environment.They enable the script to take different actions in response to variable data.They enable scripts to learn in a manner reminiscent of Pavlovian conditioning.They cause scripts to run only at specified times of day.
69010-160True or false: A user types `myscript laser.txt` to run a script called `myscript`. Within `myscript` the `$0` variable holds the value `laser.txt`.TrueFalse
70010-1601True or false: Valid looping statements in Bash include `for`, `while` and `until`.TrueFalse
71010-1601What is the purpose of the system account with a UID of 0?It's the system administration account.It's the account for the first ordinary user.Nothing. UID 0 is left intentionally undefined.It varies from one distribution to another.It's a low-privilege account that's used as a default by some servers.
72010-160What type of information will you find in `/etc/passwd` for ordinary user accounts? (Select all that apply.)A user ID (UID) numberA complete listing of every group to which the user belongsThe path to the account's home directoryThe path to the account's default GUI desktop environmentThe path to the account's default text-mode shell
73010-1601You want to run the command `iptables -L` as `root` but you're logged in as an ordinary user. Which of the following commands will do the job assuming the system is configured to give you `root` access via the appropriate command?`sudo iptables -L``root iptables -L``passwd iptables -L``su iptables -L``admin iptables -L`
74010-1602True or false: `whoami` provides more information than `id`.TrueFalse
75010-160True or false: Linux stores information on its groups in the `/etc/groups` file.TrueFalse
76010-1602True or false: As a general rule you should employ extra care when running programs as `root`.TrueFalse
77010-160What would a Linux system administrator type to remove the `nemo` account and its home directory`userdel nemo``userdel -f nemo``userdel -r nemo``rm /home/nemo``rm -r /home/nemo`
78010-1602Of the following, which is the *best* password? `LinusTorvalds``uB2op%4q****************``123456``password``peanutbuttersandwich`
79010-1601Describe the effect of the following command assuming it completes successfully: `groupadd henry`It creates a new group called `henry`.It adds the user `henry` to the current default group.It imports group information from the file called `henry`.It changes the user's default group to `henry`.It adds the group `henry` to the user's list of groups.
80010-1601True or false: User accounts have higher UID numbers than do system accounts.TrueFalse
81010-160True or false: Command-line users should normally use `usermod` to change their passwords.TrueFalse
82010-1601True or false: After deleting an account the files formerly owned by the deleted account may remain on the computer.TrueFalse
83010-1601What command would you type (as `root`) to change the ownership of `somefile.txt` from `ralph` to `tony`? `chown ralph:tony somefile.txt``chmod somefile.txt tony``chown somefile.txt tony``chown tony somefile.txt``chmod tony somefile.txt`
84010-160Typing `ls -ld wonderjaye` reveals a symbolic file mode of `drwxr-xr-x`. Which of the following are true? (Select all that apply.) `wonderjaye` is a symbolic link.`wonderjaye` is an executable program.`wonderjaye` is a directory.`wonderjaye` may be read by all users of the system.`wonderjaye` may be written by any member of the file's group.
85010-1604Which of the following commands can you use to change a file's group?`groupmod``chmod``ls``chown`
86010-1601True or false: A file with permissions of 755 can be read by any user on the computer, assuming all users can read the directory in which it resides.TrueFalse
87010-1602True or false: Only `root` may use the `chmod` command.TrueFalse
88010-1601True or false: Only `root` may change a file's ownership with `chown`.TrueFalse
89010-1604What types of files are you likely to find in `/usr/lib` according to the FHS? Liberty filesLiberated filesLibra filesLibrary filesLiberal files
90010-1601You want to discover the sizes of several dot files in a directory. Which of the following commands might you use to do this?`ls -la``ls -p``ls -R``ls -d``ls -ld`
91010-1603When should programs be configured SUID `root`?At all times; this permission is required for executable programs.Whenever a program should be able to access a device file.Only when they require `root` privileges to do their job.Whenever the program must be able to access an account's user ID (UID) number.Never; this permission is a severe security risk.
92010-1601True or false: Print spool files are stored in a subdirectory of `/var`.TrueFalse
93010-1602True or false: On a properly configured Linux system any user can delete any file from `/tmp`.TrueFalse
94010-160True or false: If you hide a file in Linux by making it a dot file, you must change any existing references to that file in configuration files if those references are to continue working.TrueFalse
95010-160You want to set up a computer on a local network via a static TCP/IP configuration, but you lack a gateway address. Which of the following is true? Because the gateway address is necessary no TCP/IP networking functions will work.TCP/IP networking will function but you'll be unable to convert hostnames to IP addresses and vice versa.You'll be able to communicate with machines on your local network segment but not with other systems.The computer won't be able to tell which other computers are local and which are remote.You'll be able to use the computer as a network server system but not as a network client.
96010-160Which of the following types of information are returned by typing `ifconfig eth0`? (Select all that apply.)The names of programs that are using `eth0`The IP address assigned to `eth0`The hardware address of `eth0`The hostname associated with `eth0`The gateway with which `eth0` communicates
97010-160The `ping` utility responds normally when you use it with an IP address but not when you use it with a hostname that you're positive corresponds to this IP address. What might cause this problem? (Select all that apply.)The route between your computer and its DNS server may be incorrect.The target computer may be configured to ignore packets from `ping`.The DNS configuration on the target system may be broken.Your computer's hostname may be set incorrectly.Your computer's DNS configuration may be broken.
98010-160True or false: IPv4 addresses are four bytes in length.TrueFalse
99010-1602True or false: The `/etc/resolv.conf` file tells the computer whether to use DHCP for its network configuration.TrueFalse
100010-160True or false: You can check the current status of your routing table by typing `route` at a shell prompt.TrueFalse