Filter interviews by
I applied via Approached by Company and was interviewed in Jul 2024. There was 1 interview round.
Lists are mutable, ordered collections while tuples are immutable, ordered collections.
Lists can be modified after creation, tuples cannot.
Lists are denoted by square brackets [], tuples by parentheses ().
Lists are typically used for collections of similar items, tuples for fixed collections of different items.
The '==' operator compares the values of two objects, while the 'is' keyword checks if two objects are the same instance.
Use '==' for value comparison, use 'is' for object identity comparison
Example: x == y (compares values), x is y (checks if same instance)
The '==' operator can be overloaded by classes, but 'is' cannot be overloaded
The init method in Python is a special method used to initialize objects of a class.
The init method is called when a new object is created from a class.
It is used to initialize the attributes of the object.
The init method is defined with the __init__ keyword in Python.
Example: class MyClass: def __init__(self, x): self.x = x obj = MyClass(5)
Context management in Python is handled using the 'with' statement to ensure resources are properly managed and released.
Use the 'with' statement to create a context manager
Implement the __enter__() and __exit__() methods in a class to define the behavior of the context manager
Resources like files, database connections, or locks can be managed using context managers
Example: with open('file.txt', 'r') as file: # File
File operations in Python involve opening, reading, writing, and closing files.
Use the 'open()' function to open a file in different modes (read, write, append, etc.)
Use 'read()' or 'readline()' to read content from a file
Use 'write()' to write content to a file
Remember to close the file using 'close()' to free up system resources
Indexing in SQL is a way to optimize the performance of queries by creating a data structure that allows for faster retrieval of data.
Indexes are created on columns in a table to speed up the retrieval of rows based on certain conditions.
Types of indexes include clustered, non-clustered, unique, and composite indexes.
Examples of SQL indexing commands include CREATE INDEX, DROP INDEX, and ALTER INDEX.
Types of joins in SQL include INNER JOIN, LEFT JOIN, RIGHT JOIN, and FULL JOIN.
INNER JOIN: Returns rows when there is at least one match in both tables.
LEFT JOIN: Returns all rows from the left table and the matched rows from the right table.
RIGHT JOIN: Returns all rows from the right table and the matched rows from the left table.
FULL JOIN: Returns rows when there is a match in one of the tables.
Tables are joined in SQL based on common columns, specified conditions, and join type.
Common columns: Tables are joined based on columns that have the same values in both tables.
Specified conditions: Join conditions are specified using the ON keyword in SQL.
Join type: Different types of joins like INNER JOIN, LEFT JOIN, RIGHT JOIN, and FULL JOIN determine how the tables are joined.
Callback functions are functions that are passed as arguments to other functions and are executed after a certain task is completed.
Callback functions are commonly used in asynchronous programming to handle tasks that take time to complete.
They allow for more flexible and modular code by separating concerns.
An example of a callback function is the setTimeout function in JavaScript, where a function is executed after a
sudo stands for 'superuser do' and is a command in Unix/Linux systems that allows a permitted user to execute a command as the superuser or another user.
sudo allows users to perform administrative tasks without logging in as the root user
It is commonly used to run commands that require elevated privileges, such as installing software or modifying system files
Example: sudo apt-get update
Common git commands include add, commit, push, pull, clone, and merge.
git add
git commit -m 'message': Commit staged changes with a message
git push: Push committed changes to a remote repository
git pull: Fetch and merge changes from a remote repository
git clone
git merge
Top trending discussions
posted on 3 Sep 2024
posted on 24 Oct 2023
I applied via Approached by Company and was interviewed before Oct 2022. There were 3 interview rounds.
Find duplicate items in array of strings.
Iterate through array and store each item in a hash set.
If item already exists in hash set, it is a duplicate.
posted on 28 Jun 2022
I applied via Naukri.com and was interviewed in May 2022. There were 2 interview rounds.
Results from pseudo code or steps from an algorithm
Mainly the process of handling issues and development process
Palindrome code should be designed to check if a given string is the same forwards and backwards.
Create a function that takes a string as input
Remove any spaces and punctuation from the string
Reverse the string and compare it to the original string to check if it is a palindrome
posted on 9 Jan 2025
posted on 16 Dec 2024
I applied via Campus Placement and was interviewed in Nov 2024. There were 2 interview rounds.
The aptitude test was relatively straightforward, consisting of both aptitude and technical questions, with a difficulty level ranging from easy to medium.
I was interviewed in Nov 2024.
The aptitude test evaluates problem-solving, coding skills, and logical reasoning, offering a fair challenge to showcase technical expertise.
I address conflicts in team projects by promoting open communication, active listening, and seeking compromise.
Encourage open communication among team members to address conflicts early on
Practice active listening to understand all perspectives and concerns
Seek compromise and find common ground to resolve conflicts effectively
Interface is a contract that defines the methods a class must implement, while an abstract class can have both implemented and abstract methods.
Interface can only have abstract methods and cannot have any implementation, while abstract class can have both abstract and implemented methods.
A class can implement multiple interfaces but can only inherit from one abstract class.
Interfaces are used to achieve multiple inheri...
Abstract class can have both abstract and non-abstract methods, while interface can only have abstract methods.
Abstract class can have method implementations, while interface cannot.
A class can implement multiple interfaces, but can only inherit from one abstract class.
Interfaces are used to define contracts for classes to implement, while abstract classes are used to provide a common base for subclasses.
Example: Abstr...
I applied via Approached by Company and was interviewed in Nov 2024. There was 1 interview round.
To rotate a matrix, transpose it and then reverse each row or column depending on the direction of rotation.
Transpose the matrix by swapping elements across the diagonal
For clockwise rotation, reverse each row of the transposed matrix
For anti-clockwise rotation, reverse each column of the transposed matrix
Use binary search to efficiently find a particular element in a sorted array.
Start by comparing the target element with the middle element of the array.
If the target element is less than the middle element, search the left half of the array.
If the target element is greater than the middle element, search the right half of the array.
Repeat the process until the target element is found or the search space is empty.
Automation Engineer
8
salaries
| ₹4.6 L/yr - ₹7.4 L/yr |
Associate Software Engineer
7
salaries
| ₹3 L/yr - ₹4 L/yr |
Associate Automation Engineer
6
salaries
| ₹4.5 L/yr - ₹5 L/yr |
Talent Acquisition Specialist
6
salaries
| ₹5.2 L/yr - ₹11.5 L/yr |
Software Engineer
5
salaries
| ₹3.6 L/yr - ₹10.5 L/yr |
BrowserStack
LambdaTest
Testbirds
Testlio