Last Updated on March 13, 2022 by Admin 2

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
    • ld.so
    • ldd
    • ldlist
  3. Which command is used to display the shared libraries of a dynamically linked executable?

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

    • LD_PATH
    • LIBRARY_LD_PATH
    • LIBRARY_PATH
    • LD_LIBRARY_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 ld.so.conf.d/*.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