Linux Shared & Static Libraries Interview Preparation Guide

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 youre interview-ready.
Tweet Share WhatsApp

20 Static and Shared Libraries Questions and Answers:

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
Download PDFRead All Static and Shared Libraries Questions

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

4 :: 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)

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
Download PDFRead All Static and Shared Libraries Questions

6 :: Which gcc option is used to specify the library?
a) -c
b) -l
c) -a
d) -o

b) -l

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
Download PDFRead All Static and Shared Libraries Questions