Last Updated on November 14, 2021 by Admin

NDG Linux Essentials 2.20 Midterm Exam (Modules 1-9) Answers

  1. The most popular Linux platform for mobile phones is:

    •  IOS
    •  BlackBerry
    •  MobileLinux
    •  Android
    • Slackware
  2. The release cycle:

    •  Should be short so you always have the freshest releases
    •  Describes how long software will be supported
    •  Dictates how often software is updated
    •  Only has meaning for paid software
    •  Should be long so that you have time before you need to upgrade
  3. What does a distribution provide to add and remove software from the system?

    •  Package Manager
    •  Partitioning tool
    •  Compiler
    •  Bash
    •  Application Programming Interface (API)
  4. A maintenance cycle:

    •  Describes how long a version of software will be supported
    •  Describes how often updates for software come out
    •  Should be long so that you have time before you need to upgrade
    •  Only has meaning for paid software
    •  Should be short so you always have the freshest releases
  5. When choosing a distribution of Linux, you should consider:

    (choose five)

    •  Will commercial support be required for the OS
    •  If the application software is supported by the distribution
    •  Does the distribution offer a “stable” version
    •  Will users require a GUI
    •  Popularity on social media
    •  Does your organization require long-term support for the system
  6. Which of the following are examples of desktop software?

    (choose two)

    •  File share
    •  Compiler
    •  Web server
    •  Music player
    •  Web browser
  7. Which of the following pieces of software deal with file sharing?

    (choose three)

    •  NFS
    •  X-Windows
    •  Samba
    •  PostgreSQL
    •  Netatalk
  8. The Linux shell:

    (choose three)

    •  Allows you to launch programs
    •  Has a built-in text editor
    •  Is customizable
    •  Has a scripting language
    •  Is responsible for tracking the location of configuration files
  9. Virtualization means:

    •  A machine can swap memory to disk
    •  Two users get different memory spaces on the same machine
    •  A user can connect to a server over the network and use a virtual console
    •  A single host can be split up into multiple guests
    •  Many users can share one hard drive
  10. In graphical mode, you can get to a shell by running which applications?

    (choose two)

    •  Gbash
    •  Guiterm
    •  console
    •  Xterm
    •  Terminal
  11. Source code refers to:

    •  The license that dictates how you may use and share the software
    •  The version of a program that the computer runs on the CPU
    •  A human-readable version of computer software
    •  The interface that software uses to talk to the kernel
  12. Open source means:

    (choose two)

    •  You cannot charge anything for the software
    •  You can modify the software’s source code
    •  You must share your changes
    •  You can view the software’s source code
    •  You must support the software you share
  13. A copyleft provision in a software license means:

    •  You must provide free copies of the software if you use it
    •  You must provide support for your modifications
    •  You may not link against third party closed source software
    •  If you redistribute the software, you must distribute the source to any changes you make
    •  You give up your copyright to the software
  14. Linux is distributed under which license?

    •  BSD
    •  GPLv3
    •  GPLv2
    •  MIT
    •  Linux Foundation
  15. Creative Commons licenses allow you to:

    (choose three)

    •  Get a veto on where the work is used
    •  Specify whether or not people may distribute changes
    •  Specify whether or not changes must be shared
    •  Allow or disallow commercial use
    •  Receive royalties on the use of the work
  16. Which environment variable contains a list of directories that is searched for commands to execute?

    •  PATH
    •  PS1
    •  EXEC
    •  PS2
  17. Select the command that can report the location of a command:

    •  which
    •  what
    •  where
  18. A pair of double quotes (” ) will prevent the shell from interpreting any metacharacter.

    True or False?

    •  True
    •  False
  19. The shell program interprets the commands you type into the terminal into instructions that the Linux operating system can execute.

    True or False?

    •  True
    •  False
  20. The acronym CLI stands for:

    •  Command Line Interpreter
    •  Computer Line Interface
    •  Computer Link Interpreter
    •  Command Line Interface
  21. The most common shell used for Linux distributions is the ________ shell.

    •  Tsch
    •  Zsh
    •  Bash
    •  Fish
  22. Which two pager commands are used by the man command to control movement within the document?

    (choose two)

    •  more
    •  grep
    •  less
    •  page
  23. To search the man page sections for the keyword example, which of the following command lines could you execute?

    (choose two)

    •  apropos example
    •  man -f example
    •  whatis example
    •  man -k example
  24. The statement that describes the difference between a man page and an info page is:

    •  There is very little difference between them.
    •  The info page is like a guide; a man page is a more concise reference.
    •  The man page is like a guide; the info page is a more concise reference.
    •  The man page is a long detailed reference; the info page is very terse.
  25. The following sections commonly appear on a man page:

    (choose three)

    •  NAME
    •  LICENSE
  26. The top-level directory on a Linux system is represented as:

    •  /home
    •  C:
    •  /
    •  /root
  27. The tilde (~) is used to represent:

    •  The directory above the current working directory
    •  Any two single characters
    •  A user’s home directory
    •  Nothing; it has no special meaning
  28. The cd command by itself will take you to what directory?

    •  Your home directory
    •  The directory above the current working directory
    •  None; it is not a valid command
    •  The system root directory
  29. What command will allow you to change your current working directory?

    •  ls
    •  chdir
    •  list
    •  cd
  30. The first character in a long listing (ls -l) indicates:

    •  The owner
    •  The permissions
    •  If something is a file, directory, or symbolic link
    •  The size
  31. Which of the following commands can be used to rename a file?

    •  cp
    •  rm
    •  mv
    •  name
  32. The touch command can be used to:

    (choose two)

    •  Create new files
    •  Change a file’s name
    •  Update the timestamp of existing files
    •  Change ownership of a file
  33. Which of the following are glob characters?

    (choose three)

    •  The question mark ?
    •  The asterisk *
    •  The square brackets [ and ]
    •  The dash character –
  34. The main purpose of using glob characters is to be able to provide a list of filenames to a command.

    True or False?

    •  True
    •  False
  35. The asterisk character is used to represent zero or more of any character in a filename.

    True or False?

    •  True
    •  False
  36. Compression of a file works by:

    •  Removing redundant information
    •  Consolidating multiple files into one
    •  Removing the high order bit from each byte
    •  Eliminating gaps within the file
    •  Storing most of the data on removable media and just leaving a pointer
  37. Lossy compression:

    (choose three)

    •  Is often used with images
    •  Is often used with documents
    •  Sacrifices some quality
    •  Decompresses to an identical version as the original
    •  Usually results better compression than lossless
  38. Which of the following commands can be used to compress a file?

    (choose three)

    •  gzip
    •  bunzip2
    •  cat
    •  bzip2
    •  zip
  39. The three main modes of tar are:

    (choose three)

    •  Copy
    •  Create
    •  Extract
    •  List
    •  Compress
  40. In the command tar -czf foo.tar.gz bar, what is the purpose of the f flag?

    •  Tells tar to write to the file that follows the flag
    •  Tells tar to copy only files, and not directories
    •  Specifies extra compression is to be used
    •  Tells tar to read from the file that follows the flag
    •  Tells tar to print the name of each file as it is processed