Linux Shared & Static Libraries Interview Questions And Answers
Download Static and Shared Libraries Interview Questions and Answers PDF
Enhance your Static and Shared Libraries interview preparation with our set of 20 carefully chosen questions. Each question is designed to test and expand your Static and Shared Libraries expertise. Suitable for all experience levels, these questions will help you prepare thoroughly. Download the free PDF to have all 20 questions at your fingertips. This resource is designed to boost your confidence and ensure you're interview-ready.
20 Static and Shared Libraries Questions and Answers:
Static and Shared Libraries Job Interview Questions Table of Contents:
1 :: Which one of the following command can list the symbols defined in a library?
a) mn
b) nm
c) nn
d) mm
b) nm
Read More2 :: In linux, the static libraries are mostly installed in:
a) /usr/lib
b) /usr/local/lib
c) both (a) and (b)
d) none of the mentioned
c) both (a) and (b)
Read More3 :: The archive(ar) utility in linux can:
a) create a new static library
b) insert the object files into the static library
c) replace the object files into the static library
d) all of the mentioned
d) all of the mentioned
Read More4 :: To use the static library in the program:
a) header file must be provided to in the source code
b) path for the library must be specified
c) both (a) and (b)
d) none of the mentioned
c) both (a) and (b)
Read More5 :: If a program is linked against a static library then:
a) machine code of the used function is copied in the executable
b) used function definition is copied into the preprocessd code
c) used function definition is provided at the time of compiling
d) none of the mentioned
a) machine code of the used function is copied in the executable
Read More7 :: Libraries can be linked with ____ to create executables.
a) other libraries
b) other object files
c) both (a) and (b)
d) none of the mentioned
c) both (a) and (b)
Read More8 :: In Linux, the static libraries can be created by:
a) ar command
b) as command
c) ap command
d) aq command
a) ar command
Read More9 :: The library contains the:
a) pre-compiled object files
b) source files
c) header files
d) none of the mentioned
a) pre-compiled object files
Read More10 :: In linux shared libraries has the extension of:
a) .so
b) .si
c) .sl
d) none of the mentioned
a) .so
Read More11 :: Shared libraries can be shared between:
a) various running programs
b) only 2 running programs
c) only 8 running programs
d) none of the mentioned
a) various running programs
Read More12 :: In linux, shared library is a:
a) text file
b) binary file
c) device file
d) none of the mentioned
b) binary file
Read More13 :: In GCC compiler, "-shared" option is given to create the shared library with:
a) source files
b) object files
c) executables
d) none of the mentioned
b) object files
Read More14 :: After using the shared library, memory can be done free by calling:
a) dlclose
b) slclose
c) lclose
d) none of the mentioned
a) dlclose
Read More15 :: When a program is linked with a shared library:
a) only a small table is created in the executable
b) executable contains the whole content of respective .so file
c) executable contains nothing related with the shared libraries
d) none of the mentioned
a) only a small table is created in the executable
Read More16 :: For a shared library, version number is changed when:
a) changes done in code make the shared library incompatible with the previous version
b) changes done in code does not make the shared library incompatible with the previous version
c) when minor number is changed
d) none of the mentioned
a) changes done in code make the shared library incompatible with the previous version
Read More17 :: Which command can be used to update the shared library system?
a) lconfig
b) ldconfig
c) slconfig
d) none of the mentioned
b) ldconfig
Read More18 :: Shared libraries are linked with the program:
a) at the time of creation of executable
b) at the run time
c) both (a) and (b)
d) none of the mentioned
b) at the run time
Read More19 :: Which option of GCC compiler provides the linking with shared libraries?
a) -lmylib
b) -lib
c) -mylib
d) none of the mentioned
a) -lmylib
Read More