Premium Employer

Publicis Sapient

3.5
based on 3.2k Reviews
Filter interviews by

Sapthagiri Medical Agencies Interview Questions and Answers

Updated 20 Oct 2024
Popular Designations

Q1. An unsorted array has numbers. Find the duplicate numbers and return the array.

Ans.

Find duplicate numbers in an unsorted array and return the array.

  • Iterate through the array and keep track of seen numbers using a hash table.

  • If a number is already in the hash table, it is a duplicate.

  • Add the duplicate number to a new array and return it.

Add your answer

Q2. Create a Login form and validate email input using Vanilla JS.

Ans.

Create a Login form with email validation using Vanilla JS.

  • Create a form in HTML with input fields for email and password

  • Use JavaScript to validate the email input using regular expressions

  • Display error messages if the email input is not in the correct format

Add your answer

Q3. Comparator with and without java 8

Ans.

Comparator in Java 8 provides default methods and lambda expressions for sorting.

  • Comparator in Java 8 can be implemented using lambda expressions.

  • Comparator in Java 8 provides default methods like reversed() and thenComparing() for sorting.

  • Comparator in pre-Java 8 versions can be implemented using anonymous inner classes.

  • Comparator in pre-Java 8 versions requires more code to implement compared to Java 8.

  • Example: Sorting a list of strings in ascending order using Java 8 Compa...read more

Add your answer

Q4. Simple task to fetch cart and display items in the cart

Ans.

Fetch cart items and display them

  • Create a function to fetch cart items from database

  • Display the items in the cart on the user interface

  • Handle empty cart scenarios

  • Consider pagination for large number of items

Add your answer
Discover Sapthagiri Medical Agencies interview dos and don'ts from real experiences

Q5. Deep copy vs Shallow copy.

Ans.

Deep copy creates a new object with its own memory, while shallow copy creates a new reference to the same memory.

  • Deep copy duplicates the object and all of its contents, while shallow copy only duplicates the object itself.

  • Deep copy is more memory-intensive than shallow copy.

  • In Python, deep copy can be achieved using the copy.deepcopy() method, while shallow copy can be achieved using the copy.copy() method.

Add your answer

Q6. Design a product catalogue to view and book order and update the stock

Ans.

A product catalogue system for viewing, booking orders, and updating stock

  • Create a database to store product information, stock levels, and orders

  • Design a user-friendly interface for browsing products and placing orders

  • Implement functionality for updating stock levels after orders are placed

  • Include features for tracking order status and managing inventory

  • Consider implementing search and filter options for easy navigation

Add your answer

Q7. Simple task to fetch characters and their movies

Ans.

Fetch characters and their movies

  • Use API like IMDb or The Movie Database to fetch movie data

  • Parse the data to extract characters and their associated movies

  • Store the characters and movies in an array of strings

Add your answer

Q8. writing a recursion program

Ans.

Recursion program is a function that calls itself until a base condition is met.

  • Identify the base case and write the code to handle it

  • Write the code to call the function recursively

  • Ensure that the recursion terminates eventually

  • Examples: factorial, Fibonacci sequence, binary search

Add your answer

Q9. Hands on custom hooks

Ans.

Custom hooks are reusable functions that allow you to extract component logic into separate functions for better reusability and readability.

  • Custom hooks are created by prefixing the function name with 'use' (e.g. useCustomHook)

  • They can be used to share logic between components without repeating code

  • Custom hooks can be used for data fetching, state management, and more

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

Interview Process at Sapthagiri Medical Agencies

based on 25 interviews
3 Interview rounds
Technical Round - 1
Technical Round - 2
HR Round
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Senior Software Engineer Interview Questions from Similar Companies

3.8
 • 156 Interview Questions
3.8
 • 20 Interview Questions
3.7
 • 16 Interview Questions
4.0
 • 12 Interview Questions
3.4
 • 10 Interview Questions
3.5
 • 10 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