TechnologyProfessionTest
Sort by
Newest
Most popular
Last review
Filter by
Published
3806
To review
5
TechnologyProfessionTest
Sort by
Newest
Most popular
Last review
Filter by
Published
3806
To review
5
41 questions
Hard
4 votes263 runs0 comment
Medium
3 votes384 runs1 comment
Medium
2 votes397 runs1 comment
Easy
2 votes364 runs0 comment
Easy
1 vote430 runs0 comment
Easy
1 vote390 runs0 comment
Medium
1 vote363 runs0 comment
Easy
1 vote360 runs0 comment
Easy
1 vote60 runs0 comment
Hard
1 vote47 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 vote33 runs0 comment
Hard
0 vote390 runs1 comment
Medium
0 vote387 runs1 comment