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 does without considering the complexities of how it works. II. Encapsulation allows us to consider complex ideas while ignoring irrelevant detail that would confuse us. (1) Neither I nor II is correct. (2) Both I and II are correct. (3) Only II is correct. (4) Only I is correct.

1 Answer

Answer :

(1) Neither I nor II is correct.

Related questions

Description : Consider the following statements related to compiler construction: I. Lexical Analysis is specified by context-free grammars and implemented by pushdown automata. II. Syntax Analysis is specified by regular expressions and implemented by ... Only l (2) Only ll (3) Both I and II (4) Neither I nor Il

Last Answer : Answer: 4

Description : Which of the following are facts about a top-down software testing approach? I. Top-down testing typically requires the tester to build method stubs. II. Top-down testing typically requires the tester to build test drivers. (1) only I (2) Only II (3) Both I and II (4) Neither I nor II

Last Answer : (1) only I

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 : 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

Last Answer : (C) Encapsulation

Description : Software Engineering is an engineering discipline that is concerned with: (1) how computer systems work. (2) theories and methods that underlie computers and software systems. (3) all ... (4) all aspects of computer-based systems development, including hardware, software and process engineering.

Last Answer : Answer: 3

Description : Which one of the following statements, related to the requirements phase in Software Engineering, is incorrect ? (A) Requirement validation is one of the activities in the requirements phase. (B) ... . (D) Function points is one of the most commonly used size metric for requirements. 

Last Answer : (C) “Modelling-oriented approach” is one of the methods for specifying the functional specifications. 

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 : Which of the following statement(s) is/are TRUE with regard to software testing? I. Regression testing technique ensures that the software product runs correctly after the changes during maintenance. II. Equivalence partitioning is a ... (1) only I (2) only II (3) both I and II (4) neither I nor II

Last Answer : (1) only I 

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 : Consider the table Student(stuid, name, course, marks). Which one of the following two queries is correct to find the highest marks student in course 5? Q.1. Select S.stuid From student S Where not exists (select * from student ... ) Q.1 (B) Q.2 (C) Both Q.1 and Q.2 (D) Neither Q.1 nor Q.2

Last Answer : (B) Q.2 Explanation: First query gives stuid of students whose marks are greater than all students taking course 5. Second query gives stuid of students whose marks are greater than any student taking ... comparison is between maximum of marks by any student in course 5. So the answer is option D.

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 : 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 : The scheme allows the transfer of scrip once the export obligation is complete. Which of the statements given above is/are correct ? (A) 1 only (B) 2 only (C) Both 1 and 2 (D) Neither 1 nor 2

Last Answer : Answer: Both 1 and 2

Description : Which of the following statements concerning Object-Oriented databases is FALSE? (A) Objects in an object-oriented database contain not only data but also methods for processing the data. (B ... Object-oriented databases store more types of data than relational databases and access that data faster.

Last Answer : (C) Object-oriented databases are more adapt at handling structures (analytical) data than relational databases.

Description : Superficially the term object-oriented , means that, we organize software as a (A) collection of continuous objects that incorporates both data structure and behaviour. (B) collection of ... and behaviour. (D) collection of objects that incorporates both discrete data structure and behaviour.

Last Answer : (C) collection of discrete objects that incorporates both data structure and behaviour.

Description : Briefly explain encapsulation and why it is important in object-oriented - programming.

Last Answer : Encapsulation is the principle that all of the data and functionality required by an object be contained by that object. This allows objects to exist as independent, interchangeable units of functionality without maintaining dependencies on other units of code.

Description : What are the different types of complexities?

Last Answer : A: Time Complexity (Temporal COmplexity) : The measure of the total amount of computer time taken to run for completion of an algorithm is known as time complexity. Space Complexity: The measure ... amount of memory space needed to run for completion of an algorithm is known as space complexity.

Description : Consider the following statements for priority queue: S1: It is a data structure in which the intrinsic ordering of the elements does determine the result of its basic operations. S2: The elements of a priority queue ... . (C) SI is incorrect and S2 is correct. (D) Both S1 and S2 are correct.

Last Answer : (D) Both S1 and S2 are correct.

Description : Consider the following two statements: (a) A publicly derived class is a subtype of its base class. (b) Inheritance provides for code reuse. Which of the following statements is correct? (A) Both the statements ( ... ) is correct and (b) is incorrect (D) Statement (a) is incorrect and (b) is correct

Last Answer : Answer: A

Description : Which of the following concurrency protocol ensures both conflict serializability and freedom from deadlock : I. 2-phase locking II. Time phase ordering (A) Both I & II (B) II only (C) I only (D) Neither I nor II

Last Answer : (B) II only

Description : Which of the following statement(s) with regard to an abstract class in JAVA is/are TRUE? I. An abstract class is one that is not used to create objects. II. An abstract class is designed only to act as a base class ... by other classes. (1) Only l (2) Only II (3) Neither I nor II (4) Both l and II

Last Answer : Both l and II

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 : 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 : 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 : Assurance services differ from consulting services in that they I. Focus on providing advice. II. Involve monitoring of one party by another. a. I only. b. II only. c. Both I and II. d. Neither I nor II.

Last Answer : II only.

Description : Consider a schema R(MNPQ) and functional dependencies M→N, P→Q. Then the decomposition of R into R1(MN) and R2(PQ) is ............. (1) Dependency preserving but not lossless ... and lossless join (3) Lossless join but not dependency preserving (4) Neither dependency preserving nor lossless join. 

Last Answer : Answer: 1

Description : Which of the following is/are correct with reference to Abstract class and interface ? (a) A class can inherit only one Abstract class but may inherit several interfaces. (b) An Abstract class can provide complete and default ... true (C) Both (a) and (b) are true (D) Neither (a) nor (b) is true

Last Answer : Answer: C

Description : Consider the following statements: 1. Balaghat is known for its diamond mines. 2. Majhgawan is known for its manganese deposits. Which of the statements given above is/are correct? [IAS 2007] (a) 1 only (b) 2 only (c) Both 1 and 2 (d) Neither 1 nor 2

Last Answer : Ans: (d)

Description : Consider the following statements: 1. Gondwana coal is a laminated, bituminous coal. . 2. Gondwana coal is completely free from moisture, sulphur and phosphorus. Which of the statements given above is/are correct? [IAS 2008] (a) 1 only (b) 2 only (c) Both 1 and 2 (d) Neither 1 nor 2

Last Answer : Ans: (a)

Description : Consider the following statements: 1. In India, groundnut crop is raised mostly during the Khartf season under rainfed conditions. 2. In India, tobacco is cultivated only in black cotton soils. Which of the statements given above is/ ... ] (a) 1 only (b) 2 only (c) Both 1 and 2 (d) Neither 1 nor 2

Last Answer : Ans: (a)

Description : Consider the following statements: 1. Chikmagalur is well-known for sugar production. 2. Mandya is well-known as a coffee-producing region. Which of the statements given above is/are correct? [IAS 2008] (a) 1 only (b) 2 only (c) Both 1and 2 (d) Neither 1 nor 2

Last Answer : Ans: (d)

Description : Consider the following statements: 1. India ranks first in the world in fruit production. 2. India ranks second in the world in the export of tobacco. Which of these statements is/are correct? [IAS 2003] (a) Only 1 (b) Only 2 (c) Both 1 and 2 (d) Neither 1 nor 2

Last Answer : Ans: (c)

Description : Consider the following statements: 1. India is the original home of the cotton plant. 2. India is the first country in the world to develop hybrid cotton variety leading to increased production. Which of these statements is/are correct ... ] (a) Only 1 (b) Only 2 (c) Both 1 and 2 (d) Neither 1 nor 2

Last Answer : Ans: (c)

Description : Consider the following statements: 1. Biodiversity hots pots are located only in tropical regions. 2. India has four biodiversity hots pots, i.e., Eastern Himalayas, Western Himalayas, Western Ghats and Andaman and Nicobar Islands. Which ... (a) 1 only (b) 2 only (c) Both 1 and 2 (d) Neither 1 nor 2

Last Answer : Ans: (d)

Description : Consider the following statements: 1. In the wet temperate forests at above 1500 m on the Nilgiris and Anaimalais, the Magnolias and Rhododendrons are commonly found. 2. Tropical dry evergreen forests are mostly found in Andhra Pradesh, ... (a) 1 only (b) 2 only (c) Both 1 and 2 (d) Neither 1 nor 2

Last Answer : Ans: (a)

Description : Consider the following statements: 1. In India, Red Panda is naturally found in the Western Himalayas only. 2. In India, Slow Loris lives in the dense forests of the North East. Which of the statements given above is/are correct? [IAS 2007] (a) 1 only (b) 2 only (c) Both 1 and 2 (d) Neither 1 nor 2

Last Answer : Ans: (b)

Description : Consider the following statements: 1. The south-west monsoon causes heavy rainfall in the Shillong plateau. 2. The north-east monsoon causes the rainfall over Orissa coast during winter. Which of these statements is/are correct ? [CDS 2003] (a) 1 only (b) 2 only (c) Both 1 and 2 (d) Neither 1 nor 2

Last Answer : Ans: (a)

Description : Consider the following statements: Among the Indian States: 1. Andhra Pradesh has the longest coastline 2. Gujarat has the highest number of airports Which of the statements given above is/are correct? [IAS 2004] (a) only 1 (b) only 2 (c) Both 1 and 2 (d) Neither 1 nor 2

Last Answer : Ans: (d)

Description : Consider the following statements: 1. Korba is west to Rourkela. 2. Rourkela is south to Ranehi. Which of the statements given above is/are correct? [CDS 2005] (a) 1 only (b) 2 only (c) Both 1 and 2 (d) Neither 1 nor 2

Last Answer : Ans: (c)

Description : Consider the following statements: 1. The continental shelves of Lakshadweep are originated due to coral reefs. 2. The continental shelves of western coast are due to faulting and submergence. Which of the statement(s) given above is/ ... (a) 1 only (b) 2 only (c) Both 1 and 2 (d) Neither 1 nor 2

Last Answer : Ans: (c)

Description : Consider the following statements: 1. Cherrapunji is located on the south side of Garo hills. 2. Cherrapunji is about 1700 m above mean sea level. Which of the statements given above is/are correct? [IAS 2008] (a) 1 only (b) 2 only (c) Both 1 and 2 (d) Neither 1 nor 2

Last Answer : Ans: (c)

Description : Consider the following statements: 1. when an electric bulb is switched on, the resistance of its tungsten filament increases. 2. the resistance of pure metals increases on heating. Which of the above statements is/are correct? (a) Both 1 and 2 (b) only 1 (c) only 2 (d) Neither 1 nor 2

Last Answer : Ans:(a)

Description : Consider the following statements: 1. A flute of smaller length produces waves of lower frequency. 2. Sound travels in rocks in the form of longitudinal elastic waves only. Which of the statements given above is/are correct? (a) 1 only (b) 2 only (c) Both 1 and 2 (d) Neither 1 nor 2

Last Answer : Ans:(d)

Description : Consider the following statements: 1. In a direct-to-home (DTH) system, the viewer dish antenna picks up signals from the satellite directly. 2. Cable operators receive signal from the satellite on large community dish antennas and ... ? (a) Only 1 (b) Only 2 (c) Both 1 and 2 (d) Neither 1 nor 2

Last Answer : Ans:(c)

Description : Consider the following statements: 1. Organic matter decreases the permeability of a soil. 2. Entrapped air decreases the permeability of a soil. Which of these statements are correct? (a) 1 only (b) 2 only (c) Both 1 &2 (d) Neither 1 nor 2

Last Answer : (c) Both 1 &2

Description : Consider the following statements: 1. Over the oceans there is more evaporation than precipitation. 2. On land it is more precipitation than evapo-transpiration. Which of these statements are correct? (a) Both 1 & 2 (b) Neither 1 nor 2 (c) 1 only (d) 2 only

Last Answer : (a) Both 1 & 2