i
TO THE NEW
Filter interviews by
Top trending discussions
posted on 27 May 2024
List is a built-in Python data structure that can hold elements of different data types, while Array is a data structure from the NumPy library that can hold elements of the same data type.
List is a dynamic array that can grow or shrink in size, while Array has a fixed size.
List can hold elements of different data types, while Array can only hold elements of the same data type.
List is a part of Python's standard librar...
DRF provides JSON, BrowsableAPI, TemplateHTML, and AdminRenderer classes for rendering responses.
JSONRenderer: Renders data in JSON format.
BrowsableAPIRenderer: Renders data in a browsable HTML format with forms for interacting with the API.
TemplateHTMLRenderer: Renders data using a specified template in HTML format.
AdminRenderer: Renders data in a format suitable for Django admin interface.
Method Resolution Order (MRO) is the order in which classes are searched for a method or attribute in Python.
MRO is determined by the C3 linearization algorithm in Python.
It follows a depth-first left-to-right traversal of the class hierarchy.
MRO is important in multiple inheritance scenarios to resolve method conflicts.
Example: class A: pass class B(A): pass class C(A): pass class D(B, C)
Class method is bound to the class itself, while static method is not bound to any specific instance or class.
Class method takes 'cls' as the first parameter, allowing access to class variables and methods.
Static method does not take any special parameters and does not have access to class or instance variables.
Class method can be called on both the class and instances of the class.
Static method is mainly used for util...
Transactions in SQL are a way to ensure data integrity by grouping multiple SQL statements into a single unit of work.
Transactions help maintain the ACID properties (Atomicity, Consistency, Isolation, Durability) of a database.
They allow multiple SQL statements to be executed as a single unit, either all succeeding or all failing.
Transactions can be started with BEGIN TRANSACTION, COMMIT to save changes, or ROLLBACK to...
List comprehension is a concise way to create lists in Python by iterating over an existing list or iterable.
Syntax: [expression for item in iterable]
Can include conditions: [expression for item in iterable if condition]
Can be nested: [[i*j for j in range(1, 4)] for i in range(1, 4)]
Can be used to create new lists from existing lists efficiently
Types of Serializers in Django include ModelSerializer, Serializer, and HyperlinkedModelSerializer.
ModelSerializer: Used to serialize Django model instances.
Serializer: Generic serializer class for custom data serialization.
HyperlinkedModelSerializer: Includes hyperlinks to related resources in the serialized data.
posted on 6 Aug 2024
I applied via Recruitment Consulltant
DSA question on kaprekar constant
posted on 10 Oct 2024
I applied via Naukri.com and was interviewed in Sep 2024. There were 2 interview rounds.
Waiting for l2 round
posted on 2 Jul 2024
Simple python programming concepts
Inter service communication in transactional systems involves designing a reliable and efficient way for services to communicate and exchange data.
Use asynchronous messaging systems like RabbitMQ or Kafka to decouple services and ensure reliable message delivery.
Implement RESTful APIs for synchronous communication between services, using HTTP methods like GET, POST, PUT, DELETE.
Consider using gRPC for high-performance,...
Use pandas library for efficient loading and processing of large files in Python.
Use pandas read_csv() function with chunksize parameter to load large files in chunks.
Optimize memory usage by specifying data types for columns in read_csv() function.
Use pandas DataFrame methods like groupby(), merge(), and apply() for efficient data processing.
Consider using Dask library for parallel processing of large datasets.
Use gen...
posted on 17 Apr 2024
Prepare coding with some therotical question
I applied via Naukri.com and was interviewed in Oct 2021. There were 4 interview rounds.
I applied via Naukri.com and was interviewed in Aug 2021. There was 1 interview round.
Decorators are functions that modify the behavior of other functions without changing their source code.
Decorators are denoted by the '@' symbol followed by the decorator function name.
They can be used to add functionality to a function, such as logging or timing.
Decorators can also be used to modify the behavior of a class or method.
They are commonly used in web frameworks like Flask and Django.
Examples of built-in de...
Namespace is a container that holds identifiers (names) used to avoid naming conflicts.
Namespace is created at different moments and has different lifetimes.
Python implements namespaces as dictionaries.
There are four types of namespaces in Python: built-in, global, local, and non-local.
Namespaces can be accessed using the dot (.) operator.
Example: 'import math' creates a namespace 'math' that contains all the functions
Algorithm to solve Sudoku puzzle
Create a 9x9 grid to represent the puzzle
Fill in known numbers
For each empty cell, try numbers 1-9 until a valid number is found
Backtrack if no valid number can be found
Repeat until all cells are filled
Some of the top questions asked at the TO THE NEW Python and Django Developer interview -
Senior Software Engineer
590
salaries
| ₹9 L/yr - ₹27.5 L/yr |
Software Engineer
558
salaries
| ₹4 L/yr - ₹13.9 L/yr |
Associate Technical Leader
232
salaries
| ₹12.8 L/yr - ₹35.4 L/yr |
Senior Quality Engineer
164
salaries
| ₹7 L/yr - ₹22.5 L/yr |
Devops Engineer
154
salaries
| ₹4.5 L/yr - ₹14.5 L/yr |
TCS
Infosys
Wipro
HCLTech