Developer

200+ Developer Interview Questions and Answers

Updated 13 Jul 2025
search-icon

Asked in Accenture

6d ago

Q. Why is React considered unidirectional, given that callbacks can be used to send data from child components back to parent components?

Ans.

React is called unidirectional because data flows in one direction, from parent to child components.

  • React's unidirectional data flow means that data is passed down from parent components to child components, but not the other way around.

  • While callbacks can be used to send data back to parents from child components, this does not change the overall unidirectional flow of data in React.

  • This one-way data flow helps to maintain a clear and predictable data flow in React applicati...read more

1w ago

Q. What would be the right time to consider an upgrade?

Ans.

Upgrading software or systems is essential for improved performance, security, and access to new features.

  • Security Vulnerabilities: If a version has known security issues, upgrading is crucial. For example, upgrading from an outdated framework to patch vulnerabilities.

  • Performance Improvements: New versions often come with optimizations. For instance, upgrading a database system can lead to faster query performance.

  • New Features: If a new version introduces features that can en...read more

Asked in TCS

1w ago

Q. Do you know m scripting? What is based workspace.

Ans.

M scripting is a programming language used for data manipulation and analysis. Based workspace is a feature in M scripting for managing data and variables.

  • M scripting is a programming language used in Power Query for data transformation and manipulation.

  • Based workspace in M scripting allows users to manage data and variables in a structured manner.

  • Examples of M scripting functions include Table.AddColumn, Table.TransformColumns, and List.Transform.

2w ago

Q. For example What is the difference between oops and pops What is encapsulation What are different types of polymorphism

Ans.

OOPs stands for Object-Oriented Programming while POPs stands for Procedure-Oriented Programming. Encapsulation is the concept of bundling data and methods that operate on the data into a single unit. Polymorphism refers to the ability of a single function or method to operate on different types of data.

  • OOPs focuses on objects and classes, allowing for better organization and reusability of code.

  • POPs focuses on procedures and functions, which can lead to less organized and le...read more

Are these interview questions helpful?

Asked in SAP

2w ago

Q. How has RAP changed SAP applications?

Ans.

RAP has revolutionized SAP applications by enabling developers to easily create and customize business applications.

  • RAP (ABAP RESTful Application Programming Model) allows developers to quickly build responsive and flexible applications.

  • It simplifies the development process by providing a consistent programming model and predefined templates.

  • RAP enables developers to easily create OData services for SAP applications, making it easier to integrate with other systems.

  • It allows ...read more

Asked in Coda Global

2w ago

Q. Write code for a 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.

Developer Jobs

SAP India Pvt.Ltd logo
Developer- ABAP, CDS, Odata, BOPF 4-8 years
SAP India Pvt.Ltd
4.2
₹ 9 L/yr - ₹ 28 L/yr
(AmbitionBox estimate)
Bangalore / Bengaluru
SAP India Pvt.Ltd logo
Developer 4-7 years
SAP India Pvt.Ltd
4.2
₹ 9 L/yr - ₹ 30 L/yr
(AmbitionBox estimate)
Bangalore / Bengaluru
Mahindra & Mahindra logo
Sr. Developer (MMFSL) 3-8 years
Mahindra & Mahindra
4.1
Mumbai

Asked in S&P Global

2w ago

Q. Coding questions- number of words in a sentence is it circular linkedlist or not star pattern

Ans.

The interview question involves coding questions related to counting words in a sentence, determining if a linked list is circular, and creating a star pattern.

  • To count the number of words in a sentence, split the sentence by spaces and count the number of resulting elements.

  • To determine if a linked list is circular, use two pointers moving at different speeds - if they meet, the list is circular.

  • To create a star pattern, use nested loops to print the desired pattern of stars...read more

Asked in Cisco

2w ago

Q. What are call, apply, and bind?

Ans.

Call, apply, and bind are methods used to manipulate the value of 'this' in JavaScript functions.

  • Call and apply are used to invoke a function with a specific 'this' value and arguments passed as an array or list respectively.

  • Bind returns a new function with a specific 'this' value and any arguments passed as a list.

  • Example: myFunction.call(thisValue, arg1, arg2); myFunction.apply(thisValue, [arg1, arg2]); myFunction.bind(thisValue, arg1, arg2);

Share interview questions and help millions of jobseekers 🌟

man-with-laptop
4d ago

Q. What is the CSS box model?

Ans.

The CSS box model is a design concept that describes how elements are displayed on a web page.

  • It consists of content, padding, border, and margin.

  • The content is the actual element and its size is determined by width and height properties.

  • Padding is the space between the content and the border.

  • Border is the line that surrounds the content and padding.

  • Margin is the space between the border and the next element.

  • The box model can be adjusted using CSS properties like box-sizing a...read more

Asked in TCS

4d ago

Q. What are composition and aggregation relationships?

Ans.

Composition is a strong relationship where the child object cannot exist without the parent object. Aggregation is a weak relationship where the child object can exist independently.

  • Composition is a 'has-a' relationship, where the parent object owns the child object.

  • Aggregation is a 'has-a' relationship, where the child object is a part of the parent object.

  • In composition, the child object's lifetime is managed by the parent object.

  • In aggregation, the child object's lifetime ...read more

Asked in NeoSOFT

1w ago

Q. What are the pros and cons of using JavaScript?

Ans.

Props and cons are not specific terms in JavaScript. Did you mean pros and cons?

  • Pros: flexibility, easy to learn, wide range of applications

  • Cons: can be slow, can be difficult to debug, can have security vulnerabilities

Asked in TO THE NEW

2w ago

Q. What is the difference between First and FirstOrDefault?

Ans.

Defiance refers to resistance or disobedience, while first and default are different spellings of words with distinct meanings.

  • Defiance implies a refusal to comply with authority or rules.

  • First refers to the initial or primary thing in a sequence or list.

  • Default refers to a pre-set value or option that is used when no other choice is made.

  • Examples: Defiance - civil disobedience, First - first place in a race, Default - default font in a word processor.

2w ago

Q. Write a program to find the smallest number from a set of 5 numbers.

Ans.

Program to find the smallest number from 5 given numbers.

  • Declare an array of 5 integers.

  • Take input of 5 numbers from user and store them in the array.

  • Initialize a variable with the first element of the array.

  • Loop through the array and compare each element with the variable.

  • If the element is smaller than the variable, update the variable.

  • After the loop, the variable will contain the smallest number.

  • Print the smallest number.

Q. Write code to explain closures.

Ans.

Closures are functions that have access to variables in their outer scope, even after the outer function has returned.

  • Closures are created when a function is defined inside another function.

  • The inner function has access to the outer function's variables, even after the outer function has returned.

  • Closures can be used to create private variables and methods in JavaScript.

  • Example: function outer() { var x = 10; function inner() { console.log(x); } return inner; } var closure = ...read more

Asked in ION Group

2d ago

Q. Describe your approach to solving the two-egg problem.

Ans.

The 2 egg problem is a classic puzzle about minimizing egg drops to find the highest safe floor in a building.

  • Use two eggs to minimize the number of drops needed.

  • Start dropping from a certain floor and increase the drop floor incrementally.

  • If the first egg breaks, use the second egg to check each floor below the last drop.

Q. What programming languages have you learned?

Ans.

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

  • Java

  • Python

  • C++

1w ago

Q. Explain a scenario where you would use a join query.

Ans.

Join queries are used to combine data from multiple tables based on a common column.

  • Join queries are used when data is spread across multiple tables and needs to be combined for analysis.

  • They are useful for retrieving data from related tables, such as customer orders and order details.

  • Join queries can be used to filter data based on specific criteria, such as only retrieving orders from a certain date range.

  • There are different types of join queries, such as inner join, left j...read more

1w ago

Q. what is react how react is diffrent from other frameworks

Ans.

React is a JavaScript library for building user interfaces, known for its component-based architecture and virtual DOM.

  • React uses a virtual DOM for better performance by only updating the necessary parts of the actual DOM.

  • React follows a component-based architecture, making it easier to reuse code and maintain.

  • React allows developers to write JSX, a syntax extension that resembles HTML, to define the UI components.

  • React is more focused on the view layer of the application, wh...read more

Asked in Wipro

1w ago

Q. What is hashmap and code for it?

Ans.

HashMap is a data structure that stores key-value pairs and provides constant time complexity for basic operations.

  • HashMap is implemented using an array of linked lists or a balanced tree.

  • It allows null values and at most one null key.

  • The put() method is used to insert a key-value pair into the HashMap.

  • The get() method is used to retrieve the value associated with a given key.

  • Example: HashMap<String, Integer> map = new HashMap<>();

Asked in TCS

2w ago

Q. Write code to transpose a Matrix

Ans.

Code to transpose a matrix

  • Iterate through rows and columns of the matrix

  • Swap the elements at (i,j) and (j,i) positions

  • Return the transposed matrix

Asked in TCS

3d ago

Q. If a job has abended, what scenarios will be investigated?

Ans.

When a job abends, it indicates an abnormal termination, requiring specific steps to diagnose and resolve the issue.

  • Identify the error message: Check logs for specific error codes or messages that indicate the cause of the abend.

  • Analyze job dependencies: Determine if other jobs or processes affected the job's execution.

  • Review recent changes: Look for any recent code changes or configuration updates that might have led to the abend.

  • Restart the job: If the issue is transient, a...read more

Asked in TCS

3d ago

Q. What are the four pillars of C++?

Ans.

The 4 pillars of C++ are Abstraction, Encapsulation, Inheritance, and Polymorphism.

  • Abstraction: Hiding implementation details and showing only necessary information.

  • Encapsulation: Binding data and functions together to prevent external interference.

  • Inheritance: Creating new classes from existing ones, inheriting their properties and methods.

  • Polymorphism: Using a single interface to represent multiple types of objects.

3d ago

Q. Write a program to reverse a string without using built-in functions.

Ans.

Program to reverse a string without using inbuilt function

  • Create an empty string to store the reversed string

  • Iterate through the original string from end to start and append each character to the new string

  • Return the reversed string

Asked in TCS

2w ago

Q. How many types of joins are there? Can you give examples?

Ans.

There are four types of joining in SQL: Inner Join, Left Join, Right Join, and Full Join.

  • Inner Join returns only the matching rows from both tables.

  • Left Join returns all the rows from the left table and matching rows from the right table.

  • Right Join returns all the rows from the right table and matching rows from the left table.

  • Full Join returns all the rows from both tables, with NULL values in the columns where there is no match.

  • Examples: Inner Join - SELECT * FROM table1 IN...read more

Asked in Cognizant

1d ago

Q. What are Hooks?

Ans.

Hooks are functions that allow you to use state and other React features without writing a class.

  • Hooks were introduced in React 16.8

  • They allow you to reuse stateful logic

  • useState is a hook that allows you to add state to a functional component

  • useEffect is a hook that allows you to perform side effects in a functional component

  • useContext is a hook that allows you to consume a context in a functional component

Asked in NxtWave

1w ago

Q. What is your aim?

Ans.

My aim is to continuously improve my skills and knowledge in software development while contributing to the success of the company.

  • To become a proficient developer

  • To learn new technologies and programming languages

  • To contribute to the success of the company

  • To work collaboratively with other developers

  • To deliver high-quality software products

Asked in IBM

1w ago

Q. Can we integrate between SAP Data Sphere and SAC?

Ans.

Yes, integration between SAP DataSphere and SAC is possible.

  • SAP DataSphere can be integrated with SAP Analytics Cloud (SAC) to enable data sharing and analysis.

  • Integration allows users to access and analyze data from SAP DataSphere within SAC.

  • Data can be imported from SAP DataSphere into SAC for further analysis and visualization.

  • Integration enables real-time data updates and synchronization between SAP DataSphere and SAC.

  • Users can create dashboards, reports, and visualizatio...read more

Q. What are the differences between Java and C?

Ans.

Java is an object-oriented, platform-independent language, while C is a procedural language with low-level memory access.

  • Java is platform-independent due to the Java Virtual Machine (JVM), while C is platform-dependent and compiled directly to machine code.

  • Java supports automatic garbage collection, whereas C requires manual memory management using malloc() and free().

  • Java is strictly object-oriented, meaning everything is an object, while C is a procedural language that supp...read more

Asked in NTT Data

1w ago

Q. Expalin what is ABAP dictionary Events in ALV report Have you worked on oops abp

Ans.

ABAP Dictionary is a central repository for data definitions used in SAP applications. ALV report events are user actions in ALV grid. OOPs ABAP is object-oriented programming in ABAP.

  • ABAP Dictionary is used to define and manage data definitions in SAP applications

  • ALV report events include user actions like clicking on a row or column header

  • OOPs ABAP allows for object-oriented programming concepts like classes and inheritance

2w ago

Q. 1) Difference between RPG3/RPG4 2) TYPES OF INDICATORS IN RPG 3) CODING RELATED TO SQL AND RPG.

Ans.

RPG3 and RPG4 are different versions of the RPG programming language. RPG3 is an older version, while RPG4 is a newer and more advanced version.

  • RPG3 is the third version of the RPG programming language, while RPG4 is the fourth version.

  • RPG4 introduced many new features and enhancements compared to RPG3.

  • RPG4 supports free-format coding, which allows for more flexibility and readability in code.

  • RPG4 has improved support for SQL integration, making it easier to work with databas...read more

Previous
1
2
3
4
5
6
7
Next

Interview Experiences of Popular Companies

TCS Logo
3.6
 • 11.1k Interviews
Accenture Logo
3.7
 • 8.7k Interviews
Infosys Logo
3.6
 • 7.9k Interviews
Wipro Logo
3.7
 • 6.1k Interviews
Cognizant Logo
3.7
 • 5.9k Interviews
View all
interview tips and stories logo
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories
Developer 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