Linux Shared & Static Libraries Question:
Download Questions PDF

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

Static and Shared Libraries Interview Question
Static and Shared Libraries Interview Question

Answer:

c) both (a) and (b)

Download Static and Shared Libraries Interview Questions And Answers PDF

Previous QuestionNext Question
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
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