Project Assignee

Project Assignee Interview Questions and Answers

Updated 27 Dec 2022

Q1. Difference between drop and truncate in sql

Ans.

Drop deletes the table and its data while truncate deletes only the data.

  • Drop is a DDL command while truncate is a DML command.

  • Drop cannot be rolled back while truncate can be rolled back.

  • Drop is slower than truncate as it deletes the table structure as well.

  • Drop requires more permissions than truncate.

  • Example: DROP TABLE table_name; TRUNCATE TABLE table_name;

Q2. What is meant by abstraction

Ans.

Abstraction is the process of simplifying complex systems by focusing on essential features.

  • Abstraction involves hiding unnecessary details and emphasizing important ones.

  • It helps in managing complexity and improving efficiency.

  • Examples include abstract classes and interfaces in object-oriented programming.

  • Abstraction is also used in art, where artists simplify complex subjects to create a more impactful image.

  • In mathematics, abstraction involves generalizing concepts to make...read more

Are these interview questions helpful?
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Interview experiences of popular companies

View all

Calculate your in-hand salary

Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary

Project Assignee Interview Questions
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions

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

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter