1. What are two characteristics of programming libraries? (Choose 2 answers)

Answer: B,E

Explanation:

The two characteristics of programming libraries are that the functions in a single library usually serve a common purpose and a single library normally includes more than one function.

Programming libraries are collections of pre-written code that provide specific functionality, allowing developers to avoid redundancy and streamline their programming tasks. Therefore, the functions within a single library are typically designed to work together towards a common goal, and a library usually encompasses multiple functions to achieve that purpose.

A) A single program can only include one library.

This statement is incorrect as a single program can utilize multiple libraries simultaneously. The ability to include more than one library is a fundamental feature of programming, enabling developers to access a wide range of functionalities.

B) The functions in a single library usually serve a common purpose.

This statement is correct. Programming libraries are designed to group functions that are related and serve a specific purpose, making it easier for developers to find and use them efficiently within their programs.

C) All of a language's libraries are automatically included in a program.

This statement is incorrect. In most programming environments, libraries must be explicitly included in the program by the developer, allowing for selective use of libraries based on the program's needs.

D) Using libraries will always make a program run less efficiently.

This statement is incorrect. While there can be instances where excessive or poorly implemented use of libraries might impact performance, libraries are generally designed to enhance efficiency by providing optimized code.

E) A single library normally includes more than one function.

This statement is correct. Libraries are typically composed of multiple functions that work together, providing a suite of tools for developers to accomplish related tasks within their applications.

F) One library will contain one function but can have several variables.

This statement is incorrect. While a library can indeed contain variables, it is not limited to just one function. Most libraries are structured to include several functions that are related to the same domain of functionality.

Conclusion

The correct answers highlight essential characteristics of programming libraries: they commonly group functions serving a related purpose, and they usually contain multiple functions. Other options fail to accurately represent the flexible and efficient nature of libraries in programming, which are designed to enhance usability and functionality in software development.