Linux Shared & Static Libraries Interview Preparation Guide Download PDF
Linux Shared & Static Libraries frequently Asked Questions in various Static and Shared Libraries job Interviews by interviewer. The set of questions here ensures that you offer a perfect answer posed to you. So get preparation for your new job hunting
20 Static and Shared Libraries Questions and Answers:
Table of Contents
2 :: 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)
3 :: 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
5 :: 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
7 :: 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)
8 :: In Linux, the static libraries can be created by:
a) ar command
b) as command
c) ap command
d) aq command
a) ar command
9 :: 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
10 :: In linux shared libraries has the extension of:
a) .so
b) .si
c) .sl
d) none of the mentioned
a) .so
11 :: 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
12 :: In linux, shared library is a:
a) text file
b) binary file
c) device file
d) none of the mentioned
b) binary file
15 :: 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
16 :: 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