Add office photos
Engaged Employer

Dassault Systemes

4.0
based on 876 Reviews
Filter interviews by

Adboxers Interview Questions and Answers

Updated 5 Feb 2024
Popular Designations

Q1. 3 Bulbs 3 switches, how do you know which is for what without seeing

Ans.

You can turn on one switch for a few minutes, turn it off and turn on another switch. The remaining switch will be for the third bulb.

  • Turn on switch 1 and leave it on for a few minutes

  • Turn off switch 1 and turn on switch 2

  • Leave switch 2 on for a few minutes

  • Turn off switch 2 and turn on switch 3

  • The bulb that is off and warm to the touch is connected to switch 1

  • The bulb that is on is connected to switch 2

  • The bulb that is off and cold to the touch is connected to switch 3

Add your answer

Q2. Puzzles, cake cut 3 times into 8 equal pieces how

Ans.

Cake can be cut into 8 equal pieces by making 3 cuts.

  • Make two cuts to divide the cake into quarters, then make a third cut through all quarters to get 8 equal pieces.

  • Each cut should be made perpendicular to the previous cut.

  • The size of the cake does not matter as long as it is a cylindrical or rectangular shape.

View 2 more answers

Q3. Write the program for singleton design pattern

Ans.

Singleton design pattern ensures only one instance of a class is created and provides a global point of access to it.

  • Create a private constructor to prevent direct instantiation of the class

  • Create a private static instance of the class

  • Create a public static method to access the instance

  • Ensure thread safety by using synchronized keyword or static initialization block

  • Example: Database connection manager

Add your answer

Q4. Sort the list of alphanumeric values

Ans.

Sort a list of alphanumeric values.

  • Use a sorting algorithm to sort the array of strings.

  • If the values are case-insensitive, convert them to lowercase before sorting.

  • If the values contain numbers, use a natural sorting algorithm to sort them.

  • If the values contain special characters, consider their ASCII values while sorting.

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

Q5. Reverse a linked list

Ans.

Reverse a linked list

  • Iteratively swap the next and previous pointers of each node

  • Recursively swap the next and previous pointers of each node

  • Use a stack to push each node and then pop them to create the reversed list

Add your answer

Q6. Make your own immutable class

Ans.

An immutable class is a class whose instances cannot be modified after creation.

  • Make all fields private and final

  • Do not provide any setters

  • Make the class final so that it cannot be subclassed

  • If any mutable object is used as a field, return a copy of it instead of the original object

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

Interview Process at Adboxers

based on 7 interviews in the last 1 year
2 Interview rounds
Aptitude Test Round
Technical Round
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories
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
Get AmbitionBox app

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