Simulado LPI - 104 - I

60 Questions | Total Attempts: 45

SettingsSettingsSettings
LPI Quizzes & Trivia

Questions and Answers
  • 1. 
    What command displays all aliases defined in the current shell?seenagapeSeptember 29, 2015What command displays all aliases defined in the current shell? (Specify the command without any path information)
  • 2. 
    Which one do you like?What output will the following command sequence produce?​
    • A. 

      Result: 1 2 3 4 5 6

    • B. 

      Result: 6 5 4

    • C. 

      Result: 6 5 4 3 2 1

    • D. 

      Result: 3 2 1

    • E. 

      Result: 3 4 5 6 2 1

  • 3. 
    Which of the following statements is true?
    • A. 

      It is the process ID of the echo command.

    • B. 

      It is the process ID of the current shell.

    • C. 

      It is the exit value of the command executed immediately before echo.

    • D. 

      It is the exit value of the echo command.

  • 4. 
    Which command makes the shell variable named VARIABLE visible to subshells?
    • A. 

      Set VARIABLE

    • B. 

      Env VARIABLE

    • C. 

      Export $VARIABLE

    • D. 

      Export VARIABLE

    • E. 

      Set $VARIABLE

    • F. 

      Set $VARIABLE

    • G. 

      Set $VARIABLE

    • H. 

      Set $VARIABLE

  • 5. 
    What word is missing from the following SQL statement? insert into tablename ________(909, ‘text’); (Please specify the missing word using lower-case letters only.)
  • 6. 
    What output will the command seq 10 produce?
    • A. 

      A continuous stream of numbers increasing in increments of 10 until stopped.

    • B. 

      The numbers 1 through 10 with one number per line.

    • C. 

      The numbers 0 through 9 with one number per line.

    • D. 

      The number 10 to standard output.

  • 7. 
    Which directory will be copied to a new user’s home directory when the account is created by passing the By default, the contents of which directory will be copied to a new user’s home directory when the account is created by passing the -m option to the useradd command? (Specify the full path to the directory.)
  • 8. 
    What word is missing from the following SQL statement? __________ count(*) from tablename; (Please specify the missing word using lower-case letters only.)
  • 9. 
    Which output does: myfunction A B C Produce?After issuing: function myfunction { echo $1 $2 ; } in Bash, which output does: myfunction A B C Produce?
    • A. 

      A B C

    • B. 

      A C

    • C. 

      B C

    • D. 

      C B A

    • E. 

      A B

  • 10. 
    Which of the following commands puts the output of the command date into the shell variable mydate?Which of the following commands puts the output of the command date into the shell variable mydate?
    • A. 

      Mydate=”date”

    • B. 

      Mydate=”$(date)”

    • C. 

      Mydate=”${date}”

    • D. 

      Mydate=”exec date”

    • E. 

      Mydate=”$((date))”

  • 11. 
    Which of the following files, when existing, affect the behavior of the Bash shell?Which of the following files, when existing, affect the behavior of the Bash shell? (Choose TWO correct answers.)
    • A. 

      ~/.bashconf

    • B. 

      ~/.bashrc

    • C. 

      ~/.bashdefaults

    • D. 

      ~/.bash_etc

    • E. 

      ~/.bash_profile

  • 12. 
    What is the difference between the commands test -e path and test -f path?seenagapeSeptember 29, 2015What is the difference between the commands test -e path and test -f path?
    • A. 

      They are equivalent options with the same behaviour.

    • B. 

      The -f option tests for a regular file. The -e option tests for an empty file.

    • C. 

      Both options check the existence of the path. The -f option also confirms that it is a regular file.

    • D. 

      The -f option tests for a regular file. The -e option tests for an executable file.

  • 13. 
    What is the difference between the commands test -e path and test -f path?seenagapeSeptember 29, 2015What is the difference between the commands test -e path and test -f path?
    • A. 

      They are equivalent options with the same behaviour.

    • B. 

      The -f option tests for a regular file. The -e option tests for an empty file.

    • C. 

      Both options check the existence of the path. The -f option also confirms that it is a regular file.

    • D. 

      The -f option tests for a regular file. The -e option tests for an executable file.

  • 14. 
    How can the existing environment variable FOOBAR be suppressed for the execution of the script./myscript only?seenagapeSeptember 29, 2015How can the existing environment variable FOOBAR be suppressed for the execution of the script./myscript only?
    • A. 

      Set -a FOOBAR=””;./myscript

    • B. 

      Env -u FOOBAR./myscript

    • C. 

      Unset -v FOOBAR;./myscript

    • D. 

      Env -i FOOBAR./myscript

  • 15. 
    What is the meaning of 12942?seenagapeSeptember 29, 2015When the command echo $$ outputs 12942, what is the meaning of 12942?
    • A. 

      It is the process ID of the echo command.

    • B. 

      It is the process ID of the current shell.

    • C. 

      It is the process ID of the last command executed.

    • D. 

      It is the process ID of the last command which has been placed in the background.

  • 16. 
    What output will the following command produce?seenagapeSeptember 29, 2015What output will the following command produce? seq 1 5 20
    • A. 

      1 6 11 16

    • B. 

      1 5 10 15

    • C. 

      1 2 3 4

    • D. 

      2 3 4 5

    • E. 

      5 10 15 20

    • F. 

      5 10 15 20

  • 17. 
    Which of the following words is used to restrict the records that are returned from a SELECT SQL query based oseenagapeSeptember 29, 2015Which of the following words is used to restrict the records that are returned from a SELECT SQL query based on asupplied criteria for the values in the records?
    • A. 

      WHERE

    • B. 

      IF

    • C. 

      CASE

    • D. 

      FROM

  • 18. 
    Which of the following commands lists all defined variables and functions within Bash?seenagapeSeptember 29, 2015Which of the following commands lists all defined variables and functions within Bash?
    • A. 

      Env

    • B. 

      Set

    • C. 

      Env -a

    • D. 

      Echo $ENV

  • 19. 
    What is the purpose of the file /etc/profile?seenagapeSeptember 29, 2015What is the purpose of the file /etc/profile?
    • A. 

      It contains environment variables that are set when a user logs in.

    • B. 

      It contains default application profiles for users that run an application for the first time.

    • C. 

      It contains security profiles defining which users are allowed to log in.

    • D. 

      It contains the welcome message that is displayed after login.

  • 20. 
    Which of the following are requirements in order to run a shell script like a regular command from anywhere inseenagapeSeptember 29, 2015Which of the following are requirements in order to run a shell script like a regular command from anywhere in thefilesystem? (Choose THREE correct answers.)
    • A. 

      The user issuing the command must be in the group script.

    • B. 

      The script file must be found in the $PATH.

    • C. 

      The script file must have the executable permission bit set.

    • D. 

      The script must begin with a shebang-line (#!) that points to the correct interpreter.

    • E. 

      The file system on which the script resides must be mounted with the option scripts.

  • 21. 
    Which file used by XDM specifies the default wallpaper?seenagapeSeptember 29, 2015Which file used by XDM specifies the default wallpaper?
    • A. 

      /etc/X11/xdm/Xsetup

    • B. 

      /etc/X11/xdm.conf

    • C. 

      /etc/X11/xdm/Defaults

    • D. 

      /etc/X11/defaults.conf

  • 22. 
    Which command can be used to investigate the properties for a particular window in X by clicking that window?seenagapeSeptember 29, 2015Which command can be used to investigate the properties for a particular window in X by clicking that window? (SpecifyONLY the command without any path or parameters.)
  • 23. 
    How is the content of the section SectionName associated with that section?seenagapeSeptember 29, 2015The X11 configuration file xorg.conf is grouped into sections. How is the content of the section SectionName associatedwith that section?
    • A. 

      It is placed after an initial unindented Section “SectionName” and must be indented by exactly one tab character.

    • B. 

      It is placed after the row [SectionName].

    • C. 

      It is placed in curly brackets as in Section SectionName { … }.

    • D. 

      It is placed between the tags and

    • E. 

      It is placed between a line containing Section “SectionName” and a line containing EndSection.

  • 24. 
    What is the purpose of a screen reader?seenagapeSeptember 29, 2015What is the purpose of a screen reader?
    • A. 

      It reads text displayed on the screen to blind or visually impaired people.

    • B. 

      It reads the parameters of the attached monitors and creates an appropriate X11 configuration.

    • C. 

      It displays lines and markers to help people use speed reading te

    • D. 

      It manages and displays files that contain e-books.

  • 25. 
    How is a display manager started?seenagapeSeptember 29, 2015How is a display manager started?
    • A. 

      It is started by a user using the command startx.

    • B. 

      It is started like any other system service by the init system.

    • C. 

      It is started by inetd when a remote hosts connects to the X11 port.

    • D. 

      It is started automatically when a X11 user logs in to the system console.

Related Topics
Back to Top Back to top