Filter interviews by
Clear (1)
I applied via LinkedIn and was interviewed in Dec 2024. There was 1 interview round.
Decorators in Django are used to modify the behavior of functions or methods. @login_required ensures user authentication, while @permission_required checks for specific permissions.
Decorators are functions that wrap another function to modify its behavior.
@login_required decorator ensures that the user is authenticated before accessing a view.
@permission_required decorator checks if the user has specific permissions b...
To revert changes made in Django migrations, use the command 'python manage.py migrate <app_name> <migration_name>'.
Use the command 'python manage.py showmigrations' to list all migrations and their names.
Identify the migration name you want to revert (e.g., 'app_name', '0002_migration_name').
Run the command 'python manage.py migrate <app_name> <migration_name>' to revert the specific migration.
To fetch API data in Django from server using params dynamically.
Use Django's HttpRequest object to access query parameters
Extract the query parameter value using request.GET.get('querydata')
Use the extracted value to dynamically fetch data from the server
Class-based views are based on classes and provide more structure and functionality, while function-based views are based on functions and are simpler and more flexible.
Class-based views are defined as classes and inherit from Django's generic view classes, providing built-in functionality such as mixins and decorators.
Function-based views are defined as functions and are more flexible, allowing for custom logic and co...
SQL Procedures are stored SQL code that can be executed on demand. Triggers are special types of stored procedures that are automatically executed when certain events occur.
SQL Procedures are reusable blocks of SQL code that can be called by other programs or scripts.
Triggers are special types of stored procedures that are automatically executed when specific events occur in the database.
Triggers are commonly used for ...
Django supports multiple databases through its database router feature.
Django allows defining multiple database connections in settings.py
Use database routers to route specific models to different databases
Example: routing user data to a separate database for better performance
REST API is a set of rules and conventions for building and interacting with web services.
REST stands for Representational State Transfer
Methods available in REST API are GET, POST, PUT, DELETE
GET - Used to retrieve data from a server
POST - Used to send data to a server to create a new resource
PUT - Used to update an existing resource on the server
DELETE - Used to remove a resource from the server
Example: GET request t
Custom middleware in Django allows for processing requests and responses before reaching views.
Custom middleware is a Python class that defines methods to process requests and responses in Django.
To create custom middleware, define a class with methods like process_request, process_response, etc.
Register the custom middleware in the Django settings.py file under the MIDDLEWARE key.
Example code: class CustomMiddleware: ...
Message queues and caching systems are used to improve performance and scalability in web applications.
Message queues help in decoupling components by allowing asynchronous communication between them.
Caching systems store frequently accessed data in memory to reduce database load and improve response times.
Popular message queue systems include RabbitMQ, Kafka, and Redis.
Common caching systems include Memcached and Redi...
Top trending discussions
posted on 21 Mar 2015
I was interviewed before Aug 2016.
I was interviewed in Apr 2017.
I am a software developer with a passion for coding and problem-solving. My family is supportive and has always encouraged my career in tech.
Experienced software developer
Passionate about coding and problem-solving
Supportive family that encourages my career in tech
I was interviewed before Mar 2021.
Round duration - 60 minutes
Round difficulty - Easy
This was an easy round which went really smooth.
Calculate the Nth term in the Fibonacci sequence, where the sequence is defined as follows: F(n) = F(n-1) + F(n-2)
, with initial conditions F(1) = F(2) = 1
.
Calculate the Nth Fibonacci number efficiently using dynamic programming.
Use dynamic programming to store previously calculated Fibonacci numbers to avoid redundant calculations.
Start with base cases F(1) and F(2) as 1, then iteratively calculate F(n) using F(n-1) and F(n-2).
Ensure the input N is within the constraints 1 <= N <= 10000.
Example: For N = 5, the 5th Fibonacci number is 5 (1, 1, 2, 3, 5).
Given a positive integer N
, your task is to determine and return all prime numbers less than or equal to N
.
N = 10
2 3 5 7
N = 20
Implement a function to return all prime numbers less than or equal to a given positive integer N.
Create a function that takes a positive integer N as input
Iterate from 2 to N and check if each number is prime
Use a helper function to determine if a number is prime
Return an array of all prime numbers less than or equal to N
A merge join in SQL is a method of combining two sorted datasets by matching corresponding rows based on a specified condition.
Merge join is used when joining two large datasets that are already sorted.
It is more efficient than other join methods like nested loop join or hash join for sorted datasets.
The join condition must be an equality condition.
Example: SELECT * FROM table1 INNER JOIN table2 ON table1.id = table2.i
Round duration - 30 minutes
Round difficulty - Easy
The round went excellent. I really enjoyed it. Just be confident about whatever you answer
Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.
Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.
I was interviewed before Mar 2021.
Round duration - 60 minutes
Round difficulty - Easy
This round went well. Interview depends on your basic knowledge of C/C++.
Given two sparse matrices MAT1
and MAT2
of integers with dimensions 'N' x 'M' and 'M' x 'P' respectively, the goal is to determine the resulting matrix produced by their multipl...
Implement a function to multiply two sparse matrices and return the resulting matrix.
Create a function that takes two sparse matrices as input and returns the resulting matrix after multiplication
Iterate through the non-zero elements of the matrices to perform the multiplication efficiently
Handle the edge cases such as empty matrices or matrices with all zero elements
Ensure the dimensions of the matrices are compatible
Tanmay and Rohit are best buddies. Tanmay gives Rohit a challenge involving an array of N natural numbers. The task is to perform and answer a series of queries on the ...
Count the number of even or odd numbers in a range of an array based on given queries.
Create an array to store the input numbers.
Iterate through the queries and update or count even/odd numbers based on the query type.
Output the count of even or odd numbers for each query of type 1 or 2.
Round duration - 30 minutes
Round difficulty - Easy
Typical HR round with behavioral problems.
Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.
Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.
I was interviewed in Jul 2017.
I was interviewed in Apr 2017.
Firmware is a type of software that is embedded in hardware devices to control their functionality.
Firmware is a combination of hardware and software.
It is used to control the behavior of hardware devices.
Firmware is typically stored in non-volatile memory, such as ROM or flash memory.
Examples of devices that use firmware include routers, printers, and digital cameras.
I am a passionate software developer with experience in building web applications and solving complex problems.
Experienced in programming languages such as Java, JavaScript, and Python
Familiar with front-end technologies like HTML, CSS, and React
Strong problem-solving skills and ability to work in a team environment
Previous projects include developing a customer management system for a small business
I was interviewed before May 2016.
Developed a web application for tracking personal expenses
Used HTML, CSS, and JavaScript for front-end development
Implemented Node.js and MongoDB for back-end functionality
Included features for adding, categorizing, and analyzing expenses
I actively participate in team building activities and collaborate with colleagues on various initiatives outside of work projects.
Organizing team lunches or outings to build camaraderie
Participating in charity events or volunteer work as a team
Collaborating on internal initiatives such as diversity and inclusion programs
Attending industry conferences or workshops together
I will explain the reasons for the delay and present a plan to mitigate it.
Communicate the reasons for the delay clearly and honestly
Present a plan to mitigate the delay and ensure timely delivery
Provide regular updates on the progress of the project
Offer alternative solutions or compromises if necessary
Ensure that the client understands the impact of the delay on the project
Maintain a professional and respectful attit
Some of the top questions asked at the DataTerrain Python and Django Developer interview -
based on 1 interview
Interview experience
Associate Software Engineer
15
salaries
| ₹0 L/yr - ₹0 L/yr |
Software Engineer
11
salaries
| ₹0 L/yr - ₹0 L/yr |
Software Developer
8
salaries
| ₹0 L/yr - ₹0 L/yr |
Consultant
7
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Consultant
6
salaries
| ₹0 L/yr - ₹0 L/yr |
Infosys
TCS
Wipro
HCLTech