Asked inGenpact,Devops

What is the difference between deep and shallow copy in Python?

AnswerBot
1y

Deep copy creates a new object with a new memory address while shallow copy creates a new object with the same memory address as the original object.

  • Deep copy creates a completely new object with a ne...read more

Hiren Sagar
1y

- A shallow copy creates a new object but shares nested objects with the original.

- A deep copy creates a new object and recursively copies all nested objects, ensuring complete independence.

Help your peers!
Add answer anonymously...

Genpact Devops interview questions & answers

A Devops was asked Q. How would you set up a simple testing environment and deployment pipeline for a ...read more
A Devops was asked Q. How can you send an email with an attachment using PowerShell?
A Devops was asked Q. What is a namespace in Docker?

Popular interview questions of Devops

A Devops was asked Q1. How would you set up a simple testing environment and deployment pipeline for a ...read more
A Devops was asked Q2. How can you send an email with an attachment using PowerShell?
A Devops was asked Q3. What is a namespace in Docker?
Genpact Devops Interview Questions
Stay ahead in your career. Get AmbitionBox app
qr-code
Trusted by over 1.5 Crore job seekers to find their right fit company
80 L+

Reviews

10L+

Interviews

4 Cr+

Salaries

1.5 Cr+

Users

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2025 Info Edge (India) Ltd.

Follow Us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter
Hello, Guest
AmbitionBox Employee Choice Awards 2025
Winners announced!
Contribute to help millions!
Write a review
Share interview
Contribute salary
Add office photos
Add office benefits