πŸ“Š Python
Q. Study the following program:
Code:
1. class Std_Name:
2. def __init__(self, Std_firstName, Std_Phn, Std_lastName):
3. self.Std_firstName = Std_firstName
4. self. Std_PhnStd_Phn = Std_Phn
5. self. Std_lastNameStd_lastName = Std_lastName
6.
7. Std_firstName = “Wick”
8. name = Std_Name(Std_firstName, ‘F’, “Bob”)
9. Std_firstName = “Ann”
10. name.lastName = “Nick”
11. print(name.Std_firstName, name.Std_lastName)
  • (A) Ann Bob
  • (B) Ann Nick
  • (C) Wick Bob
  • (D) Wick Nick
πŸ’¬ Discuss
βœ… Correct Answer: (D) Wick Nick

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
394
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
84%
Success Rate