JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
Object Oriented Programming interview questions part 31
Object Oriented Programming interview questions part 31
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. 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
2. Objects type ____________________
A. Can be changed in runtime
B. Can’t be changed in runtime
C. Can be changed in compile time
D. May or may not get changed
Show Correct Answer
Correct Answer is :
Can’t be changed in runtime
3. Objects type ____________________
A. Can be changed in runtime
B. Can’t be changed in runtime
C. Can be changed in compile time
D. May or may not get changed
Show Correct Answer
Correct Answer is :
Can’t be changed in runtime
4. An object can be used to represent _________________
A. A real world entity
B. A real function
C. Some real data only
D. Some function only
Show Correct Answer
Correct Answer is :
A real world entity
5. An object can be used to represent _________________
A. A real world entity
B. A real function
C. Some real data only
D. Some function only
Show Correct Answer
Correct Answer is :
A real world entity
6. Objects can be used _____________________
A. To access any member of a class
B. To access only public members of a class
C. To access only protected members of a class
D. To access only private members of a class
Show Correct Answer
Correct Answer is :
To access only public members of a class
7. Objects can be used _____________________
A. To access any member of a class
B. To access only public members of a class
C. To access only protected members of a class
D. To access only private members of a class
Show Correct Answer
Correct Answer is :
To access only public members of a class
8. Which among the following is not a use of object?
A. Defining a member function
B. Accessing data members
C. Creating instance of a class
D. Using class members
Show Correct Answer
Correct Answer is :
Defining a member function
9. Which among the following is not a use of object?
A. Defining a member function
B. Accessing data members
C. Creating instance of a class
D. Using class members
Show Correct Answer
Correct Answer is :
Defining a member function
10. Which object can be used to access the standard input?
A. System.inner
B. cin
C. System.stdin
D. console.input
Show Correct Answer
Correct Answer is :
cin
11. Which object can be used to access the standard input?
A. System.inner
B. cin
C. System.stdin
D. console.input
Show Correct Answer
Correct Answer is :
cin
12. A single object can be used __________________
A. As only two class types at a time
B. As only three class types at a time
C. As only one class type at a time
D. As of as many class types as required
Show Correct Answer
Correct Answer is :
As only one class type at a time
13. A single object can be used __________________
A. As only two class types at a time
B. As only three class types at a time
C. As only one class type at a time
D. As of as many class types as required
Show Correct Answer
Correct Answer is :
As only one class type at a time
14. If same object name is given to different objects of different class then _____________
A. Its compile time error
B. Its runtime error
C. It’s not an error
D. Program suns smooth
Show Correct Answer
Correct Answer is :
Its compile time error
15. If same object name is given to different objects of different class then _____________
A. Its compile time error
B. Its runtime error
C. It’s not an error
D. Program suns smooth
Show Correct Answer
Correct Answer is :
Its compile time error
16. Which definition best describes an object?
A. Instance of a class
B. Instance of itself
C. Child of a class
D. Overview of a class
Show Correct Answer
Correct Answer is :
Instance of a class
17. How many objects can be declared of a specific class in a single program?
A. 32768
B. 127
C. 1
D. As many as you want
Show Correct Answer
Correct Answer is :
As many as you want
18. Which among the following is false?
A. Object must be created before using members of a class
B. Memory for an object is allocated only after its constructor is called
C. Objects can’t be passed by reference
D. Objects size depends on its class data members
Show Correct Answer
Correct Answer is :
Objects can’t be passed by reference
19. Which of the following is incorrect?
A. class student{ }s;
B. class student{ }; student s;
C. class student{ }s[];
D. class student{ }; student s[5];
Show Correct Answer
Correct Answer is :
class student{ }s[];
20. The object can’t be:
A. Passed by reference
B. Passed by value
C. Passed by copy
D. Passed as function
Show Correct Answer
Correct Answer is :
Passed as function
Similar Interview Questions
Search for latest jobs
Find Jobs