Diebold Nixdorf
10+ Airproducts Interview Questions and Answers
Q1. Explain Polymorphism,Constructors,Destructors,Classes
Polymorphism is the ability of an object to take on many forms. Constructors and destructors are special methods in classes.
Polymorphism allows objects to be treated as instances of their own class or as instances of their parent class.
Constructors are used to initialize objects when they are created. Destructors are used to clean up after an object when it is destroyed.
Classes are templates for creating objects. They define the properties and methods that an object will have...read more
Q2. Explain mergesort and implement it in code
Mergesort is a divide-and-conquer algorithm that sorts an array by dividing it into two halves, sorting each half, and merging them.
Divide the array into two halves
Sort each half recursively
Merge the two sorted halves
Repeat until the entire array is sorted
Example: ['apple', 'banana', 'cherry', 'date'] -> ['apple', 'banana', 'cherry', 'date'] -> ['apple', 'banana'], ['cherry', 'date'] -> ['apple'], ['banana'], ['cherry'], ['date'] -> ['apple', 'banana'], ['cherry', 'date'] -> ...read more
Q3. How to pass data in angular from component to component
Data can be passed in Angular from component to component using input properties, output properties, services, and state management libraries like NgRx.
Use @Input decorator to pass data from parent to child component
Use @Output decorator to emit events from child to parent component
Use services to share data between components
Use state management libraries like NgRx for complex data sharing scenarios
Q4. Check if a string is palindrome or not
Check if a string is palindrome or not
Reverse the string and compare with original
Compare characters from start and end of string
Ignore spaces and punctuation marks while comparing
Q5. Remove duplicates in linked lists
Remove duplicates in linked lists
Traverse the linked list and keep track of visited nodes using a hash table
If a node is already visited, remove it from the linked list
Time complexity: O(n), Space complexity: O(n)
Q6. Why not GATE
GATE is not my preferred choice as I am more interested in software development than research.
I am more interested in practical application of software development than theoretical research
I believe my skills and interests align better with software engineering roles
I have researched and found that software engineering roles do not require a GATE qualification
Q7. Reverse words in a string
Reverse words in a string
Split the string into an array of words
Reverse the array
Join the array into a string
Q8. Explain Encapsulisation
Encapsulation is the process of hiding implementation details and exposing only the necessary information to the user.
Encapsulation is achieved through access modifiers like public, private, and protected.
It helps in achieving data abstraction and information hiding.
Encapsulation provides better control over the data and prevents unauthorized access.
Example: A class with private variables and public methods to access those variables.
Encapsulation is one of the four fundamenta...read more
Q9. Reverse a string
Reverse a given string
Create an empty string
Iterate through the original string in reverse order
Append each character to the empty string
Return the reversed string
Q10. Write code of palindrome
Code to check if a given string is a palindrome or not.
Create a function that takes a string as input
Remove all non-alphanumeric characters and convert to lowercase
Compare the original string with its reverse to check for palindrome
Q11. OOPs concepts with example
OOPs concepts are fundamental principles of object-oriented programming, including inheritance, encapsulation, polymorphism, and abstraction.
Inheritance: Allows a class to inherit properties and behavior from another class. Example: Animal class can inherit from Mammal class.
Encapsulation: Bundling data and methods that operate on the data into a single unit. Example: Using private variables and public methods in a class.
Polymorphism: Ability of a function to behave different...read more
Interview Process at Airproducts
Top Software Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month