Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

question 6 of 25 why is abstraction usually a good practice when progra…

Question

question 6 of 25
why is abstraction usually a good practice when programming?

a. it allows the programmer to add more code to a program.

b. it can make the code more complex and thorough.

c. it can make the code easier to read and understand.

d. it allows the programmer to write more detailed code.

Explanation:

Brief Explanations

Abstraction in programming simplifies complex systems by hiding unnecessary details and focusing on essential features. Option A is incorrect as abstraction isn't about adding more code. Option B is wrong because abstraction aims to simplify, not make code more complex. Option D is incorrect as abstraction reduces detail to focus on the big picture. Option C is correct because by hiding implementation details, abstraction makes code more readable and understandable.

Answer:

C. It can make the code easier to read and understand.