6. Which two statements describe advantages to using programming libraries?

Answer: B,E

Explanation:

Using a library prevents a programmer from having to code common tasks by hand and improves productivity.

Programming libraries offer significant advantages by allowing developers to reuse pre-written code for common tasks, thereby preventing the need to write those functions manually. Additionally, utilizing libraries can greatly enhance a programmer's productivity as they can focus on building new features rather than reinventing the wheel.

A) Using libraries turns procedural code into object-oriented code.

This statement is incorrect because using libraries does not inherently change procedural code into object-oriented code. Libraries can be built in various programming paradigms, and their use does not necessitate a shift in coding style.

B) Using a library prevents a programmer from having to code common tasks by hand.

This statement accurately describes a major advantage of using programming libraries. By providing pre-written code for common functionalities, libraries save time and effort, allowing developers to implement features more efficiently.

C) Using a library minimizes copyright issues in coding.

While libraries can help manage code reuse, this statement is misleading. Copyright issues depend on the licensing of the library and how it is used rather than the use of libraries themselves, making this an incorrect advantage.

D) A program that uses libraries is more portable than one that does not.

This statement is not necessarily true. The portability of a program depends more on how the code is written and its dependencies rather than whether libraries are used. Some libraries may introduce compatibility issues that affect portability.

E) The programmer can improve productivity by using libraries.

This statement is correct, as leveraging libraries allows programmers to increase their efficiency by utilizing existing solutions and focusing on unique aspects of their projects instead of mundane coding tasks.

F) Libraries always make code run faster.

This statement is incorrect. While libraries can optimize certain functions, they do not guarantee faster execution times. The performance of a program using libraries depends on various factors, including the implementation and efficiency of the library itself.

Conclusion

The correct advantages of using programming libraries are that they prevent programmers from coding common tasks manually and significantly improve productivity. Other options either misrepresent the benefits of libraries or fail to apply universally, highlighting the effectiveness of libraries in streamlining development processes.