Developer
10+ Developer Interview Questions and Answers for Freshers
Q1. Puzzle- You have a 3 gallon and 5 gallon jug, how would you fill a 4 gallon jug?
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.
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
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
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.
Q5. What programming language learned?
I have learned multiple programming languages including Java, Python, and C++.
Java
Python
C++
Q6. Tell me about python language?
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 🌟
Q7. What is SDLC?
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.
Q8. OOP Concept they have Taken?
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
Q9. How is work environment
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
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?
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
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
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
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
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
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
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 Questions of Similar Designations
Top Interview Questions for Developer Related Skills
Interview experiences of popular companies
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
Reviews
Interviews
Salaries
Users/Month