Developer Associate

filter-iconFilter interviews by

30+ Developer Associate Interview Questions and Answers

Updated 5 Sep 2024

Popular Companies

search-icon

Q1. Cycle Detection in a Singly Linked List

Determine if a given singly linked list of integers forms a cycle or not.

A cycle in a linked list occurs when a node's next points back to a previous node in the list. T...read more

Ans.

Detect if a singly linked list forms a cycle by checking if a node's next points back to a previous node.

  • Traverse the linked list using two pointers, one moving one step at a time and the other moving two steps at a time.

  • If the two pointers meet at any point, it indicates the presence of a cycle in the linked list.

  • If one of the pointers reaches the end of the list (null), it means there is no cycle.

Frequently asked in,

Q2. Reverse a Linked List Iteratively

You are given a singly linked list of integers. The task is to return the head of the reversed linked list.

Example:

Input:
The given linked list is 1 -> 2 -> 3 -> 4 -> NULL.
O...read more
Ans.

Reverse a singly linked list iteratively and return the head of the reversed linked list.

  • Iterate through the linked list and reverse the pointers to point to the previous node instead of the next node.

  • Keep track of the previous, current, and next nodes while traversing the linked list.

  • Update the head of the reversed linked list to be the last node encountered.

  • Time complexity: O(N), Space complexity: O(1).

Developer Associate Interview Questions and Answers for Freshers

illustration image

Q3. Inorder Successor in a Binary Tree

Given a node in an arbitrary binary tree, find its inorder successor. The successor is defined as the node that appears immediately after the given node in the in-order traver...read more

Ans.

Given a node in a binary tree, find its inorder successor in the tree.

  • Traverse the tree in in-order fashion to find the successor node.

  • If the given node has a right child, the successor will be the leftmost node in the right subtree.

  • If the given node does not have a right child, backtrack to the parent nodes to find the successor.

  • Handle the case where the given node is the last node in the in-order traversal.

  • Return the value of the successor node or 'NULL' if no successor exi...read more

Q4. Uncommon Characters Problem Statement

Given two strings str1 and str2 containing only lowercase alphabets, find the characters that are unique to each string, i.e., characters that occur in only one of the stri...read more

Ans.

Find uncommon characters in two strings and return them in lexicographically sorted order.

  • Iterate through each character in both strings and keep track of their frequency using a hashmap.

  • Iterate through the hashmap and add characters with frequency 1 to the result array.

  • Sort the result array in lexicographical order and return it.

Are these interview questions helpful?

Q5. Merge Sort Problem Statement

You are given a sequence of numbers, ARR. Your task is to return a sorted sequence of ARR in non-descending order using the Merge Sort algorithm.

Explanation:

The Merge Sort algorit...read more

Ans.

Implement Merge Sort algorithm to sort a sequence of numbers in non-descending order.

  • Understand the Merge Sort algorithm which involves dividing the array into two halves, sorting each half, and then merging them back together.

  • Recursively apply the Merge Sort algorithm until the base case of having a single element in the array is reached.

  • Merge the sorted halves back together in a way that maintains the non-descending order of the elements.

  • Ensure to handle the input constrain...read more

Q6. What is frontend skills ? Can you tell me the basic full form and defenition of HTML, CSS, JS and Bootstrap ??

Ans.

Frontend skills refer to the skills required to develop the user-facing part of a website or application.

  • HTML stands for HyperText Markup Language and is used to create the structure of web pages.

  • CSS stands for Cascading Style Sheets and is used to style the HTML elements.

  • JS stands for JavaScript and is used to add interactivity to web pages.

  • Bootstrap is a front-end framework used to design and customize responsive websites.

Share interview questions and help millions of jobseekers 🌟

man-with-laptop

Q7. What is Backend ? JAVA, PYTHON, C ?? What is SQL or MYSQL or PHP ?

Ans.

Backend refers to the server-side of an application where the logic, database, and APIs are hosted.

  • Backend is responsible for processing data and communicating with the frontend.

  • JAVA, PYTHON, C are programming languages commonly used for backend development.

  • SQL and MYSQL are database management systems used to store and retrieve data.

  • PHP is a server-side scripting language used for web development.

Q8. How to reverse a linked list and write program to get right view of a binary tree.

Ans.

To reverse a linked list, we need to traverse the list and change the direction of the pointers. To get the right view of a binary tree, we need to traverse the tree and keep track of the rightmost node at each level.

  • To reverse a linked list, we can use three pointers to keep track of the current, previous, and next nodes.

  • To get the right view of a binary tree, we can use a queue to traverse the tree level by level and keep track of the rightmost node at each level.

  • Both opera...read more

Developer Associate Jobs

Brand Development Associate 1-4 years
Amazon India Software Dev Centre Pvt Ltd
4.1
Bangalore / Bengaluru
DPSF-DPA-PowerApp Developer Associate 1-5 years
Ernst Young
3.4
Kochi
Development Associate 2-3 years
The Depository Trust Clearing Corporation (DTCC)
4.3
Hyderabad / Secunderabad

Q9. Linq questions: First vs Firstordefault, single vs singleordefault, convert generic list to non generic type.

Ans.

Explanation of Linq methods First, FirstOrDefault, Single, SingleOrDefault and converting generic list to non generic type.

  • First returns the first element of a sequence, throws an exception if sequence is empty.

  • FirstOrDefault returns the first element of a sequence or default value if sequence is empty.

  • Single returns the only element of a sequence, throws an exception if sequence has more than one element or is empty.

  • SingleOrDefault returns the only element of a sequence or d...read more

Q10. Write the longest program that you can in a language of your choice and explain it line to line

Ans.

The program generates a Fibonacci sequence up to a given number.

  • The program takes an input number from the user.

  • It initializes an array with the first two Fibonacci numbers.

  • Using a loop, it calculates the next Fibonacci number by summing the previous two numbers.

  • The loop continues until the next Fibonacci number exceeds the given input number.

  • The program then prints the Fibonacci sequence up to the given number.

Q11. Delete vs truncate pillars of oops(explain each one with example)

Ans.

Delete removes rows from a table while truncate removes all rows from a table. Pillars of OOP are Inheritance, Encapsulation, Polymorphism, Abstraction.

  • Delete is a DML command used to remove specific rows from a table.

  • Truncate is a DDL command used to remove all rows from a table.

  • Pillars of OOP: Inheritance - allows a class to inherit properties and behavior from another class. Example: class Dog extends Animal.

  • Encapsulation - bundling data and methods that operate on the dat...read more

Q12. What technologies did you Know?

Ans.

I know several technologies including Java, Python, HTML, CSS, JavaScript, and SQL.

  • Java

  • Python

  • HTML

  • CSS

  • JavaScript

  • SQL

Q13. What are API's, why they are used?

Ans.

API's are interfaces that allow different software applications to communicate with each other.

  • API stands for Application Programming Interface

  • API's are used to define the methods for communication between different software components

  • They allow developers to access the functionality of a system or service without needing to understand its internal workings

  • API's are commonly used in web development to interact with external services like Google Maps API, Twitter API, etc.

Q14. design a calculator that does operations on 128 bit integers.

Ans.

Design a calculator that performs operations on 128 bit integers.

  • Use a data structure like an array to store the 128 bit integers.

  • Implement functions for addition, subtraction, multiplication, and division.

  • Consider handling overflow and underflow cases.

  • Use bitwise operations for efficient calculations.

Q15. Show some designs that you have made..

Ans.

I have designed various user interfaces for web and mobile applications.

  • Designed a responsive web interface for a travel booking website

  • Created a mobile app interface for a food delivery service

  • Designed a dashboard for a project management tool

  • Created wireframes and prototypes for various projects

Q16. Difference between block, div and section

Ans.

Block, div, and section are HTML elements used for structuring content on a webpage.

  • Block: A block-level element takes up the full width available and starts on a new line. Examples include <div>, <p>, <h1>.

  • Div: A <div> element is a generic container used to group elements together. It has no semantic meaning.

  • Section: A <section> element is used to group related content together. It typically has a heading and represents a thematic grouping of content.

Q17. how to take jenkins backup using plugins

Ans.

Use Jenkins plugin to easily backup Jenkins configurations and data

  • Install the 'ThinBackup' plugin in Jenkins

  • Configure the plugin to schedule regular backups of Jenkins configurations and data

  • Specify the backup location and retention policy in the plugin settings

  • Run manual backups as needed through the plugin interface

Q18. where do you save ansible files

Ans.

Ansible files are typically saved in a version control system like Git for easy access and collaboration.

  • Save ansible files in a version control system like Git

  • Create separate repositories for different projects or roles

  • Organize files into directories based on their purpose or role

  • Use naming conventions to easily identify files and their functions

Q19. What is python and uses of python

Ans.

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

  • Python is used for web development (Django, Flask)

  • Python is used for data analysis and visualization (Pandas, Matplotlib)

  • Python is used for artificial intelligence and machine learning (TensorFlow, PyTorch)

  • Python is used for automation and scripting

Q20. Different types of Joins in SQL

Ans.

Different types of Joins in SQL include Inner Join, Left Join, Right Join, and Full Join.

  • Inner Join: Returns rows when there is a match in both tables.

  • Left Join: Returns all rows from the left table and the matched rows from the right table.

  • Right Join: Returns all rows from the right table and the matched rows from the left table.

  • Full Join: Returns rows when there is a match in either table.

Q21. Jil and monkey in python and pep in python

Ans.

Jil and monkey are Python libraries used for testing, while PEP stands for Python Enhancement Proposal.

  • Jil is a Python library for testing JSON APIs.

  • Monkey is a Python library for testing concurrent code.

  • PEP refers to Python Enhancement Proposal, which is a design document providing information to the Python community.

Q22. Subjects you are comfortable with

Ans.

I am comfortable with various subjects related to software development.

  • Programming languages (e.g. Java, Python, C++)

  • Web development (e.g. HTML, CSS, JavaScript)

  • Database management (e.g. SQL, MongoDB)

  • Software testing and debugging

  • Version control systems (e.g. Git)

  • Object-oriented programming concepts

  • Algorithms and data structures

Q23. List the Git commands that you know?

Ans.

List of common Git commands for version control

  • git init - initialize a new Git repository

  • git clone - clone a repository into a new directory

  • git add - add file changes to the staging area

  • git commit - commit changes to the repository

  • git push - push changes to a remote repository

  • git pull - fetch and merge changes from a remote repository

  • git branch - list, create, or delete branches

  • git merge - merge changes from one branch into another

  • git checkout - switch branches or restore wor...read more

Q24. Check if there is Loop in a Linked List

Ans.

To check if there is a loop in a linked list, we can use Floyd's cycle-finding algorithm.

  • Create two pointers, slow and fast, and initialize them to the head of the linked list.

  • Move slow pointer by one node and fast pointer by two nodes.

  • If there is a loop, the fast pointer will eventually catch up to the slow pointer.

  • If there is no loop, the fast pointer will reach the end of the linked list.

  • Time complexity: O(n), Space complexity: O(1)

Q25. Merge sort explain and write code

Ans.

Merge sort is a divide and conquer algorithm that sorts an array by dividing it into two halves, sorting each half, and then merging them.

  • Divide the array into two halves

  • Recursively sort the two halves

  • Merge the sorted halves

  • Time complexity is O(n log n)

  • Space complexity is O(n)

Q26. Multiple inheritence in java exists or not

Ans.

Multiple inheritance does not exist in Java due to the Diamond Problem.

  • Java does not support multiple inheritance for classes to avoid the Diamond Problem.

  • However, multiple inheritance is supported for interfaces in Java.

  • To achieve multiple inheritance for classes, you can use interfaces and implement them in the classes.

Q27. Explained company policies

Ans.

Company policies are guidelines and rules set by the company to govern employee behavior and decision-making.

  • Company policies outline acceptable behavior and expectations for employees.

  • They cover areas such as attendance, dress code, code of conduct, and use of company resources.

  • Policies are typically communicated to employees through an employee handbook or orientation.

  • Employees are expected to adhere to company policies to maintain a positive work environment and ensure com...read more

Q28. what are binary trees?

Ans.

Binary trees are hierarchical data structures composed of nodes, where each node has at most two children.

  • Consists of nodes with at most two children - left and right

  • Each node can have zero, one, or two children

  • Used in various applications like binary search trees, expression trees, etc.

Q29. What is polymorphism

Ans.

Polymorphism is the ability of a function or method to behave differently based on the object it is called on.

  • Polymorphism allows objects of different classes to be treated as objects of a common superclass.

  • It enables a single interface to be used for different data types or classes.

  • Examples include method overloading and method overriding in object-oriented programming.

Frequently asked in, ,

Q30. Package you are expecting

Ans.

I am expecting a competitive salary package with benefits such as health insurance, paid time off, and opportunities for professional development.

  • Competitive salary

  • Health insurance

  • Paid time off

  • Professional development opportunities

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

Interview experiences of popular companies

3.7
 • 10.4k Interviews
3.8
 • 8.1k Interviews
3.8
 • 5.6k Interviews
4.0
 • 2.3k Interviews
3.5
 • 362 Interviews
4.2
 • 283 Interviews
4.0
 • 38 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

Recently Viewed
LIST OF COMPANIES
Discover companies
Find best workplace
DESIGNATION
SALARIES
EY Global Delivery Services ( EY GDS)
INTERVIEWS
Intel Migration​
No Interviews
SALARIES
SAP
SALARIES
Visa
INTERVIEWS
Clifford Chance
No Interviews
INTERVIEWS
Vakilsearch
No Interviews
INTERVIEWS
Integreon
No Interviews
INTERVIEWS
UnitedLex
No Interviews
Developer Associate 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