Skip to main content

CIT383 TMA3

1 What is another name for Methods in other languages?
*Functions
*Modularity
*Procedures
*Options A and C

2 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

3 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

4 What is the meaning of "A method is invoked"?
*Made to perform its designated task
*Made not to perform its designated task
*Options A and B
*None of the Options

5 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

6 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 the Options

7 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
*Options B and C only

8 What is another name for the pieces of information to perform tasks in OOP?
*Parameters
*Callers
*Methods
*Objects

9 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 Options

10 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

11 Which of the following Object-Oriented programming language does support operator overloading?
*C++
*Java
*PhP
*OptionB and Cs

12 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
*It is the same as method Overloading
*None of the Options

13 Which of the following Object-Oriented programming language does not support operator overloading?
*C++
*Java
*PhP
*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
*Object Call
*Object Signature

15 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

16 Which of the following is the process through which methods of the name are declared in the same class?
*Method offloading
*Objects Overloading
*Method overloading
*None of the Options

17 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

18 Which of the following is not a kind of modules that exist in Java?
*Methods
*Objects
*classes
*Packages

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

20 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
*Options A and B
*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