Add office photos
Employer?
Claim Account for FREE

Epsilon

4.0
based on 615 Reviews
Filter interviews by

A.O. Smith Interview Questions and Answers

Updated 18 Jul 2024
Popular Designations

Q1. What is the differences between Java and Python?

Ans.

Java is statically typed, object-oriented language with a focus on performance and scalability. Python is dynamically typed, high-level language known for its simplicity and readability.

  • Java is statically typed, meaning variable types are explicitly declared at compile time. Python is dynamically typed, allowing for more flexibility but potentially leading to runtime errors.

  • Java is more verbose and requires more boilerplate code compared to Python, which emphasizes readabilit...read more

Add your answer

Q2. Write a program to check if a given string can become palindrome if letters are re-arranged

Ans.

Program to check if a string can be rearranged to form a palindrome

  • Create a frequency map of characters in the string

  • Count the number of characters with odd frequencies

  • If there is at most one character with odd frequency, the string can be rearranged to form a palindrome

Add your answer

Q3. Write SQL query to find 2nd largest Number from DB?

Ans.

Use a subquery to find the 2nd largest number in a database table.

  • Use a subquery to select all distinct numbers from the table

  • Order the numbers in descending order

  • Use LIMIT 1,1 to select the second row which will be the 2nd largest number

Add your answer

Q4. What is diamond problem in Java?

Ans.

Diamond problem in Java occurs when a class inherits from two classes that have a common ancestor, resulting in ambiguity.

  • Occurs in multiple inheritance when a class inherits from two classes that have a common ancestor

  • Results in ambiguity as the compiler cannot determine which method to call

  • Can be resolved using interfaces or by explicitly overriding methods

Add your answer
Discover A.O. Smith interview dos and don'ts from real experiences

Q5. Different Data types in Python ?

Ans.

Python supports various data types including integers, floats, strings, lists, tuples, dictionaries, and more.

  • Integers: whole numbers without decimal points (e.g. 5, -3)

  • Floats: numbers with decimal points (e.g. 3.14, -0.5)

  • Strings: sequences of characters enclosed in quotes (e.g. 'hello', '123')

  • Lists: ordered collections of items (e.g. [1, 'apple', True])

  • Tuples: ordered, immutable collections of items (e.g. (1, 'banana', False))

  • Dictionaries: unordered collections of key-value ...read more

Add your answer

Q6. What is Normalization ?

Ans.

Normalization is the process of organizing data in a database to reduce redundancy and improve data integrity.

  • Normalization is used to eliminate data redundancy by dividing the database into multiple tables and defining relationships between them.

  • It helps in reducing data anomalies such as insertion, update, and deletion anomalies.

  • Normalization is achieved through a series of stages called normal forms (1NF, 2NF, 3NF, BCNF, etc.).

  • For example, in a database of students and cou...read more

Add your answer

Q7. Latest version of Java

Ans.

Java 17 is the latest version as of September 2021.

  • Java 17 was released on September 14, 2021.

  • It includes new features like sealed classes, pattern matching for switch statements, and more.

  • Oracle provides long-term support for Java 17 until 2029.

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories
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
Get AmbitionBox app

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