Senior Software Net Engineer

Senior Software Net Engineer Interview Questions and Answers

Updated 4 Oct 2024

Q1. Return all the pairs from array who's sum is equal to given value

Ans.

Use a hash set to store elements as you iterate through the array, check if the difference between the target value and current element exists in the hash set.

  • Iterate through the array and store elements in a hash set

  • For each element, check if the difference between the target value and current element exists in the hash set

  • If it does, add the pair to the result array

Q2. Can we create string 2 from string 1.

Ans.

Yes, string 2 can be created from string 1 by rearranging the characters.

  • String 2 can be created by rearranging the characters of string 1.

  • Use sorting or permutation algorithms to rearrange the characters.

  • Example: String 1 = 'hello', String 2 = 'olleh'

Q3. design patterns - which one worked on

Ans.

I have worked on various design patterns including Singleton, Factory, Observer, and Strategy.

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

  • Factory pattern creates objects without specifying the exact class of object that will be created.

  • Observer pattern defines a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically.

  • Strategy pattern defines ...read more

Q4. Return orginal string from compressed string

Ans.

Decompress a compressed string to return the original string

  • Iterate through the compressed string and rebuild the original string based on the characters and their frequencies

  • Use a stack to keep track of characters and their frequencies while decompressing the string

Are these interview questions helpful?

Q5. Compress the string aaabbbbaaa to 3a4b3a

Ans.

Use a loop to iterate through the string and count consecutive characters.

  • Iterate through the string and keep track of the current character and its count.

  • Append the character and its count to a new string.

  • Return the compressed string.

Q6. worked on web services? explain

Ans.

Yes, I have worked on web services. I have experience in designing, developing, and maintaining RESTful APIs.

  • Designed RESTful APIs for communication between different systems

  • Developed web services using technologies like Node.js, Express, and Spring Boot

  • Maintained and optimized existing web services for better performance

  • Integrated third-party APIs into existing systems for added functionality

Share interview questions and help millions of jobseekers 🌟

man-with-laptop

Q7. difference between globalzn and localzn

Ans.

globalzn refers to variables or functions that can be accessed from anywhere in the program, while localzn refers to variables or functions that are only accessible within a specific scope.

  • Globalzn variables/functions can be accessed from anywhere in the program

  • Localzn variables/functions are only accessible within a specific scope

  • Globalzn variables/functions have a wider scope than localzn variables/functions

Q8. diffrnce bw abstraction and interfaces

Ans.

Abstraction is hiding implementation details, while interfaces define a contract for classes to implement.

  • Abstraction focuses on hiding the internal implementation details of a class, allowing the user to only interact with the public methods and properties.

  • Interfaces define a contract that specifies a set of methods that a class must implement, without specifying how those methods are implemented.

  • Abstraction can be achieved through abstract classes in languages like Java, wh...read more

Senior Software Net Engineer Jobs

0
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Interview experiences of popular companies

3.8
 • 2.8k Interviews
View all

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 Net Engineer Interview Questions
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
65 L+

Reviews

4 L+

Interviews

4 Cr+

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