Inicio
/
Tecnología
/
A Computer Science Student Completes a Program and Asks a Classmate for Feedback. The Classmate Suggests Rewriting Some of the Code to

Problemas

A computer science student completes a program and asks a classmate for feedback. The classmate suggests rewriting some of the code to include more procedural abstraction. Which of the following is NOT a benefit of procedural abstraction? A Making the code more readable B Making the code run faster Providing more opportunities for code reuse c D Reducing the amount of duplicated code

Roztwór

Magdalena maestro · Tutor durante 5 años
Weryfikacja ekspertów
4.3 (162 Votos)

Respuesta

B

Explicación

## Step 1Procedural abstraction is a programming concept that involves breaking down a complex problem into smaller, more manageable parts. This is done by creating procedures or functions that perform specific tasks. ## Step 2The benefits of procedural abstraction include making the code more readable, providing more opportunities for code reuse, and reducing the amount of duplicated code. This is because procedural abstraction allows for the creation of modular code that can be reused in different contexts, which reduces the need for repetitive coding.## Step 3However, procedural abstraction does not inherently make the code run faster. The speed of a program is determined by the efficiency of the code, not the level of abstraction. Therefore, option B is not a benefit of procedural abstraction.