Skip to contentSkip to footer
  • Community
  • Jobs
  • Companies
  • Salaries
  • For employers
      Notifications

      Loading...

      Elevate your career

      Discover your earning potential, land dream jobs, and share work-life insights anonymously.

      employer cover photo
      employer logo
      employer logo

      KLA

      Engaged employer

      About
      Reviews
      Pay and benefits
      Jobs
      Interviews
      Interviews
      Related searches: KLA reviews | KLA jobs | KLA salaries | KLA benefits
      KLA interviewsKLA QA Automation Engineer interviewsKLA interview


      Glassdoor

      • About / Press
      • Awards
      • Blog
      • Research
      • Contact Us
      • Guides

      Employers

      • Free Employer Account
      • Employer Centre
      • Employers Blog

      Information

      • Help
      • Guidelines
      • Terms of Use
      • Privacy and Ad Choices
      • Do Not Sell Or Share My Information
      • Cookie Consent Tool
      • Security

      Work With Us

      • Advertisers
      • Careers
      Download the App

      • Browse by:
      • Companies
      • Jobs
      • Locations
      • Communities
      • Recent posts

      Copyright © 2008-2026. Glassdoor LLC. "Glassdoor," "Worklife Pro," "Bowls" and logo are proprietary trademarks of Glassdoor LLC.

      Company Bowl sample

      Want the inside scoop on your own company?

      Check out your Company Bowl for anonymous work chats.

      Bowls

      Get actionable career advice tailored to you by joining more bowls.

      Followed companies

      Stay ahead in opportunities and insider tips by following your dream companies.

      Job searches

      Get personalised job recommendations and updates by starting your searches.

      QA Automation Engineer Interview

      Oct 11, 2024
      Anonymous interview candidate
      No offer
      Positive experience
      Average interview

      Application

      I applied through other source. I interviewed at KLA in Oct 2024

      Interview

      The interview began with a brief introduction, followed by three technical questions: designing a fitness tracking class, validating password proximity errors, and exploring problem-solving strategies. The session concluded with a Q&A segment.

      Interview questions [1]

      Question 1

      Q1: Class Definition Write a Python class MyFitness that includes two public methods: add_food(username, kind_of_food, amount) Parameters: username: A string representing the user's name. kind_of_food: Can be either "protein", "fat", or "carbs". amount: The quantity of the specified food in grams. The method calculates the calories based on the type of food added: Protein: 1 gram = 40 calories Fat: 1 gram = 70 calories Carbohydrates: 1 gram = 140 calories The method updates the user's calorie and macro information. show_information() This method displays the current food intake information for all users in JSON format. Example output: json Copy code [ {"username": "user1", "protein": 140, "fat": 150, "carbs": 170, "calories": 300}, {"username": "user2", "protein": 150, "fat": 150, "carbs": 70, "calories": 290} ] Q2: Password Validation Function Write a boolean function is_password_valid(passfromDb, passfromWeb) that checks whether the password entered via the web (passfromWeb) can be accepted based on the following condition: The passwords must be exactly the same except for one character. The mistake in the web password can only occur if the character in passfromWeb is a neighboring key to the corresponding character in passfromDb on a standard QWERTY keyboard. Example: python Copy code passfromDb = "absd" passfromWeb = "ansd" In this case, the function would return True because 'n' is a neighboring key to 'b' on the keyboard.
      Answer question

      Top companies for "Compensation and Benefits" near you

      avatar
      Siemens
      3.8★Compensation and benefits
      avatar
      Samsung Electronics
      3.7★Compensation and benefits
      avatar
      ABB
      3.7★Compensation and benefits
      avatar
      Eaton
      3.7★Compensation and benefits