Add office photos
Employer?
Claim Account for FREE

Horizontal Integration

3.7
based on 89 Reviews
Filter interviews by

Ambience Public School Interview Questions and Answers

Updated 5 Feb 2024

Q1. Find sublost from a lost which gives maximum sum value

Ans.

Find subarray with maximum sum value

  • Use Kadane's algorithm to find the maximum subarray sum

  • Initialize max_so_far and max_ending_here to 0

  • Loop through the array and update max_ending_here and max_so_far

  • Return the subarray with maximum sum value

Add your answer

Q2. Difference between truncate and delete command

Ans.

Truncate removes all data from a table while delete removes specific rows.

  • Truncate is faster than delete as it doesn't log individual row deletions

  • Truncate resets the identity of the table while delete doesn't

  • Truncate cannot be rolled back while delete can be

  • Truncate is a DDL command while delete is a DML command

Add your answer

Q3. Explain about mvc and mvt architecture

Ans.

MVC and MVT are software architecture patterns used for developing web applications.

  • MVC stands for Model-View-Controller and separates the application into three interconnected components.

  • MVT stands for Model-View-Template and is similar to MVC but with a different approach to handling user input.

  • In MVC, the Model represents the data and business logic, the View displays the data to the user, and the Controller handles user input and updates the Model and View accordingly.

  • In ...read more

Add your answer

Q4. Difference between list and tuple

Ans.

List is mutable and tuple is immutable in Python.

  • List can be modified after creation, tuple cannot

  • List uses square brackets [], tuple uses parentheses ()

  • List is slower than tuple in terms of performance

  • List is used for collections of data that may change, tuple for fixed collections

Add your answer
Discover Ambience Public School interview dos and don'ts from real experiences

Q5. Explain Many to many relationship

Ans.

Many to many relationship is a type of relationship between two entities where one entity can have multiple instances of another entity and vice versa.

  • It involves a junction table that connects the two entities.

  • It allows for complex data modeling and querying.

  • Example: A student can enroll in multiple courses and a course can have multiple students.

  • Example: A book can have multiple authors and an author can have written multiple books.

Add your answer

Q6. Difference between flask and Django

Ans.

Flask is a micro web framework while Django is a full-stack web framework.

  • Flask is lightweight and flexible while Django is more structured and includes many built-in features.

  • Flask is better for small to medium-sized projects while Django is better for larger projects.

  • Flask has less built-in functionality but allows for more customization while Django has more built-in functionality but is less customizable.

  • Flask is easier to learn and use while Django has a steeper learning...read more

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Software Engineer Interview Questions from Similar Companies

3.5
 • 164 Interview Questions
3.7
 • 152 Interview Questions
3.7
 • 124 Interview Questions
3.8
 • 101 Interview Questions
3.5
 • 49 Interview Questions
4.9
 • 21 Interview Questions
View all
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
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

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