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.
I applied via Referral and was interviewed in Oct 2024. There were 2 interview rounds.
There was an OA on hackerearth of an hour. In that there were 20 MCQs and two DSA questions easy to medium on Heap, Hashmap and Subarray
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...
posted on 22 Nov 2024
Encapsulation, Inheritance, Polymorphism, Abstraction are the four pillars of OOPS in Java.
Encapsulation: Bundling data and methods that operate on the data into a single unit.
Inheritance: Allows a class to inherit properties and behavior from another class.
Polymorphism: Ability to present the same interface for different data types.
Abstraction: Hiding the implementation details and showing only the necessary features.
A constructor in Java is a special type of method that is used to initialize objects.
Constructors have the same name as the class they are in.
They do not have a return type, not even void.
Constructors are called when an object of a class is created.
Example: public class Car { public Car() { // constructor code } }
I applied via Campus Placement and was interviewed in Sep 2024. There were 3 interview rounds.
Aptitude questions with some basic coding questions
They have given 3 coding questions and some pseudo codings
posted on 8 Aug 2024
I applied via campus placement at SRM Institute of Science & Technology, Chennai and was interviewed in Jul 2024. There were 3 interview rounds.
Aptitude,General Question,Cloud
Data Structure,java script
Any topics they have given
Automation Engineer
8
salaries
| ₹4.6 L/yr - ₹7.4 L/yr |
Associate Software Engineer
7
salaries
| ₹3 L/yr - ₹4 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 |
Partnership Manager
5
salaries
| ₹15 L/yr - ₹16.6 L/yr |
BrowserStack
LambdaTest
Testbirds
Testlio