TechnologyProfessionTest
Sort by
Newest
Most popular
Last review
Filter by
Published
3586
To review
14
TechnologyProfessionTest
Sort by
Newest
Most popular
Last review
Filter by
Published
3586
To review
14
41 questions
Hard
4 votes176 runs0 comment
Easy
2 votes259 runs0 comment
Medium
1 vote277 runs1 comment
Medium
1 vote265 runs1 comment
Medium
1 vote253 runs0 comment
Hard
1 vote250 runs0 comment
Medium
1 vote49 runs0 comment
Hard
1 vote26 runs0 comment
What does the following code display ? class A { public: virtual void hello() {cout << "A" << endl;} }; class B : public A { public: void hello() {cout << "B" << endl;} }; void meet_value(A a1, A a2) { a1.hello(); a2.hello(); } void meet_reference(A& a1, A& a2) { a1.hello(); a2.hello(); } int main() { B b; A a; meet_value(a, b); meet_reference(a, b); return 0; } Answer : "AAAB".
Samuelat Mar 28, 2022
Medium
1 vote24 runs0 comment
Medium
0 vote301 runs0 comment
Medium
0 vote273 runs0 comment
Medium
0 vote271 runs1 comment
Hard
0 vote263 runs1 comment
Medium
0 vote247 runs0 comment
Write a function to display objects of type Complex.
Samuelat Mar 28, 2022