Skip to main content

CIT383 TMA4

1 The technique of developing and maintaining a large program into modules is called?
*This technique is called divide and Rule
*This technique is called divide and conquer
*This technique is called recursive
*None of the above

2 Which of the following should be put into consideration When methods are created?
*The data type
*Number of parameters
*The order of parameters
*All the options

3 Which of the following is not one of the restrictions to overloading the conversion operators?
*You may not create operators that convert a class to the object data type
*You may not create operators that convert a class to a defined interface
*You may not create operators that convert from a base class into a class derived from that base class
*None of the options

4 What is the name given to the pieces of data passed into methods after creation?
*Signature
*Arguments
*Callers
*None of the options

5 What is the name given to a method that does not return any value to its caller?
*A return type of void
*A return type of caller
*A return type of Object
*None of the options

6 What happens when supplying any data other than the one specified in the method parameters?
*Compilation Signature
*Compilation Void
*Compilation error
*None of the options

7 Which of the options is the process of converting an argument’s value to the type that the method expects to receive in its corresponding parameter?
*Argument
*Argument promotion
*Argument Object
*Argument Caller

8 Which of the following is commonly used to create methods with the same name that perform the same but on different numbers of arguments?
*Method overloading
*Method Signature
*Method Construction
*None of the options

9 Which of the following is not a kind of modules that exist in Java?
*Methods
*Classes
*Packages
*None of the options

10 What is another name for Methods in other languages?
*Functions
*Procedures
*All the options
*None of the options

11 Which of the following is not the motivation for modularizing a program into methods?
*The divide and conquer approach
*Software reusability
*Code Maintainability
*None of theoptions

12 What is the meaning of "A method is invoked"?
*Made to perform its designated task
*Made not to perform its designated task
*All the options
*None of the options

13 What is another name for the pieces of information to perform tasks in OOP?
*Parameters
*Methods
*Callers
*None of the options

14 What is the name given to the factors- data type, number of parameters and the order of parameters?
*Method Call
*Method signature
*All the options
*None of the options

15 Which of the following is the process through which methods of the name are declared in the same class?
*Method offloading
*Method overloading
*All the options
*None of the options

16 Which of the following Object-Oriented programming languages does not support operator overloading?
*C++
*Java
*PhP
*None of the options

17 Which of the following Object-Oriented programming languages does support operator overloading?
*C++
*Java
*All the options
*None of the options

18 Which of following is correct about a recursive method?
*A recursive method is a method that calls itself
*A recursive method is a method that does not call itself
*All the options
*None of the options

19 Which of the following is limitations that exist in Overloading True and False?
*The return value must be a Boolean
*It is invalid to overload only one of the two operators
*All of the above
*None of the options

20 Which of the following is not logical operator that can be directly overloaded for a class?
*The NOT operator
*The AND operator
*The OR operator and XOR operator
*None of the options

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