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
*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
*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
*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
*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
*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
*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
*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
*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
*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
*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
*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
*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
*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
*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
*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
*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
*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
*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
*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
*The NOT operator
*The AND operator
*The OR operator and XOR operator
*None of the options
Comments
Post a Comment
DROP YOUR COMMENTS HERE.....