Filter interviews by
I was interviewed in May 2022.
The question asks for two numbers to be entered.
Ask for input from user using input() function
Store the input values in variables
Convert the input values to integers using int() function
Perform required operations on the numbers
posted on 23 Dec 2024
Use slicing with step size -1 to reverse a string in Python.
Use string slicing with step size -1 to reverse the string.
Example: 'hello'[::-1] will return 'olleh'.
Yes, you can reverse a string in Python using slicing.
Use the slicing syntax [::-1] to reverse a string.
Example: 'hello'[::-1] will return 'olleh'.
posted on 18 Dec 2024
Use the reverse() method to reverse a list in Python.
Use the reverse() method to reverse the elements of a list in place.
Example: my_list = [1, 2, 3, 4]; my_list.reverse(); print(my_list) will output [4, 3, 2, 1].
posted on 19 Dec 2024
Use slicing with step -1 to reverse a string in Python.
Use string slicing with step -1 to reverse a string: str[::-1]
Example: 'hello'[::-1] will return 'olleh'
Using slicing to reverse a string in Python
Use slicing with a step of -1 to reverse the string
Example: reversed_string = 'hello'[::-1]
Print reversed_string to see the reversed result
posted on 17 Dec 2024
Use slicing with step -1 to reverse a string in Python.
Use slicing with step -1 to reverse a string: str[::-1]
Example: s = 'hello', reversed_s = s[::-1] will result in 'olleh'
Slicing in Python allows you to extract a portion of a string or list by specifying a start and end index.
Use square brackets [] to specify the start and end index for slicing.
The start index is inclusive, while the end index is exclusive.
You can also specify a step value to skip elements while slicing.
Example: reverse_string = 'hello'; reverse_string[::-1] will output 'olleh'.
posted on 10 Dec 2024
Python decorator is a design pattern that allows you to add new functionality to existing functions or methods without modifying their structure.
Decorators are denoted by the @ symbol followed by the decorator name.
They are functions that take another function as an argument and return a new function.
Decorators can be used for logging, timing, authentication, and more.
Example: @my_decorator def my_function(): pass
posted on 10 Dec 2024
Exceptions in Python are handled using try-except blocks to catch and handle errors gracefully.
Use try-except blocks to catch exceptions and handle them gracefully.
You can specify different except blocks for different types of exceptions.
Use the 'finally' block to execute code regardless of whether an exception was raised or not.
I applied via Walk-in and was interviewed in Oct 2023. There were 4 interview rounds.
Measure of your ability to learn or perform required tasks and succeed in the environment you're in. They are not a measure of intelligence these tests look for your strengths and weaknesses, giving you and the evaluator an idea of your abilities.
To asking the question for the coding
Assistant Manager
4
salaries
| ₹4.8 L/yr - ₹6.9 L/yr |
Senior Engineer
4
salaries
| ₹3.5 L/yr - ₹8.8 L/yr |
Project Engineer
4
salaries
| ₹3 L/yr - ₹5.4 L/yr |
Site Engineer
4
salaries
| ₹1.5 L/yr - ₹3.8 L/yr |
Senior Project Engineer
4
salaries
| ₹6.2 L/yr - ₹6.5 L/yr |
Xtech
C Systems
D Technology
eLabs