Looking for FM121 Programming and Data Structures test answers and solutions? Browse our comprehensive collection of verified answers for FM121 Programming and Data Structures at dle.plaksha.edu.in.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
Consider this code:
Person P1(2);
P1.children_list[0]= "Aryan";
P1.children_list[1]= "Siya";
Person P2 = P1;
P2.children_list[0]= "Ananya";
What will be the content of P1.children_list[0] after this?
Which of the following is FALSE about friend functions?
If a class B is declared as a friend of class A, then:
The operator is commonly overloaded to print object data using cout.
Which of the following cannot be friend?
What happens when you try to execute this code?
int x = 20, z = 30; int &n = x; n = z; // This line
Consider this code sequence:
Wallet w1(100, 50); Wallet w2; w2 = w1; // Line 1 Wallet w3 = w1; // Line 2
Which statement is correct?
const Wallet* const ptr = &myWallet;Student and Faculty both have private member int id. If a Student object tries to access the id of a Faculty object within a Student member function, what happens?