Skip to main content

CIT383 TMA2

1 Which of the following programming languages does not support destructors?
*C++
*Java
*Ada
*None is correct

2 Which of the following is a special method that are used to initialize a new object of a class?
*Objects
*Modularity
*Constructors
*None is correct

3 Which of the following is the act of creating an object of a class?
*Object Reuse
*Modularity
*Object Instantiation
*None is correct

4 Which of the following class makes software development an easy task?
*The association property
*The association module
*The Object property
*The module property

5 What is the attribute that makes a constructor look like a method but differs from a method?
*A constructor must not have the same name as the class
*A constructor must have the same name as the class
*A constructor has return type
*None is correct

6 What is the only difference between a static method and normal methods?
*Normal Keyword
*Static keyword
*Dynamic Keyword
*Object keywords

7 Which of the following options allows a new class to be created by using an existing class’s members and manipulating them with new or modified capabilities?
*Inheritance
*A virtual machine
*Compozsition
*Encapusulation

8 Which of the following is the act of designing a class in a way that the objects of the class behave in different ways?
*Data hiding
*Composition
*Polymorphism
*Constructors

9 Which of the options is a method that does not provide implementations for its action?
*A data hiding
*An abstract
*A Destructor
*An Inheritance

10 Which of the following options is used for assigning common functionality to possible unrelated classes?
*Data Hiding
*Interfaces
*An abstract
*An Inheritance

11 Which of the following options is not the advantage of software reusability?
*Programmers build more dependable and efficient systems because existing classes and components often have gone through extensive testing
*debugging and performance tuning
*It saves programmers the time and effort they would have used in re-inventing the wheels
*None is correct

12 Which of the following options is to delete unused objects from the memory?
*Constructors
*Destructors
*Modularity
*None is correct

13 Which of the following classes makes it possible for future software systems to reuse the class?
*Holding Software
*Application Software
*manufacturer's software
*Packaging software

14 Which of the following are two major aspects of Object Oriented Programming that promotes software reuse?
*Modularity and Abstraction
*Inheritance and Polymorphism
*Encapsulation and overriding
*None is correct

15 Which of the following is referred to when Related classes are grouped into packages?
*The Java Class Library
*The Java Application Programming Interface
*All the options
*None is correct

16 Which of the following options is the factor that affects the future of software development?
*Software Packaging
*Software Application
*Software reuse
*None is correct

17 which of the options is the fundamental building block of code when creating object-oriented software?
*A code
*A class
*A Modlue
*An object

18 The mechanism for returning memory to the operating system when it is no longer needed by an object is called?
*Constructors
*Garbage collection
*Destructors
*Over riding

19 Which of the following options is the abstract concept for an object that is created at design-time by the programmer?
*The Code
*The Module
*The Object
*The class

20 What is another name for static method?
*Object Method
*Modular Method
*Class Method
*None is correct

Comments

Popular posts from this blog

ICT Abbreviations And Their Meanings

We bet you dont know the full meaning of these acronyms. Read on? 1.) GOOGLE – Global Organization Of Oriented Group Language Of Earth. 2.) YAHOO – Yet Another Hierarchical Officious Oracle. 3.) WINDOW – Wide Interactive Network Development for Office work Solution. 4.) COMPUTER – Common Oriented Machine Particularly United and used under Technical and Educational Research. 5.) VIRUS – Vital Information Resources Under Siege. 6.) UMTS – Universal Mobile Telecommunications System 7.) AMOLED – Active-matrix organic light-emitting diode. 8.) OLED – Organic light-emitting diode. 9.) IMEI – International Mobile Equipment Identity. 10.) ESN – Electronic Serial Number. 11.) UPS – Uninterruptible power supply. 12. HDMI – High-Definition Multimedia Interface. 13.) VPN – Virtual private network. 14.) APN – Access Point Name. 15.) SIM – Subscriber Identity Module. 16.) LED – Light emitting diode. 17.) DLNA – Digital Living Network Alliance. 18.) RAM – Random access memory. 19.) ROM – Read only