Module design is used to maximize cohesion and minimize coupling. Which of the following is the key to implement this rule? (A) Inheritance (B) Polymorphism (C) Encapsulation (D) Abstraction

1 Answer

Answer :

(C) Encapsulation

Related questions

Description : A good software design must have (A) High module coupling, High module cohesion (B) High module coupling, Low module cohesion (C) Low module coupling, High module cohesion (D) Low module coupling, Low module cohesion

Last Answer : (C) Low module coupling, High module cohesion

Description : …………. Is the process of creating new classes, called derived classes from existing classes called base class. A) Inheritance B) Encapsulation C) Polymorphism D) Overloading

Last Answer : A) Inheritance

Description : ………… enable us to hide, inside the object, both the data fields and the methods that act on that data. A) Encapsulation B) Polymorphism C) Inheritance D) Overloading

Last Answer : A) Encapsulation

Description : .................. allows to create classes which are derived from other classes, so that they automatically include some of its "parent's" members, plus its own members. (A) Overloading (B) Inheritance (C) Polymorphism (D) Encapsulation 

Last Answer : (B) Inheritance

Description : The relationship of data elements in a module is called (A) Coupling (B) Modularity (C) Cohesion (D) Granularity

Last Answer : (C) Cohesion Explanation: Cohesion is the indication of the relationship within module. Coupling is the indication of the relationships between modules. While designing you should strive for high cohesion. While designing you should strive for low coupling. 

Description : Which of the following statement(s) is/are true with respect to software architecture? S1: Coupling is a measure of how well the things grouped together in a module belong together logically. S2: Cohesion is a measure of the ... ) Only S1 and S2 (2) Only S3 (3) All of S1, S2 and S3 (4) Only S1

Last Answer : Answer: 2

Description : Describe following terms: Inheritance, data abstraction, data encapsulation, dynamic binding.

Last Answer : Inheritance: 1. Inheritance is the process by which objects of one class acquire the properties of objects of another class. 2. It supports the concept of hierarchical classification. It also provides the ... with a given procedure call is not known until the time of the call at run-time.

Description : Abstraction and encapsulation are fundamental principles that underlie the object oriented approach to software development. What can you say about the following two statements? I. Abstraction allows us to focus on what something ... and II are correct. (3) Only II is correct. (4) Only I is correct.

Last Answer : (1) Neither I nor II is correct.

Description : Which of the following cloud concept is related to pooling and sharing of resources? a) Polymorphism b) Abstraction c) Virtualization d) None of the mentioned

Last Answer : Virtualization

Description : A software design is highly modular if : (A) cohesion is functional and coupling is data type. (B) cohesion is coincidental and coupling is data type. (C) cohesion is sequential and coupling is content type. (D) cohesion is functional and coupling is stamp type.

Last Answer : (A) cohesion is functional and coupling is data type.

Description : Cohesion is an extension of: (A) Abstraction concept (B) Refinement concept (C) Information hiding concept (D) Modularity

Last Answer : (C) Information hiding concept 

Description : In C++, polymorphism requires: (A) Inheritance only (B) Virtual functions only (C) References only (D) Inheritance, Virtual functions and references

Last Answer : (D) Inheritance, Virtual functions and references 

Description : A Design concept Refinement is a: (A) Top-down Approach (B) Complementary of Abstraction concept (C) Process of elaboration (D) All of the above

Last Answer : (D) All of the above

Description : What is difference between Encapsulation And Abstraction?

Last Answer : Ans. 1.Abstraction solves the problem at design level while encapsulation solves the problem at implementation level 2.Abstraction is used for hiding the unwanted data and giving relevant data. ... and Display Screen are connect with each other using different circuits , it explains Encapsulation.

Description : Explain data encapsulation and data abstraction.

Last Answer : Data encapsulation: The wrapping up of data and function into a single unit (called class) is known as encapsulation. The data is not accessible to the outside world, and only those functions ... as they hold information. The functions that operate on these data are called as member functions.

Description : Which of the following cloud concept is related to pooling and sharing of resources? a) Polymorphism b) Abstraction c) Virtualization d) None of the mentioned

Last Answer : Virtualization

Description : Which of the following cloud concept is related to pooling and sharing of resources? a) Polymorphism b) Abstraction c) Virtualization d) None of the mentioned

Last Answer : Virtualization

Description : Define the following terms: (i) Data abstraction (ii) Class (iii) Dynamic binding (iv) Polymorphism

Last Answer : (i) Data abstraction: Abstraction refers to the act of representing essential features without including the background details or explanation. Data abstraction is the process of defining a data type, often ... more than one form at different instances depending on the type or number of arguments. 

Description : ....................... is the key to .................. A) Serialization, persistence B) Persistence, inheritance C) Inheritance, object D) Persistence, serialization

Last Answer : A) Serialization, persistence

Description : ....................is the key to ........................ A) Serialization, persistence B) Persistence, inheritance C) Inheritance, object D) Persistence, serialization

Last Answer : C) Inheritance, object

Description : Define the following: a. Aggregation among objects. b. Class. c. Repeated inheritance. d. Encapsulation. e. Scenario.

Last Answer : Ans: a).Aggregation among objects Aggregation among objects represents a relationship. It is a whole/part relationship. Aggregation may imply containment. b).Class A class is a template that specifies the ... or it can be shown as an event trace diagram in which events between objects are shown.

Description : Why is my Firefox not displaying the upper right function buttons of 'minimize', 'maximize' and 'close'?

Last Answer : answer:Perhaps you accidentally pressed the F11 key. Press it once to see if you get those buttons back.

Description : Clicking on this button reduces the window on the taskbar (a) Restore (b) Maximize (c) Minimize (d) Close -Technology

Last Answer : (c) Minimize button reduces the window on the taskbar.

Description : Clicking on this button enlarges the window to its original size (a) Restore (b) Maximize (c) Minimize (d) Close -Technology

Last Answer : (b) Maximize button enlarges the application window to fill the whole screen or enlarges the window to its original size.

Description : iv) A rectangular coil free to rotate is placed in uniform magnetic field with its plane parallel to the magnetic lines of force. Then the coil willa) rotate to maximize the magnetic flux through ... since the magnetic flux through its plane is zero.d) experience the constant torque equal to NBIA

Last Answer : iv) A rectangular coil free to rotate is placed in uniform magnetic field with its plane parallel ... d) experience the constant torque equal to NBIA

Description : Which identifies the reason why producers try to minimize costs and maximize revenue?

Last Answer : The profit motive.

Description : Holistic approach of total organization needs allows projects to be staffed and scheduled in order to A. Replace System Performance B. Minimize System Performance C. Maximize System Performance D. Optimize System Performance

Last Answer : Optimize System Performance

Description : Definition of energy management given by cape hart , turner and Kennedy is ____ A. The Judicious and effective use of energy to maximize profits and enhance competitive position B. The Judicious and ... The systematic approach for decision making in area of energy management. D. All of the above

Last Answer : The Judicious and effective use of energy to maximize profits and enhance competitive position

Description : To maximize the combustion efficiency, which of the following in the flue gas needs to be done? a) maximize O2 b) maximize CO2 c) minimize CO2 d) maximize CO

Last Answer : b) maximize CO2

Description : In market-penetration pricing, the company's objective is to ________, believing that higher sales volume will lead to lower unit costs and higher long-run profits. A. Block competitive launches B. ... their market share C. Minimize their market share D. Maximize volume E. None of the above

Last Answer : B. Maximize their market share

Description : Karnaugh map is used for the purpose of (A) Reducing the electronic circuits used. (B) To map the given Boolean logic function. (C) To minimize the terms in a Boolean expression. (D) To maximize the terms of a given a Boolean expression.

Last Answer : (C) To minimize the terms in a Boolean expression.

Description : Superconducting materials are being used in the Superconducting Super Collider to: w) cool the particles. x) minimize electrical power consumption. y) maximize the acceleration potentials. z) provide radiation shielding.

Last Answer : ANSWER: X -- MINIMIZE ELECTRICAL POWER CONSUMPTION.

Description : What is Encapsulation? How is it implemented in Java?

Last Answer : A: Binding up of data and associated functions together into a single unit called (class) is called Encapsulation. In Java, it is implemented by the use of a class.

Description : In ……………………. mode, a common technique in packet-switched networks consists of wrapping a packet in a new one. A) Tunneling B) Encapsulation C) Both A and B D) None of the above

Last Answer : C) Both A and B

Description : The “part-whole”, or “a-part-of”, relationship in which objects representing the components of something associated with an object representing the entire assembly is called as (A) Association (B) Aggregation (C) Encapsulation (D) Generalisation

Last Answer : (B) Aggregation

Description : What is Data Abstraction? How is it implemented in Java?

Last Answer : A: Act of representing only essential features without including its background details is called Abstraction. Data Abstraction can also be defined as the process of hiding the implementation details and showing ... Java, it is implemented by the use of interfaces or by making the class abstract.

Description : In windows 2000 operating system all the processor-dependent code is isolated in a dynamic link library called (A) NTFS file system (B) Hardware abstraction layer (C) Microkernel (D) Process Manager

Last Answer : (B) Hardware abstraction layer

Description : Which among the following definitions are correct: a) Object - Any entity that has state and behavior is known as an object. b) Class - Collection of objects is called class. It is logical entity. c) ... re-usability and is used to achieve run time polymorphism. d) All of the above e) None of These

Last Answer : d) All of the above

Description : What is Polymorphism? How is it implemented in Java?

Last Answer : A: It literally means the ability to take ‘more than one forms’. The ability of a method to behave in more than one form is called polymorphism. In Java, it is implemented by method (function) overloading (compile time polymorphism) and method overriding (runtime polymorphism).

Description : Which of the following correctly describes overloading of functions? (A) Virtual polymorphism (B) Transient polymorphism (C) Ad-hoc polymorphism (D) Pseudo polymorphism

Last Answer : (C) Ad-hoc polymorphism

Description : Define cohesion & coupling? Give suitable examples.

Last Answer : Ans Coupling:Coupling refers to the strength of the relationship between modules in a system. Coupling represents how strongly different modules are interconnected with each other. Cohesion: Cohesion ... Cohesion represents how strongly the internal elements of a module are bound to each other.

Description : Explain the following with the help of an example (i) Common coupling (ii) Communicational cohesion (iii) Class diagram (iv) Structure chart

Last Answer : Ans. (i) Common coupling: Common coupling is when two modules share the same global data (e.g. a global variable). Changing the shared resource implies changing all the modules using it ... Whether each identifiable function is a manageable entity or should be broken down into smaller components.

Description : All the classes necessary for windows programming are available in the module : (A) win.txt (B) win.main (C) win.std (D) MFC

Last Answer : (A) win.txt

Description : Which of the following statement(s) regarding a linker software is/are true? I. A function of a linker is to combine several object modules into a single load module. II. A function of a linker is to replace absolute ... modules. (1) Only I (2) Only II (3) Both I and II (4) Neither I nor Il

Last Answer : Answer: 1

Description : In hierarchical routing with 4800 routers, what region and cluster sizes should be chosen to minimize the size of the routing table for a three layer hierarchy? (A) 10 clusters, 24 regions and 20 routers (B ... (C) 16 clusters, 12 regions and 25 routers (D) 15 clusters, 16 regions and 20 routers

Last Answer : (D) 15 clusters, 16 regions and 20 routers Rooters minimum, then regions minimum, then clusters minimum.

Description : Five jobs A, B, C, D and E are waiting in Ready Queue. Their expected runtimes are 9, 6, 3, 5 and x respectively. All jobs entered in Ready queue at time zero. They must run in ............. order to minimize average response time if 3 < ... , C (B) C, E, D, B, A (C) E, D, C, B, A (D) C, B, A, E, D

Last Answer : (B) C, E, D, B, A

Description : Based on the cardinality ratio and participation ............... associated with a relationship type, choose either the Foreign Key Design, the Cross Referencing Design or Mutual Referencing Design. (A) Entity (B) Constraints (C) Rules (D) Keys

Last Answer : (B) Constraints

Description : Write a program to implement multiple inheritance as shown in following Figure No.1: Accept and display data for one object of class result.  

Last Answer : Program: #include<iostream.h> #include<conio.h> class Subject1 { protected: float m1; }; class Subject2 { protected: float m2; }; class Result:public Subject1,public Subject2 { ... ; clrscr(); r.accept(); r.calculate(); r.display(); getch(); }

Description : Write a C++ program to implement following inheritance. Accept and display data for one programmer and one manager. Make display function virtual.  

Last Answer : #include #include class Employee  { int empid,empcode; public: void emp() { coutempid; coutempcode; } void virtual display() { cout

Description : Write a C++ program to implement inheritance shown in following figure: Accept and display data of one teacher and one student using object of class ‘Info’

Last Answer : #include<iostream.h> #include<conio.h> class Teacher { protected: char Name[20]; int empid; }; class Student { protected: char sname[20]; int rollno; }; class Info:public ... I.acceptT(); I.displayT(); I.acceptS(); I.displayS(); getch(); }