Tricon Infotech
Durr India Interview Questions and Answers
Q1. Explain FastAPI and headers, path parameters, etc
FastAPI is a modern web framework for building APIs with Python, providing easy handling of headers, path parameters, etc.
FastAPI is a Python web framework for building APIs quickly and efficiently
It provides easy handling of headers, path parameters, query parameters, and request bodies
Headers can be accessed using the request.headers attribute
Path parameters are defined in the route URL and accessed as function parameters
Example: @app.get('/items/{item_id}'), def read_item(...read more
Q2. Write a API to demonstrate GET, POST, PUT
API demonstrating GET, POST, PUT methods
Create a route for GET method to retrieve data
Create a route for POST method to add new data
Create a route for PUT method to update existing data
Q3. What is middleware and how do you implement custom middleware?
Middleware is software that acts as a bridge between an operating system or database and applications, allowing them to communicate with each other.
Middleware is a layer of software that connects different components of an application, such as the frontend and backend.
It can handle tasks like authentication, logging, error handling, and request processing.
Custom middleware can be implemented by creating a function that takes in parameters like request, response, and next, and...read more
Q4. What are indexer in c#?
Indexers in C# allow objects to be indexed like arrays, providing a way to access elements using an index value.
Indexers are defined using 'this' keyword followed by square brackets containing the index parameters.
They can be used to get or set the value of an element in a collection or class.
Example: public string this[int index] { get { return myArray[index]; } set { myArray[index] = value; }}
Q5. What is application Poll?
Application Poll is a process where the application periodically checks for updates or changes in a certain resource or data source.
Application Polling is commonly used in web applications to update data without the need for manual refresh.
It helps in keeping the application up-to-date with the latest information.
Polling intervals can be set based on the frequency of updates in the resource being monitored.
Q6. What is AsNoTracking in Linq?
AsNoTracking in Linq is used to disable change tracking in Entity Framework, improving performance by not storing entities in the context.
AsNoTracking method is used to retrieve data without tracking changes made to the entities.
It is useful when you only need to read data and do not intend to update or delete it.
By using AsNoTracking, you can improve performance by avoiding the overhead of storing entities in the context.
Example: var result = context.Products.AsNoTracking()....read more
Q7. How do you test Api?
API testing involves verifying the functionality, performance, reliability, and security of an API.
Write test cases to cover all possible scenarios
Use tools like Postman or SoapUI for manual testing
Automate testing using tools like Selenium or JUnit
Verify response codes, data formats, and error handling
Perform load testing to check performance under heavy traffic
Q8. Introduce yourself? Difference between C and python?
C is a compiled language with low-level memory manipulation capabilities, while Python is an interpreted language with high-level abstractions.
C is faster and more memory-efficient than Python.
Python has a simpler syntax and is easier to learn than C.
C is better suited for system-level programming, while Python is better for scripting and rapid prototyping.
C requires manual memory management, while Python has automatic garbage collection.
C has a static type system, while Pyth...read more
Q9. what is java, what is spring boot
Interview Process at Durr India
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month