Recent questions in Object Oriented Programming

0 0 votes
1 1 answer
566
566 views
When a derived class inherits from many base classes, this process is known asDefault inheritanceMultiplex inheritanceMultilevel inheritanceMultiple inheritance
0 0 votes
2 2 answers
509
509 views
In C++, a function contained within a class is calledA member functionAn operatorA class functionA method
2 2 votes
0 0 answers
1.2k
1.2k views
Which of the following concepts of OOPS means exposing only necessary information to client?A. EncapsulationB. AbstractionC. Data hidingD. Data bindingAns...
5 5 votes
1 answers 1 answer
2.0k
2.0k views
Which one of the following are essential features of object-oriented language? A.Abstraction and encapsulation B.Strictly-typed C.Type-safe property coupled with sub-type...
0 0 votes
1 1 answer
1.3k
1.3k views
Which of the following is not correct for virtual function in C++?Must be declared in public section of classVirtual function can be staticVirtual function should be acce...
0 0 votes
1 1 answer
905
905 views
A member function can always access the data in, (in C++)the class of which it is memberthe object of which it is a memberthe public part of its classthe private part of ...
3 3 votes
0 0 answers
560
560 views
Explain the following code..especially the loop part #1 & #2 of below code:- [Code is printing the maximum number of integers you can select from the array such that the ...
0 0 votes
1 answers 1 answer
1.4k
1.4k views
0 0 votes
0 0 answers
1.4k
1.4k views
When a language has the capability to produce new data types, it is said to be :extensible encapsulated overloaded none of the above
0 0 votes
1 answers 1 answer
5.5k
5.5k views
A copy constructor is invoked when :a function returns by value an argument is passed by valuea function returns by reference none of the above
1 1 vote
1 answers 1 answer
587
587 views
How is the order of invocation of destructors different from constructors?
0 0 votes
1 1 answer
544
544 views
When are C++ copy constructors, assignment operators, and destructors, respectively,invoked?
5 5 votes
4 answers 4 answers
5.6k
5.6k views
Which of the following is associated with objects?StateBehaviorIdentityAll of the above
5 5 votes
1 answers 1 answer
7.5k
7.5k views
Which of the following UML 2.0 diagrams capture behavioral aspects of a system?Use case diagram, Object diagram, Activity diagram and state machine diagramUse case diagra...
7 7 votes
3 3 answers
5.5k
5.5k views
Which of the following operator(s) cannot be overloaded?.(member Access or Dot operator)?: (ternary or Conditional Operator):: ( Scope Resolution Operator)All of the abov...
7 7 votes
6 answers 6 answers
9.4k
9.4k views
What is the output of the C++ program? #include <iostream using namespace std; void square(int *x){ *x = (*x)++ * (*x); } void square(int *x, int *y){ *x = (*x) * (*y); ...
0 0 votes
1 answers 1 answer
18.0k
18.0k views
A struct is the same as a class except that(A) there are no member functions.(B) all members are public.(C) cannot be used in inheritance hierarchy.(D) it does have a thi...
2 2 votes
1 answers 1 answer
869
869 views
Is it possible to have a function call on the left hand side of the equality operator?a. No, because you can only have variables on the left sideb. Yes, but only in case ...
1 1 vote
0 0 answers
1.0k
1.0k views
which of the following statements are true for operator overloading in C++?a. The * operator can be overloaded to perform divisionb. The * operator can be overloaded to p...
0 0 votes
3 answers 3 answers
3.7k
3.7k views
Given the array of integers ‘array’ shown below:1372721833911228What is the output of the following JAVA statements?int[] p = new int [10]; int[] q = new int [10]; for (i...