Shared Libraries Questions & Answers

This set of Linux / Unix questions and answers focuses on shared libraries.

1. In linux shared libraries has the extension of
a) .so
b) .si
c) .sl
d) none of the mentioned
View Answer

Answer: a
Explanation: None.

2. 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
View Answer

Answer: a
Explanation: None.

3. 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
View Answer

Answer: a
Explanation: None.

4. In linux, shared library is a
a) text file
b) binary file
c) device file
d) none of the mentioned
View Answer

Answer: b
Explanation: None.
advertisement
advertisement

5. 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
View Answer

Answer: b
Explanation: None.

6. Which option of GCC compiler provides the linking with shared libraries?
a) -lmylib
b) -lib
c) -mylib
d) none of the mentioned
View Answer

Answer: a
Explanation: None.
Sanfoundry Certification Contest of the Month is Live. 100+ Subjects. Participate Now!

7. After using the shared library, memory can be done free by calling
a) dlclose
b) slclose
c) lclose
d) none of the mentioned
View Answer

Answer: a
Explanation: None.

8. Shared libraries are linked with the program
a) at the time of creation of executable
b) at the run time
c) at the time of creation of executable & run time
d) none of the mentioned
View Answer

Answer: b
Explanation: None.
advertisement

9. 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
View Answer

Answer: a
Explanation: None.

10. Which command can be used to update the shared library system?
a) lconfig
b) ldconfig
c) slconfig
d) none of the mentioned
View Answer

Answer: b
Explanation: None.
advertisement

Sanfoundry Global Education & Learning Series – Linux Administration & Programming.
Here’s the list of Best Books in Linux Commands & Shell Programming.
Here’s the list of Best Books in Linux Kernel, Device-Drivers & System Programming.

To practice all questions on Linux Administration & Programming, here is complete set of 1000+ Multiple Choice Questions and Answers on Linux.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.