Add office photos
Engaged Employer

Coforge

3.4
based on 4.4k Reviews
Filter interviews by

10+ Interview Questions and Answers

Updated 22 Oct 2024
Popular Designations

Q1. Q1 why and when we have to use Inheritance . Q2 difference between fail safe and fail fast iterator Q3 Real life use Application of Linklist, stack, queue. Q4 Reverse a linklist using Recursion Q5 mega prime nu...

read more
Ans.

Interview questions for Software Engineer position

  • Inheritance is used to create a new class from an existing class, to reuse code and add new functionality

  • Fail-safe iterators continue iterating even if there is a concurrent modification, while fail-fast iterators throw a ConcurrentModificationException

  • Linked lists are used in applications like music playlists, stacks are used in undo/redo functionality, and queues are used in job scheduling

  • To reverse a linked list using recur...read more

View 1 answer

Q2. How to swap two integer values without using a third variable.

Ans.

Swapping two integer values without using a third variable.

  • Use XOR operator to swap two integers without using a third variable.

  • Addition and subtraction can also be used to swap two integers.

  • Bitwise operations can also be used to swap two integers.

View 2 more answers

Q3. Ready to relocate any location or not?

Ans.

Yes, I am willing to relocate for the right opportunity.

  • I am open to exploring new locations and cultures.

  • I understand that relocation may be necessary for career growth.

  • I am willing to consider factors such as cost of living and job market in the new location.

  • I am excited about the prospect of new challenges and experiences.

View 2 more answers

Q4. Programming Languages u worked on?

Ans.

I have worked on multiple programming languages including Java, Python, C++, and JavaScript.

  • Proficient in Java and Python for backend development

  • Experience in C++ for competitive programming and algorithm development

  • Familiarity with JavaScript for frontend development and web applications

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

Q5. Difference between Abstract class and interface.

Ans.

Abstract class can have implementation while interface only has method signatures.

  • Abstract class can have constructors while interface cannot.

  • A class can implement multiple interfaces but can only inherit from one abstract class.

  • Abstract class can have non-public members while interface only has public members.

  • Abstract class is used for creating a base class while interface is used for implementing a contract.

  • Example of abstract class: Animal with abstract method 'makeSound'....read more

Add your answer

Q6. Do you know about database

Ans.

Yes, I have knowledge about databases.

  • I am familiar with relational databases like MySQL, PostgreSQL, and Oracle.

  • I have experience with NoSQL databases such as MongoDB and Cassandra.

  • I understand database design principles, normalization, and indexing.

  • I have worked with SQL queries, stored procedures, and triggers.

  • I am proficient in database management and optimization.

Add your answer
Are these interview questions helpful?

Q7. write code for swapping two numbers without using third variable

Ans.

Swapping two numbers without using a third variable in code

  • Use bitwise XOR operation to swap two numbers without using a third variable

  • Example: a = 5, b = 7; a = a ^ b; b = a ^ b; a = a ^ b; // Now a = 7, b = 5

Add your answer

Q8. Why override the Equals method

Ans.

Overriding Equals method helps to compare objects based on their values rather than their references.

  • Default implementation of Equals method compares object references

  • Overriding Equals method allows custom comparison based on object values

  • Helps in implementing value equality for custom classes

  • Used in collections like HashSet to check for duplicates

Add your answer
Share interview questions and help millions of jobseekers 🌟

Q9. OOps concepts with practical examples and syntax

Ans.

Object-Oriented Programming concepts include encapsulation, inheritance, and polymorphism.

  • Encapsulation: bundling data and methods that operate on that data within a single unit (class). Example: private variables in a class.

  • Inheritance: creating new classes from existing ones, inheriting their properties and methods. Example: a subclass of a vehicle class inheriting its speed and fuel capacity.

  • Polymorphism: the ability of objects to take on different forms or behaviors. Exam...read more

Add your answer

Q10. What is programming language?

Ans.

Programming language is a set of instructions used to communicate with computers and create software.

  • Programming languages are used to write code for software applications, websites, and other computer programs.

  • Examples of programming languages include Java, Python, C++, and JavaScript.

  • Each programming language has its own syntax and rules for writing code.

  • Programming languages can be classified as high-level or low-level, depending on their level of abstraction.

  • Learning a pr...read more

Add your answer

Q11. Write a program reverse the String

Ans.

Program to reverse a given string

  • Use a loop to iterate through the characters of the string

  • Swap characters from start and end of the string until reaching the middle

  • Return the reversed string

Add your answer

Q12. Concept of oops Memory management

Ans.

OOPs is a programming paradigm based on the concept of objects, which can contain data and code to manipulate that data. Memory management involves allocating and deallocating memory for objects.

  • OOPs stands for Object-Oriented Programming, where objects are instances of classes that encapsulate data and behavior.

  • In OOPs, concepts like inheritance, polymorphism, and encapsulation are used to organize and structure code.

  • Memory management involves allocating memory for objects w...read more

Add your answer

Q13. What is primary key?

Ans.

Primary key is a unique identifier for a record in a database table.

  • Primary key ensures data integrity and helps in faster data retrieval.

  • It cannot have null values and must be unique for each record.

  • Examples of primary keys are social security number, email address, etc.

Add your answer

Q14. What is CLR in .net?

Ans.

CLR stands for Common Language Runtime, it is the virtual machine component of Microsoft's .NET framework.

  • CLR is responsible for managing the execution of .NET programs.

  • It provides services such as memory management, exception handling, and security.

  • CLR compiles the intermediate language code into native code using Just-In-Time (JIT) compilation.

  • It allows different languages to be used within the .NET framework, as long as they are supported by the CLR.

  • Examples of languages t...read more

Add your answer

Q15. Managed and unmanaged code?

Ans.

Managed code is code that is executed by the Common Language Runtime (CLR) while unmanaged code is executed directly by the operating system.

  • Managed code is written in high-level languages like C#, VB.NET, and runs in a managed environment like .NET framework.

  • Unmanaged code is written in languages like C, C++, and directly interacts with the operating system.

  • Managed code provides automatic memory management, security, and exception handling, while unmanaged code requires manu...read more

Add your answer

Q16. Write pseudo code for sorting

Ans.

Pseudo code for sorting an array of strings

  • Initialize an empty array to store the sorted strings

  • Iterate through the input array and compare each string with the others to determine the correct order

  • Use a sorting algorithm like bubble sort, selection sort, or merge sort to rearrange the strings

Add your answer

Q17. Oops Concept in java

Ans.

Oops concept in Java refers to Object-Oriented Programming principles like Inheritance, Encapsulation, Polymorphism, and Abstraction.

  • Inheritance allows a class to inherit properties and behavior from another class.

  • Encapsulation involves bundling data and methods that operate on the data into a single unit.

  • Polymorphism allows objects to be treated as instances of their parent class.

  • Abstraction hides the implementation details and only shows the necessary features to the outsid...read more

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

Interview Process at null

based on 15 interviews in the last 1 year
3 Interview rounds
Coding Test Round
Technical Round
HR Round
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Software Engineer Interview Questions from Similar Companies

3.6
 • 160 Interview Questions
3.3
 • 89 Interview Questions
2.7
 • 40 Interview Questions
4.1
 • 26 Interview Questions
4.0
 • 11 Interview Questions
3.9
 • 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
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