1 What is another name for Methods in other languages?
*Functions
*Modularity
*Procedures
*Options A and C
*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
*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
*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
*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
*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
*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
*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
*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
*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
*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
*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
*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
*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
*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
*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
*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
*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
*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
*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
*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
Post a Comment
DROP YOUR COMMENTS HERE.....