TechnologyProfessionTest
Sort by
Newest
Most popular
Last review
Filter by
Published
3733
To review
20
TechnologyProfessionTest
Sort by
Newest
Most popular
Last review
Filter by
Published
3733
To review
20
41 questions
Hard
4 votes209 runs0 comment
Medium
2 votes325 runs1 comment
Medium
2 votes313 runs1 comment
Easy
2 votes306 runs0 comment
Medium
1 vote318 runs0 comment
Medium
1 vote296 runs0 comment
Medium
1 vote293 runs0 comment
Medium
1 vote53 runs0 comment
Hard
1 vote30 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 vote27 runs0 comment
Easy
0 vote355 runs0 comment
Medium
0 vote316 runs1 comment
Hard
0 vote312 runs1 comment
Expert
0 vote306 runs0 comment
Which instructions are forbidden in this example ?
Samuelat Mar 28, 2022