Developer

10+ Developer Interview Questions and Answers for Freshers

Updated 7 Aug 2024

Popular Companies

search-icon

Q1. Puzzle- You have a 3 gallon and 5 gallon jug, how would you fill a 4 gallon jug?

Ans.

Fill the 3 gallon jug, pour it into the 5 gallon jug, fill the 3 gallon jug again, pour it into the 5 gallon jug until it is full, leaving 1 gallon in the 3 gallon jug.

  • Fill the 3 gallon jug

  • Pour the 3 gallon jug into the 5 gallon jug

  • Fill the 3 gallon jug again

  • Pour the 3 gallon jug into the 5 gallon jug until it is full

  • The 4 gallon jug will have 1 gallon of water

Q2. Write a query to find the second highest salary in a table.

Ans.

Query to find the second highest salary in a table.

  • Use the MAX() function to find the highest salary.

  • Use the WHERE clause to exclude the highest salary from the result.

  • Use the MAX() function again to find the second highest salary.

Q3. Write a program to find the reverse of a string

Ans.

A program to reverse a string

  • Iterate through the characters of the string from the last to the first

  • Append each character to a new string

  • Return the reversed string

Q4. Write a code for two way switch

Ans.

A two-way switch is a device that can be used to control a single electrical circuit from two different locations.

  • A two-way switch typically has three terminals: a common terminal and two traveler terminals.

  • The common terminal is connected to the power source, while the traveler terminals are connected to the load.

  • The switch can be toggled between the two traveler terminals to control the circuit from different locations.

Are these interview questions helpful?

Q5. What programming language learned?

Ans.

I have learned multiple programming languages including Java, Python, and C++.

  • Java

  • Python

  • C++

Q6. Tell me about python language?

Ans.

Python is a high-level programming language known for its simplicity and readability.

  • Python is an interpreted language, which means it does not need to be compiled before running.

  • It has a large standard library that provides many useful modules and functions.

  • Python supports multiple programming paradigms, including procedural, object-oriented, and functional programming.

  • It is widely used in web development, data analysis, artificial intelligence, and scientific computing.

  • Pyth...read more

Share interview questions and help millions of jobseekers 🌟

man-with-laptop

Q7. What is SDLC?

Ans.

SDLC stands for Software Development Life Cycle. It is a process used to design, develop, and test software applications.

  • SDLC is a systematic approach to software development.

  • It consists of several phases including requirements gathering, design, coding, testing, and maintenance.

  • Each phase has specific activities and deliverables.

  • SDLC models include Waterfall, Agile, and DevOps.

  • It ensures the quality and reliability of software applications.

Frequently asked in, ,

Q8. OOP Concept they have Taken?

Ans.

Encapsulation, Inheritance, Polymorphism, Abstraction

  • Encapsulation: bundling of data and methods that act on that data within a single unit

  • Inheritance: ability of a class to inherit properties and methods from a parent class

  • Polymorphism: ability of objects to take on many forms

  • Abstraction: hiding of complex implementation details and showing only the necessary information

Developer Jobs

Developer - SAP ABAP (Gurgaon) 4-7 years
SAP India Pvt.Ltd
4.2
Gurgaon / Gurugram
Developer - SAP ABAP (4 To 7 years) 4-7 years
SAP India Pvt.Ltd
4.2
Bangalore / Bengaluru
Full Stack Web and External Identity Developer 5-8 years
3M India Ltd
4.3
Bangalore / Bengaluru

Q9. How is work environment

Ans.

The work environment is collaborative and supportive.

  • The team is friendly and helpful

  • Open communication is encouraged

  • Flexible work hours and remote work options are available

Q10. Oops concept from java

Ans.

Oops concept is a programming paradigm that focuses on objects and their interactions to solve problems.

  • Encapsulation - hiding implementation details

  • Inheritance - creating new classes from existing ones

  • Polymorphism - using a single interface to represent multiple types

  • Abstraction - simplifying complex systems by breaking them down into smaller, more manageable parts

Q11. what is heap sort?

Ans.

Heap sort is a comparison-based sorting algorithm that uses a binary heap data structure.

  • Heap sort works by first building a max heap from the input array.

  • It then repeatedly extracts the maximum element from the heap and rebuilds the heap.

  • The time complexity of heap sort is O(n log n) and it is an in-place sorting algorithm.

  • Example: [4, 10, 3, 5, 1] -> [1, 3, 4, 5, 10]

Q12. best sorting algorithm?ex[;ain

Ans.

The best sorting algorithm is dependent on the specific use case and data size.

  • Quick Sort is efficient for large datasets due to its average time complexity of O(n log n)

  • Merge Sort is stable and has a time complexity of O(n log n) but requires extra space

  • Insertion Sort is simple and efficient for small datasets with time complexity of O(n^2)

  • Heap Sort is efficient and has a time complexity of O(n log n) but is not stable

Q13. Spring-Boot Use

Ans.

Spring Boot is a framework that simplifies the development of Java applications by providing pre-configured settings and dependencies.

  • Spring Boot is built on top of the Spring framework and follows the convention over configuration principle.

  • It provides a standalone executable JAR file that includes an embedded server, making it easy to deploy and run applications.

  • Spring Boot offers auto-configuration, which automatically configures the application based on the dependencies p...read more

Q14. Design db for college

Ans.

Design a database for a college

  • Identify entities such as students, faculty, courses, departments, etc.

  • Create tables for each entity with appropriate attributes

  • Establish relationships between tables using foreign keys

  • Consider normalization to avoid data redundancy

  • Implement security measures to protect sensitive data

Q15. Design form and display

Ans.

Designing a form and its display involves considering user experience and functionality.

  • Identify the purpose and goals of the form

  • Choose appropriate form elements and layout

  • Ensure clear and concise labeling and instructions

  • Consider accessibility and responsive design

  • Test and iterate for optimal user experience

Q16. Truncate vs Delete

Ans.

Truncate is faster but cannot be rolled back, while Delete is slower but can be rolled back.

  • Truncate removes all rows from a table quickly, but cannot be rolled back.

  • Delete removes rows one by one, slower than Truncate, but can be rolled back using a transaction.

  • Truncate resets the identity seed of the table, while Delete does not.

Q17. middle ware in .net

Ans.

Middle ware in .NET refers to software that acts as a bridge between an operating system or database and applications, providing services such as communication, security, and data management.

  • Middleware in .NET can be used to handle communication between different components of an application.

  • It can provide services like authentication, authorization, and logging.

  • Examples of middleware in .NET include ASP.NET Core middleware for handling HTTP requests and responses.

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

Interview experiences of popular companies

3.7
 • 10k Interviews
3.9
 • 7.8k Interviews
3.7
 • 7.3k Interviews
3.8
 • 5.4k Interviews
3.7
 • 5.2k Interviews
3.8
 • 4.7k Interviews
3.6
 • 3.7k Interviews
4.3
 • 488 Interviews
4.2
 • 296 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

Developer 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
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