- The concepts of OOP are:
 
- Abstraction
 - Encapsulation
 - Inheritance
 - All of these
 
- A class is a_____
 
- System defined
 - User defined
 - Server defined
 - None of these
 
- The variables declared in the class are known as_____
 
- Instance integer
 - Instance float
 - Instance variable
 - None of these
 
- The variables and methods declared within the ________
 
- Parenthesis
 - Curly braces
 - Braces
 - None of these
 
- To access the variables and methods outside the class, the _____ operator is used as follows:
 
- Semicolon
 - Colon
 - Dot
 - None of these
 
- How many methods we used to passed the argument?
 
- 1
 - 2
 - 3
 - 4
 
- The name of argument passing method:
 
- Call by value
 - Call by reference
 - Both a & b
 - None of these
 
- The argument that appear in the method call statement are known as:
 
- Formal arguments
 - Actual arguments
 - Informal arguments
 - None of these
 
- Which appear in the method definition are known as:
 
- Formal arguments
 - Actual arguments
 - Informal arguments
 - None of these
 
- A _______ has the same relation to an ______ that a basic data type has to a variable of that type.
 
- Class, object
 - Class, method
 - Object, method
 - None of these
 
- Which of the operators is used for creating an object and allocating memory space to it?
 
- Dot operator
 - New operator
 - Instance of operator
 - None of these
 
- Which of these entities is the correct syntax for accessing the members of a class?
 
- class.member.class_object
 - class_object.class_name
 - class_name.class_member
 - class_object.class_member
 
- The ________ method allows the programmer to pass different values to the instance variables of different objects.
 
- Parameterized
 - Integer
 - Data types
 - None of these
 
- The return type of a constructor is
 
- Void
 - Float
 - Int
 - None of these
 
- The process of _____ allows multiple methods to have same name with different parameters and different definitions.
 
- Method overloading
 - Method overriding
 - Method hiding
 - None of these
 
- Which of these is a valid method declaration?
 
- int sum(int x, int y)
 - int sum(int x, y)
 - sum(int x, int y)
 - sum(int, int)
 
- The ______ data members of a class are independent of any particular object of the class.
 
- Dynamic
 - Static
 - Both of these
 - None of these
 
- The _____ keyword is used to refer to the current object.
 
- new
 - this
 - that
 - none of these
 
- Objects are variables of class type_______ which they are created.
 
- Outside
 - Inside
 - Medium
 - None of these
 
- Java provides a mechanism known as _______ collection.
 
- Real
 - Garbage
 - Duplicate
 - None of these
 
- Method overloading allows _________ methods to have the same name with different parameters and different definitions.
 
- Single
 - Multiple
 - Double
 - None of these
 
- The syntax to access static variable is:
 
- class.name.variable_name
 - class_name.variable_name
 - class_name_variable_name
 - None of these
 
- All the operations that are to be performed just before the object is destroyed, are placed inside the _________() method.
 
- Finalize
 - Final
 - Virtual
 - None of these
 
- It refers to the ability of an action or method to perform different operations on the object that it is acting upon. That is called ______
 
- Method riding
 - Polymorphism
 - Finalize method
 
No comments :
Post a Comment