Inicio
/
Tecnología
/
A Student Is Developing a Program That Allows Users to Look up the Definitions of Words That Appear in a Book. The Student Plans to

Problemas

A student is developing a program that allows users to look up the definitions of words that appear in a book. The student plans to perform a large number of searches through a dictionary containing words and their definitions. The student will use a procedure written by a computer scientist to quickly search the dictionary (and knows that the procedure will return a definition if one is available). The student cannot modify the search procedure written by the computer scientist but can call the procedure by supplying 8 word. Which of the following is a true statement about the student's use of the computer scientist's search procedure? A The student is changing the search procedure's internal abstractions. B The student is modifying the search procedure to take a definition as an argument and return the corresponding word. C The student is reusing the computer scientist's procedural abstraction by knowing what the procedure does without knowing how it does it D The student is reusing the computer scientist's procedural abstraction by using duplicate code each time a search needs to occur.

Roztwór

Gina élite · Tutor durante 8 años
Weryfikacja ekspertów
4.5 (275 Votos)

Respuesta

The correct answer is 'C'. The student is reusing the computer scientist's procedural abstraction by knowing what the procedure does without knowing how it does it.

Explicación

## Step 1The problem presents a scenario where a student is using a search procedure written by a computer scientist. The student cannot modify the search procedure but can call it by supplying a word. The task is to identify the correct statement about the student's use of the search procedure.## Step 2Let's analyze each option:### A. The student is changing the search procedure's internal abstractions.This statement is incorrect because the student is not modifying the search procedure's internal abstractions. The student is only calling the procedure, not changing its internal structure.### B. The student is modifying the search procedure to take a definition as an argument and return the corresponding word.This statement is also incorrect. The student is not modifying the search procedure. The student is only calling the procedure, not changing its functionality.### C. The student is reusing the computer scientist's procedural abstraction by knowing what the procedure does without knowing how it does it.This statement is correct. The student is reusing the computer scientist's procedural abstraction by knowing what the procedure does without knowing how it does it. The student is using the procedure without understanding its internal workings, which is the essence of procedural abstraction.### D. The student is reusing the computer scientist's procedural abstraction by using duplicate code each time a search needs to occur.This statement is incorrect. The student is not using duplicate code each time a search needs to occur. The student is calling the procedure, not writing the same code each time.