TechnologyProfessionTest
Sort by
Newest
Most popular
Last review
Filter by
Published
77
To review
0
TechnologyProfessionTest
Sort by
Newest
Most popular
Last review
Filter by
Published
77
To review
0
77 questions
Hard
4 votes194 runs0 comment
Hard
3 votes435 runs0 comment
Write a C++ function that returns the sum of two integers.
Abha Agrawaat Dec 3, 2021
Hard
2 votes428 runs0 comment
Medium
2 votes289 runs1 comment
Easy
2 votes284 runs0 comment
Hard
1 vote455 runs0 comment
Which of the following sets of code will cause a compile time error?
Abha Agrawaat Dec 3, 2021
Hard
1 vote437 runs0 comment
C++: what is the output of the following code? `std::cout << &obj << std::endl;`
Abha Agrawaat Dec 3, 2021
Medium
1 vote401 runs0 comment
Write a C++ program that creates an array of 10 Person objects.
Abha Agrawaat Apr 7, 2023
Medium
1 vote299 runs1 comment
Medium
1 vote273 runs0 comment
Hard
1 vote271 runs0 comment
Medium
1 vote52 runs0 comment
Hard
1 vote29 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