QUESTION IMAGE
Question
which of the following are examples of abstraction? select two answers. a diagram of a computer circuit is drawn using logic gates. code which has been written in a high - level language is rewritten in another high - level language with a different syntax. a programmer writes a procedure called volumesphere which has a parameter radius and computes the area of a sphere with that radius. she uses this in her code each time the volume of a sphere needs to be computed. a programmer found an error in her code and debugs it by rewriting every line of code, one at a time.
Abstraction simplifies complex systems by hiding unnecessary details. Using "logic gates" in a computer - circuit diagram abstracts away the physical details of the circuit components. Creating a procedure like volumeSphere is an abstraction as it encapsulates the complex calculation of sphere volume into a single - callable entity. Rewriting code between high - level languages or debugging by rewriting lines are not examples of abstraction.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
A. A diagram of a computer circuit is drawn using "logic gates".
C. A programmer writes a procedure called volumeSphere which has a parameter radius and computes the area of a sphere with that radius. She uses this in her code each time the volume of a sphere needs to be computed.