JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
Object Oriented Programming interview questions part 30
Object Oriented Programming interview questions part 30
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. Which of the members are referred by this pointer usually (Java)?
A. Members of class where this is used
B. Member of the parent class where this is used
C. Members that are passed as argument to the object
D. Pointers are not applicable in java
Show Correct Answer
Correct Answer is :
Members of class where this is used
2. How to refer to method of nested class?
A. enclosingClassObject.innerClassObject.method();
B. innerClassObject.method();
C. method();
D. depends on where the method is being called
Show Correct Answer
Correct Answer is :
depends on where the method is being called
3. How many objects can be referenced from same variables?
A. One at a time
B. Many at a time
C. Many using array name
D. 7 at max at same time
Show Correct Answer
Correct Answer is :
One at a time
4. Java handles memory dynamically and references are deleted as soon as they are out of scope.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
5. Which among the following is true?
A. Object referencing refers to methods address
B. Object referencing refers to variable of object
C. Object referencing points to same address, if assigned by variables
D. Object referencing is used to point methods
Show Correct Answer
Correct Answer is :
Object referencing points to same address, if assigned by variables
6. Invoking a method on a particular object is ____________ sending a message to that object.
A. Different from
B. Same as
C. Somewhat similar
D. Part of
Show Correct Answer
Correct Answer is :
Same as
7. Can reference to an object be returned from a method?
A. Yes, always possible
B. Yes, but not always
C. No, never possible
D. No, Not possible because referred element would be destroyed
Show Correct Answer
Correct Answer is :
Yes, but not always
8. Which among the following is main use of object?
A. To create instance of a function
B. To create instance of a program
C. To create instance of class
D. To create instance of structures
Show Correct Answer
Correct Answer is :
To create instance of class
9. Which among the following is main use of object?
A. To create instance of a function
B. To create instance of a program
C. To create instance of class
D. To create instance of structures
Show Correct Answer
Correct Answer is :
To create instance of class
10. Which among the following is not a property of an object?
A. Identity
B. Properties
C. Attributes
D. Names
Show Correct Answer
Correct Answer is :
Names
11. Which among the following is not a property of an object?
A. Identity
B. Properties
C. Attributes
D. Names
Show Correct Answer
Correct Answer is :
Names
12. What is function object?
A. An object with a single function
B. An object with only functions
C. An object with more than one function
D. An object with no functions
Show Correct Answer
Correct Answer is :
An object with a single function
13. What is function object?
A. An object with a single function
B. An object with only functions
C. An object with more than one function
D. An object with no functions
Show Correct Answer
Correct Answer is :
An object with a single function
14. Immutable object are used ______________________
A. To set up as a fixed state
B. To set up variable object
C. To set up an object of abstract class
D. To set up an object of derived class
Show Correct Answer
Correct Answer is :
To set up as a fixed state
15. Immutable object are used ______________________
A. To set up as a fixed state
B. To set up variable object
C. To set up an object of abstract class
D. To set up an object of derived class
Show Correct Answer
Correct Answer is :
To set up as a fixed state
16. Which object can be used to contain other objects?
A. First class object
B. Derived class object
C. Container object
D. Enclosure object
Show Correct Answer
Correct Answer is :
Container object
17. Which object can be used to contain other objects?
A. First class object
B. Derived class object
C. Container object
D. Enclosure object
Show Correct Answer
Correct Answer is :
Container object
18. What are singleton objects?
A. The only two objects of a class throughout the program
B. The only object of a class throughout the program
C. The objects that are alive throughout the program
D. The objects that are created and then deleted without use
Show Correct Answer
Correct Answer is :
The only object of a class throughout the program
19. What are singleton objects?
A. The only two objects of a class throughout the program
B. The only object of a class throughout the program
C. The objects that are alive throughout the program
D. The objects that are created and then deleted without use
Show Correct Answer
Correct Answer is :
The only object of a class throughout the program
20. Object cout and cin _________________
A. Can be used directly with << and >> symbols respectively
B. Can be used directly with >> and << symbols respectively
C. Must be used as a function which accepts 2 arguments
D. Must be used as a function which accepts 3 arguments
Show Correct Answer
Correct Answer is :
Can be used directly with << and >> symbols respectively
Similar Interview Questions
Search for latest jobs
Find Jobs