Add office photos
Engaged Employer

Quikr

3.7
based on 502 Reviews
Video summary
Filter interviews by

Prasadam Restaurant Interview Questions and Answers

Updated 30 Oct 2024
Popular Designations

Q1. If there is a website run by 2 servers. These 2 servers balances the load using Load Balancer.So, if 1 session is created on 1 server and say load is shift to another server immediately, then how session is mai...

read more
Ans.

Session is maintained through session affinity or sticky sessions.

  • Session affinity ensures that a user's session is always directed to the same server.

  • Sticky sessions use cookies to track the user's session and direct them to the same server.

  • Load balancers can also use IP-based affinity to maintain sessions.

  • Session persistence can be configured based on time or number of requests.

  • Without session affinity, users may experience issues with lost data or inconsistent behavior.

Add your answer

Q2. 1. Given a wood of some size. It burns from 1 end to another and takes 30 min. How to burn the same wood in 15 min.?

Ans.

To burn a wood of some size in 15 min instead of 30 min, split it into two halves and burn them simultaneously.

  • Split the wood into two halves

  • Burn both halves simultaneously

  • Use a larger flame or accelerant to increase the burning rate

Add your answer

Q3. How to implement Critical section in Java and on which variable?

Ans.

To implement critical section in Java, use synchronized keyword on the shared variable.

  • Use synchronized keyword to ensure only one thread can access the shared variable at a time.

  • The shared variable should be the object on which the synchronized keyword is applied.

  • Example: synchronized(sharedObject) { //critical section code }

Add your answer

Q4. Find missing element in an array of elements from 0 to n-1. Different approaches asked(about 3 to 4 approaches)?

Ans.

Find missing element in an array of elements from 0 to n-1 using different approaches.

  • Approach 1: Sum of n natural numbers - sum of array elements

  • Approach 2: XOR all array elements and XOR with n natural numbers

  • Approach 3: Binary search for missing element

  • Approach 4: Using a hash table to store array elements

Add your answer
Discover Prasadam Restaurant interview dos and don'ts from real experiences

Q5. Find the first non repetitive character in a string

Ans.

Find the first non-repeating character in a string.

  • Create a hash table to store character frequency

  • Iterate through the string and check frequency in hash table

  • Return the first character with frequency 1

Add your answer

Q6. What is connection pooling

Ans.

Connection pooling is a technique of reusing database connections to improve performance.

  • Connection pooling reduces the overhead of creating and destroying database connections.

  • It maintains a pool of open connections that can be reused by multiple clients.

  • It improves application scalability and reduces the chances of database connection errors.

  • Examples of connection pooling libraries are HikariCP, Apache DBCP, and C3P0.

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at Prasadam Restaurant

based on 21 interviews
Interview experience
3.9
Good
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Interview Questions from Similar Companies

3.9
 • 366 Interview Questions
3.5
 • 311 Interview Questions
4.0
 • 248 Interview Questions
3.6
 • 204 Interview Questions
4.0
 • 199 Interview Questions
3.3
 • 142 Interview Questions
View all
Top Quikr Interview Questions And Answers
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
75 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