Add office photos
Employer?
Claim Account for FREE

Cyware

3.0
based on 23 Reviews
Filter interviews by

Siemens Interview Questions and Answers

Updated 14 Dec 2024

Q1. What factors to pay attention to when creating REST API

Ans.

Factors to consider when creating REST API

  • Define clear and consistent naming conventions for endpoints and resources

  • Use proper HTTP methods (GET, POST, PUT, DELETE) for CRUD operations

  • Implement proper error handling and status codes

  • Ensure security measures such as authentication and authorization are in place

  • Optimize performance by considering caching and pagination

  • Document the API thoroughly for developers to easily understand and use

Add your answer

Q2. print the summation of all the digit until the length of the digit is 1

Ans.

Sum all digits until single digit is reached

  • Iterate through each digit and add them together

  • Repeat the process until the sum is a single digit

  • Example: For input 1234, sum = 1+2+3+4 = 10, then sum = 1+0 = 1

Add your answer

Q3. Why python and explain about list.

Ans.

Python is a popular programming language known for its simplicity and readability. Lists in Python are versatile data structures that can hold multiple items of different types.

  • Python is widely used in software development due to its ease of use and readability.

  • Lists in Python are ordered collections of items, which can be of different data types.

  • Lists can be modified, appended, sorted, and sliced in Python.

  • Example: list_example = [1, 'apple', True, 3.14]

Add your answer

Q4. Design a website for children

Ans.

A colorful and interactive website designed to engage and educate children through games, videos, and interactive activities.

  • Use bright colors and fun animations to capture children's attention

  • Include interactive games and puzzles to make learning fun

  • Incorporate educational videos and interactive activities to keep children engaged

  • Ensure the website is easy to navigate and user-friendly for children of all ages

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

Q5. MAx sum of non adjacent elements

Ans.

Find the maximum sum of non-adjacent elements in an array.

  • Create an array to store the maximum sum at each index

  • Iterate through the input array and calculate the maximum sum considering the current element and the previous non-adjacent element

  • Return the maximum sum found

Add your answer

Q6. optimize it further

Ans.

Utilize efficient algorithms, minimize redundant code, optimize database queries

  • Use data structures like hash maps or binary trees for faster lookups

  • Minimize nested loops and unnecessary iterations

  • Optimize database queries by using indexes and avoiding unnecessary joins

Add your answer

Q7. Median streaming problem print

Ans.

The median streaming problem involves finding the median of a stream of numbers as they are being inputted.

  • Maintain two heaps - a max heap for the lower half of the numbers and a min heap for the higher half.

  • Keep the heaps balanced by ensuring the size difference is at most 1.

  • If the total number of elements is odd, the median is the root of the max heap. If even, average the roots of both heaps.

View 1 answer

Q8. reverse a string

Ans.

Reverse a string by using built-in functions or manually iterating through the characters.

  • Use built-in functions like reverse() in Python or StringBuilder.reverse() in Java.

  • Manually iterate through the characters of the string and append them in reverse order to a new string.

  • Consider edge cases like empty string or null input.

Add your answer

Q9. Product experiences

Ans.

Product experiences are crucial for customer satisfaction and loyalty.

  • Product experiences can greatly impact customer satisfaction and loyalty.

  • Positive product experiences can lead to repeat purchases and word-of-mouth recommendations.

  • Negative product experiences can result in customer churn and negative reviews.

  • Examples: Apple's seamless user experience, Tesla's innovative features, Amazon's convenient shopping experience.

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

Interview Process at Siemens

based on 10 interviews in the last 1 year
Interview experience
3.9
Good
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Interview Questions from Similar Companies

3.6
 • 1.6k Interview Questions
3.3
 • 474 Interview Questions
4.2
 • 384 Interview Questions
3.8
 • 328 Interview Questions
4.2
 • 203 Interview Questions
4.2
 • 177 Interview Questions
View all
Top Cyware Interview Questions And Answers
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