Programming in Modern C++ Week 3 NPTEL Assignment Answers 2025

Need help with this week’s assignment? Get detailed and trusted solutions for Programming in Modern C++ Week 3 NPTEL Assignment Answers. Our expert-curated answers help you solve your assignments faster while deepening your conceptual clarity.

✅ Subject: Programming in Modern C++
📅 Week: 3
🎯 Session: NPTEL 2025 July-October
🔗 Course Link: Click Here
🔍 Reliability: Verified and expert-reviewed answers
📌 Trusted By: 5000+ Students

For complete and in-depth solutions to all weekly assignments, check out 👉 NPTEL Programming in Modern C++ Week 3 NPTEL Assignment Answers

🚀 Stay ahead in your NPTEL journey with fresh, updated solutions every week!

NPTEL Programming in Modern C++ Week 3 Assignment Answers 2025

1. Consider the following snippet.
class Manager {
// code
};
const Manager mgrObj;
What type(s) correctly represent the this pointer for object mgrObj?

a) Manager * const this
b) Manager const * this
c) Manager const * const this
d) const Manager * const this

Answer : See Answers

2. Inspect this code block.
class Coordinates {
int x, y;
public:
void moveX (int dx) { x += dx; }
void moveY (int dy) {y += dy; }
void display() const { cout « x «”, ” « y; }
int shiftX) const { return x + 5; }
int shiftY { return ++y; }
};
Which methods change the object’s state?

a) moveX(), moveY(), display()
b) moveX, moveY), shiftYO
c) moveX(), moveY(), shiftX(), shiftY()
d) moveX), moveY), shiftx)

Answer :

3.

Answer :

4.

Answer :

5.

Answer : See Answers

6.

Answer :

7.

Answer :

8.

Answer :

9.

Answer : See Answers