Pagina de 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 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.

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.

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.

Solución

avatar
Ginaélite · Tutor durante 8 años
expert verifiedVerificación de expertos
4.5 (275 votos)

Responder

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.

Explicar

## Step 1<br />The 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.<br /><br />## Step 2<br />Let's analyze each option:<br /><br />### A. The student is changing the search procedure's internal abstractions.<br />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.<br /><br />### B. The student is modifying the search procedure to take a definition as an argument and return the corresponding word.<br />This statement is also incorrect. The student is not modifying the search procedure. The student is only calling the procedure, not changing its functionality.<br /><br />### C. The student is reusing the computer scientist's procedural abstraction by knowing what the procedure does without knowing how it does it.<br />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.<br /><br />### D. The student is reusing the computer scientist's procedural abstraction by using duplicate code each time a search needs to occur.<br />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.
Haz clic para calificar: