|
Question Details:
Choose the correct option and bold it. Each MCQ carry two marks.
- The _________ in Java is passed by value but ______ is passed by reference.
a. Object, Parameters
b. Parameters, Object
c. Arguments, Reference type
d. Reference type, Primitive type
- Array of array in ________is not fixed but in ____it is in a rectangle.
- C# , Java
- C++ , C#
- Java , C++
- C++ , Java
- Method that would be free functions in _________(not members of any class) should be static method in _________.
- Java , C#
- C++ , C#
- Java , C++
- C++ , Java
- In ________ for final fields and methods the value is assigned later but in ______ you assign the value during declaration.
- Java , C++
- C++ , C#
- Java , C#
- C++ ,Java
- In Java the ______________are not objects. All of the rest are objects, or any ___________ is called as object.
- generic type , reference type
- primitive types , generic type
- Reference type , generic type
- Reference type , primitive types
- For inheritance we use______ for interface we use________ keywords.
- subclass:baseclass , virtual function
- overloaded , virtual
- extend , implement
- virtual function , overloaded
- If there is no inheritance in Java then this environment may be __________but not ____________.
- object oriented, object based
- component based , object based
- object based ,component based
- object based , object oriented
- In inheritance if a subclass defines a method with the same name and the same number and types of arguments then the subclass has only one method with the same name of parent class method but with different functionality. Then it is termed as__________ method.
- Overwritten
- Overloaded
- Overridden
- Hidden
- In Java a sub class of a/an______ can override a method of its super class and declare it ___________ . In that case the subclass must be declared abstract.
- Abstract class, non abstract class
- non abstract class, abstract
- non abstract class , reference data type
- overloaded class, private
- _______exception inherits from exception class and _________ exception is anywhere in the program.
- Java , C#
- C++ , C#
- C# , Java
- Java ,C++
|