Vidyalelo
MySQL · Q390

MySQL

Programming · MySQL · question 390

Q390

On Unix, linking uses dynamic libraries by default.

A.
True
Answer
B.
False

Answer: Option A

Solution

Answer: Option A
Solution:
This question is about how programs on Unix-like operating systems (like Linux and macOS) connect to libraries. Libraries are collections of pre-written code that programs can use to do specific tasks.

There are two main ways to link to libraries: static linking and dynamic linking.

* Static linking: The library code is directly copied into the program when it's compiled. This makes the program larger but independent of the library files.

* Dynamic linking: The program only keeps a reference to the library, and the actual code is loaded when the program runs. This makes the program smaller, but it depends on the library files being present on the system.

The answer to the question is:
Option A: True

On Unix, the default behavior is to use dynamic linking. This means that programs linked on Unix systems will typically rely on dynamic libraries.