Luminar Technolab
Curious Brand Sourcing Interview Questions and Answers
Q1. Create a django crud application. Create two models employee and category.Category model should be used to create a new category and employee model to perform crud operations. When we choose on category_name it...
read moreCreate a Django CRUD application with models for employee and category, allowing users to view employee details based on selected category.
Create models for employee and category in Django.
Implement CRUD operations for employee model.
Use category model to create new categories.
Display employee details based on selected category.
Q2. Why did you choose python?
I chose Python for its simplicity, readability, versatility, and vast community support.
Python's syntax is clean and easy to read, making it beginner-friendly.
Python has a wide range of libraries and frameworks for various applications like web development, data analysis, and machine learning.
Python is versatile and can be used for scripting, automation, web development, scientific computing, and more.
Python has a large and active community, providing ample resources and supp...read more
Q3. Use of makemigrations and migrate
makemigrations is used to create new migration files based on the changes made to models, while migrate is used to apply those migrations to the database.
makemigrations is used to generate migration files based on the changes made to models in Django
migrate is used to apply those generated migrations to the database
makemigrations creates a migration file in the migrations directory of the app, while migrate applies those migrations to the database schema
Example: python manage...read more
Q4. Architecture of django
Django is a high-level Python web framework that encourages rapid development and clean, pragmatic design.
Django follows the Model-View-Template (MVT) architectural pattern.
It includes an Object-Relational Mapping (ORM) system for interacting with databases.
Django provides a built-in admin interface for managing site content.
It uses URL routing to map URLs to views, which handle user requests.
Django supports reusable apps and encourages the use of third-party packages for add...read more
Q5. Data types of Python
Python has various data types including int, float, str, list, tuple, dict, set, bool.
int: whole numbers, e.g. 5
float: decimal numbers, e.g. 3.14
str: text, e.g. 'hello'
list: ordered collection, e.g. [1, 2, 3]
tuple: ordered, immutable collection, e.g. (1, 2, 3)
dict: key-value pairs, e.g. {'name': 'John'}
set: unordered collection of unique elements, e.g. {1, 2, 3}
bool: True or False values
Q6. signals in python
Signals in Python are used for inter-process communication and handling asynchronous events.
Signals are used to notify a process that a specific event has occurred, such as a user pressing Ctrl+C to send a SIGINT signal.
Python provides a signal module that allows you to set signal handlers for specific signals.
Signal handlers are functions that are called when a signal is received, allowing you to perform custom actions in response to the signal.
Top HR Questions asked in Curious Brand Sourcing
Interview Process at Curious Brand Sourcing
Reviews
Interviews
Salaries
Users/Month