Senior Software Engineer L2

Senior Software Engineer L2 Interview Questions and Answers

Updated 3 Jul 2025
search-icon

Asked in Anthology

3d ago

Q. What is the code to find duplicate strings in a given text and their corresponding indices?

Ans.

This code identifies duplicate strings in a text and returns their indices.

  • Use a dictionary to store strings and their indices.

  • Iterate through the list of strings, updating the dictionary.

  • If a string is already in the dictionary, append the current index to its list.

  • Example: For input ['apple', 'banana', 'apple'], output is {'apple': [0, 2]}.

Asked in Axtria

2d ago

Q. What is the difference between SQL and NoSQL?

Ans.

SQL is a relational database management system that uses structured query language, while NoSQL is a non-relational database system that does not use SQL.

  • SQL databases are table-based and have a predefined schema, while NoSQL databases are document-based, key-value pairs, graph databases, or wide-column stores.

  • SQL databases are vertically scalable, while NoSQL databases are horizontally scalable.

  • SQL databases are good for complex queries and transactions, while NoSQL database...read more

Asked in Jio Haptik

4d ago

Q. What is a class? What is an object

Ans.

A class is a blueprint for creating objects in object-oriented programming. An object is an instance of a class.

  • A class defines the properties and behaviors of objects.

  • An object is a specific instance of a class.

  • Classes can be used to create multiple objects with similar characteristics.

  • Objects can interact with each other by calling methods defined in their class.

  • Example: Class 'Car' can have properties like 'color' and 'model', while an object of class 'Car' can be 'Toyota ...read more

Asked in Checko

2d ago

Q. What is the Singleton Design Pattern?

Ans.

Singleton Design Pattern ensures a class has only one instance and provides a global point of access to it.

  • Ensures a class has only one instance by providing a global access point to it

  • Commonly used in scenarios where only one instance of a class is needed, such as database connections or configuration settings

  • Implemented by making the constructor private and providing a static method to access the single instance

Are these interview questions helpful?

Asked in TimesPro

6d ago

Q. What is the code to reverse a string?

Ans.

Reversing a string can be done using various methods in programming, such as slicing, loops, or built-in functions.

  • Using Python slicing: `reversed_string = original_string[::-1]`

  • Using a loop: `reversed_string = ''.join(reversed(original_string))`

  • Using recursion: `def reverse(s): return s if len(s) == 0 else s[-1] + reverse(s[:-1])`

  • Using built-in functions in Java: `String reversed = new StringBuilder(original).reverse().toString();`

Asked in Jio Haptik

1d ago

Q. How do we create objects?

Ans.

Objects in programming are created by defining a class and instantiating it to create instances of that class.

  • Define a class with attributes and methods

  • Instantiate the class to create an object

  • Access and manipulate object properties and methods

Asked in Jio Haptik

4d ago

Q. What are Columnar Databases?

Ans.

Columnar databases store data in columns rather than rows, allowing for faster query performance and better compression.

  • Data is stored in columns rather than rows

  • Better suited for analytical queries

  • Allows for better compression and faster query performance

  • Examples include Amazon Redshift, Google BigQuery

Asked in Jio Haptik

5d ago

Q. What is a Pub-Sub model?

Ans.

Pub-Sub model is a messaging pattern where senders (publishers) of messages do not program the messages to be sent directly to specific receivers (subscribers).

  • Publishers send messages to a central topic or channel

  • Subscribers subscribe to the topic or channel to receive messages

  • Decouples senders and receivers, allowing for scalability and flexibility

Share interview questions and help millions of jobseekers 🌟

man-with-laptop
1d ago

Q. How do you handle dynamic tables on a webpage?

Ans.

Use XPath or CSS selectors to locate elements and extract data from the table dynamically.

  • Identify unique attributes of the table such as class, id, or structure

  • Use XPath or CSS selectors to locate the table and its elements

  • Iterate through rows and columns to extract data dynamically

  • Handle pagination or lazy loading if applicable

Interview Experiences of Popular Companies

HCLTech Logo
3.5
 • 4.1k Interviews
Anthology Logo
3.4
 • 26 Interviews
View all
interview tips and stories logo
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

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

Senior Software Engineer L2 Interview Questions
Share an Interview
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
qr-code
Trusted by over 1.5 Crore job seekers to find their right fit company
80 L+

Reviews

10L+

Interviews

4 Cr+

Salaries

1.5 Cr+

Users

Contribute to help millions

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

Follow Us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter
Profile Image
Hello, Guest
AmbitionBox Employee Choice Awards 2025
Winners announced!
awards-icon
Contribute to help millions!
Write a review
Write a review
Share interview
Share interview
Contribute salary
Contribute salary
Add office photos
Add office photos
Add office benefits
Add office benefits