Add office photos
Engaged Employer

Diebold Nixdorf

3.8
based on 559 Reviews
Video summary
Filter interviews by

10+ Airproducts Interview Questions and Answers

Updated 22 Jul 2024

Q1. Explain Polymorphism,Constructors,Destructors,Classes

Ans.

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

View 2 more answers

Q2. Explain mergesort and implement it in code

Ans.

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

Add your answer

Q3. How to pass data in angular from component to component

Ans.

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

Add your answer

Q4. Check if a string is palindrome or not

Ans.

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

Add your answer
Discover Airproducts interview dos and don'ts from real experiences

Q5. Remove duplicates in linked lists

Ans.

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)

Add your answer

Q6. Why not GATE

Ans.

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

Add your answer
Are these interview questions helpful?

Q7. Reverse words in a string

Ans.

Reverse words in a string

  • Split the string into an array of words

  • Reverse the array

  • Join the array into a string

Add your answer

Q8. Explain Encapsulisation

Ans.

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

Add your answer
Share interview questions and help millions of jobseekers 🌟

Q9. Reverse a string

Ans.

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

Add your answer

Q10. Write code of palindrome

Ans.

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

Add your answer

Q11. OOPs concepts with example

Ans.

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

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at Airproducts

based on 3 interviews
Interview experience
3.3
Average
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Software Engineer Interview Questions from Similar Companies

3.8
 • 121 Interview Questions
3.8
 • 57 Interview Questions
3.5
 • 49 Interview Questions
4.0
 • 16 Interview Questions
3.5
 • 10 Interview Questions
View all
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
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

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