Last Updated on October 23, 2022 by InfraExam

Ch25 Managing Shared Libraries Exam

  1. If a library is not accessible due to an error, the ldd would report which error message?

    • not found
    • library missing
    • lib missing
    • error: lib not configured
  2. Which command can an administrator run to rebuild the cache of shared libraries?

    • ldconfig
    • ldd
    • ldlist
  3. Which command is used to display the shared libraries of a dynamically linked executable?

    • ldlist
    • ldconfig
    • ldd
  4. Which environment variable can a user set, that will affect where shared libraries can be located and loaded?

    • LD_PATH
  5. Which of the following are benefits of a shared library: (choose two)

    • Programs run faster
    • Programs run slower
    • Programs can be smaller
    • Programs use a more consistent base of code
  6. Which of the following commands would display the libraries used by the /bin/ls command?

    • ldd /bin/ls
    • ldconfig /bin/ls
    • listlib /bin/ls
    • ls -lib /bin/ls
  7. Which of the following contents is in the ldconfig configuration file by default?

    • include all
    • include*.conf
    • include ldconfig
    • include /etc/ldconfig
  8. Which of the following will find and load shared libraries when a program is executed?

    • The kernel
    • The init process
    • The dynamic linker
    • The scheduler
  9. Which two directories are automatically searched for shared libraries? (choose two)

    • /lib
    • /library
    • /usr/library
    • /usr/lib