Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Which of the following is the best description of abstraction? a)obfuscation of the implementation of code b)showing the important code data c)hiding the important code

Which of the following is the best description of abstraction?

a)obfuscation of the implementation of code

b)showing the important code data

c)hiding the important code data

d)hiding the implementation of the code and showcasing only its features

Abstraction is used when which of the following is true?

a)The details are more visible.

b)The program is badly constructed.

c)The program is longer.

d)The details are low.

What is an abstract method?

a)any method that exists within a child node that overrides the parent node's method

b)any method that has no body statements and is declared with the reserved word abstract

c)any method that forbids alteration

d)any method

An object that is created by a class is what form of abstraction?

a)real abstraction

b)object oriented abstraction

c)hypothetical abstraction

d)logical abstraction

When thinking of abstraction, it is important to think about functions of software and hardware.A mobile phone and all the components that comprise it (camera, sensors, motherboard, etc.).If the phone's processor controls all the functions of the phone and the display only controls the display, which component of the phone has the highest level of abstraction to the user?

a)the device display

b)the phone's motherboard

c)the onboard camera

d)the entire device

Which of the following is a specific advantage to using polymorphic code?

a)It allows for the reuse of variables to save on memory usage.

b)There are no advantages.Polymorphic inheritance is dangerous and should be avoided at all costs.

c)The process of constructors for the creation of new objects from old ones of similar types saves time and money.

d)It allows the use of the same logic in programming to be used with objects of related type.

The use of abstraction has multiple applications, such as ______________

a)classes and objects

b)data and control functions

c)only data functions

d)only control functions

Which of these distinctions of modular programs over non-modular is true?

a)They are easier to change.

b)They are not that easier to understand and explain.

c)Testing and Debugging are comparatively complex.

d)They are easier to understand and explain.

What is an abstract class?

a)An abstract class is simply another name for base class.

b)a class that contains zero child classes

c)any class that cannot be instantiated

d)a class that is defined as a parent that contains one or more child classes

The principle of abstraction is to do which of the following?

a)Use abstraction as much as possible to ensure strong object oriented-programming.

b)Use abstraction as much as possible to avoid redundancy and duplication of code.

c)The use of abstraction avoids longer code.

d)Use abstraction only minimally.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions