i
Northcorp
Software
Filter interviews by
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
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].
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'.
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'
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(): ...
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.
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'.
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'.
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].
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
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'.
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
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.
Top trending discussions
I applied via Campus Placement and was interviewed in Jul 2022. There were 3 interview rounds.
Their are 30 questions which one has to done in 30 mins
I applied via Campus Placement and was interviewed in Sep 2023. There were 4 interview rounds.
Python based questions
I applied via Recruitment Consulltant and was interviewed in Apr 2024. There was 1 interview round.
This question tests your ability to identify and generate patterns in coding.
Understand the pattern: Analyze the given examples to identify the underlying rule.
Use loops: Implement loops to generate sequences based on the identified pattern.
Consider edge cases: Ensure your solution handles special cases, like empty arrays or single elements.
Optimize for performance: Think about the time complexity of your solution, esp...
posted on 1 Nov 2024
I applied via Campus Placement and was interviewed in Oct 2024. There were 2 interview rounds.
Number series in aptitude involves identifying the pattern in a sequence of numbers and predicting the next number.
Look for patterns such as arithmetic progression, geometric progression, or a combination of both.
Check for alternate numbers, differences between consecutive numbers, or multiplication factors.
Consider prime numbers, squares, cubes, or other mathematical operations applied to the series.
Example: 2, 4, 6, ...
Relationships in verbal communication are crucial for effective collaboration and understanding.
Verbal communication involves both verbal and non-verbal cues
Active listening is key to building strong relationships in verbal communication
Clarity and conciseness in speech can enhance relationships
Empathy and understanding of others' perspectives are important in verbal relationships
The four branches of OOP are encapsulation, inheritance, polymorphism, and abstraction.
Encapsulation: Bundling data and methods that operate on the data into a single unit.
Inheritance: Allowing a class to inherit properties and behavior from another class.
Polymorphism: The ability for objects of different classes to respond to the same method call.
Abstraction: Hiding the complex implementation details and showing only ...
Structures in C are user-defined data types that allow grouping of variables of different data types under a single name.
Structures are used to represent a record which consists of different data types.
They are defined using the 'struct' keyword.
Each variable in a structure is called a member.
Structures can be nested within other structures.
Example: struct employee { int emp_id; char emp_name[50]; float emp_salary; };
E...
based on 6 interview experiences
based on 6 reviews
Rating in categories
Devops Engineer
9
salaries
| ₹1.5 L/yr - ₹6.8 L/yr |
Software Developer
8
salaries
| ₹2 L/yr - ₹4.5 L/yr |
Senior Software Engineer
7
salaries
| ₹8.4 L/yr - ₹27 L/yr |
Senior Java Developer
6
salaries
| ₹14 L/yr - ₹22 L/yr |
Software Engineer
5
salaries
| ₹1 L/yr - ₹11.3 L/yr |
Zidio Development
Accel Frontline
Elentec Power India (EPI) Pvt. Ltd.
HyScaler