Filter interviews by
Basic JPA construction involves creating entity classes, defining relationships, and configuring persistence settings.
Create entity classes with @Entity annotation
Define relationships between entities using @OneToOne, @OneToMany, @ManyToOne, @ManyToMany annotations
Configure persistence settings in persistence.xml file
Use EntityManager to interact with the database
Arrays store elements in contiguous memory locations, while linked lists store elements in nodes with pointers to the next node.
Arrays have constant time access to elements using index, while linked lists have linear time access.
Arrays have fixed size, while linked lists can dynamically grow and shrink.
Insertions and deletions are faster in linked lists as compared to arrays.
Example: Array - ['apple', 'banana', 'cherry
I was interviewed in Dec 2024.
I chose Flask over Django and FastAPI due to its simplicity, flexibility, and ease of use for smaller projects.
Flask is lightweight and minimalistic, making it easier to set up and use for smaller projects.
Flask allows for more flexibility in terms of project structure and customization compared to Django.
Flask is well-suited for rapid prototyping and smaller applications where simplicity is key.
Django, on the other ha...
Flask request and response block code snippet
Use Flask's request object to access incoming request data
Use Flask's jsonify function to create a JSON response
Handle different HTTP methods like GET, POST, etc. in the route function
ORM stands for Object-Relational Mapping, a programming technique for converting data between incompatible type systems in object-oriented programming languages.
ORM is used to map objects from an application to tables in a relational database.
It simplifies data manipulation by allowing developers to work with objects instead of SQL queries.
Popular ORM tools include Hibernate for Java, Entity Framework for .NET, and Seq
Use ORM code to select item from a table in database.
Use ORM query methods like find(), findOne(), or where() to select items from a table.
Specify the table name and any conditions for the selection.
Example: User.find({ where: { id: 1 } }) will select a user with id 1 from the User table.
Node.js promises are a way to handle asynchronous operations, while async/await is a syntax for writing asynchronous code in a synchronous manner.
Promises are objects that represent the eventual completion (or failure) of an asynchronous operation.
Async/await is a syntactic sugar built on top of promises, making asynchronous code look more like synchronous code.
Async functions return a promise, which allows you to use ...
Structure padding is the process of adding empty bytes to a structure to align its data members on memory boundaries.
Padding is added to ensure that each data member in a structure starts at a memory address that is a multiple of its size.
Padding is necessary for performance optimization and to prevent memory access violations.
For example, if a structure has a char followed by an int, padding may be added between them
A translation unit is a source file along with all the headers and source files included in it.
Translation unit is the smallest unit of compilation in C++.
It consists of a source file and all the header files and source files included in it.
Each translation unit is compiled separately before being linked together.
Translation units help in organizing and modularizing code.
Example: If a.cpp includes b.h and c.cpp, then t...
I am a passionate Backend Developer with 5 years of experience in building scalable and efficient web applications.
5 years of experience in backend development
Proficient in programming languages like Java, Python, and Node.js
Strong understanding of database management systems such as MySQL and MongoDB
Experience in developing RESTful APIs and microservices
Familiar with cloud technologies like AWS and Azure
I was interviewed in Jul 2024.
Find pairs from list whose sum is equal to target
Iterate through the list and for each element, check if the target minus the element exists in a hashmap
If it exists, add the pair to the result list
If it doesn't exist, add the current element to the hashmap
I applied via LinkedIn and was interviewed in Mar 2024. There were 2 interview rounds.
Aptitude Test based on general
Coding Test Based on backend technologies
Moderate to difficult
TCS
Accenture
Wipro
Cognizant