Filter interviews by
Top trending discussions
posted on 25 Oct 2024
I applied via Approached by Company and was interviewed in Sep 2024.
posted on 20 Nov 2024
Relevant area synapses of preparation through PPT
It was an online CBT
All the questions asked about hydraulic design of water distribution network and hydraulic modeling software like ICM, info works, waterGEMS and SewerGEMS etc.
I applied via Naukri.com and was interviewed in Sep 2024.
Medium leetcode question related to dp.
LLD round to create a cache library
posted on 25 Jun 2024
I applied via Company Website and was interviewed in Mar 2024.
Verbal Reasoning Test,evaluates the ability to comprehend written information, analyze arguments, and draw logical conclusions. It's useful for roles that require strong communication and critical thinking skills.
Function in Python that takes a list of integers as input and returns the sum of all the even numbers in the list.
# Input
numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
# Output
# Sum of even numbers: 2 + 4 + 6 + 8 + 10 = 30
print(sum_even_numbers(numbers)) # Output: 30
Solution:
def sum_even_numbers(numbers):
"""
Calculate the sum of all even numbers in a list.
Args:
numbers (list of int): List of integers.
Returns:
int: Sum of all even numbers in the list.
"""
return sum(num for num in numbers if num % 2 == 0)
# Test the function
numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
print(sum_even_numbers(numbers)) # Output: 30
based on 5 reviews
Rating in categories
Plant Operator
4
salaries
| ₹2.9 L/yr - ₹9.6 L/yr |
Executive Quality Control
3
salaries
| ₹12 L/yr - ₹12 L/yr |
Production Operator
3
salaries
| ₹4.8 L/yr - ₹10 L/yr |
Reliance Industries
Bharat Petroleum
Indian Oil Corporation
Hindustan Petroleum