i
CGI
Group
Proud winner of ABECA 2025 - AmbitionBox Employee Choice Awards
Filter interviews by
Code to find second largest number in an array without using built-in functions
Iterate through the array to find the largest number
Keep track of the largest number and update it if a larger number is found
Once the largest number is found, iterate again to find the second largest number
Django code to render hello world template
Create a new Django project
Create a new Django app within the project
Create a template file with 'hello world' content
Update views.py to render the template
Update urls.py to map a URL to the view
We use AWS services like EC2, S3, RDS, Lambda, and CloudWatch in our project.
EC2 - for hosting our application servers
S3 - for storing and serving static assets
RDS - for managing our relational database
Lambda - for serverless computing
CloudWatch - for monitoring and logging
Decorator in Python is a design pattern that allows adding new functionality to an existing object without modifying its structure.
Decorators are functions that modify the behavior of other functions or methods.
They are denoted by @decorator_name above the function definition.
Decorators can be used for logging, timing, authentication, etc.
Example: @staticmethod, @classmethod, @property
Different testing frameworks in Django include Django's built-in test framework, pytest, and unittest.
Django's built-in test framework: Provides tools for testing Django applications and is easy to use.
pytest: A popular testing framework that offers more features and flexibility compared to Django's built-in test framework.
unittest: A standard Python testing framework that can also be used for testing Django appli...
Monolithic architecture is a single unified unit while microservices architecture is composed of small, independent services.
Monolithic architecture is a single, indivisible unit where all components are tightly coupled.
Microservices architecture breaks down the application into smaller, independent services that communicate with each other through APIs.
Monolithic applications are easier to develop and deploy but ...
Django is a high-level Python web framework that encourages rapid development and clean, pragmatic design. Flask is a lightweight WSGI web application framework.
Django is a full-featured framework with built-in ORM, admin panel, and authentication system, while Flask is more lightweight and flexible.
Django follows the 'batteries included' philosophy, providing many built-in features out of the box, whereas Flask i...
Mixins in Django are a way to reuse code across multiple classes by providing methods and attributes that can be inherited.
Mixins are classes that provide methods and attributes to be inherited by other classes.
They are used to add common functionality to multiple classes without repeating code.
Mixins are not meant to be instantiated on their own, but rather to be inherited by other classes.
An example of a mixin i...
An inline function is a function defined within the scope of another function, typically used for short and simple operations.
Inline functions are defined within the body of another function.
They are typically used for short and simple operations.
Inline functions are often used to improve code readability and maintainability.
Tuple is immutable and ordered, while list is mutable and ordered. Tuples are used for fixed data, lists for dynamic data.
Tuple is created using parentheses (), while list is created using square brackets []
Tuples are immutable, meaning their elements cannot be changed once defined, while lists are mutable and can be modified
Tuples are typically used for fixed data that will not change, while lists are used for dy...
I applied via Naukri.com and was interviewed in Apr 2024. There was 1 interview round.
Tuple is immutable and ordered, while list is mutable and ordered. Tuples are used for fixed data, lists for dynamic data.
Tuple is created using parentheses (), while list is created using square brackets []
Tuples are immutable, meaning their elements cannot be changed once defined, while lists are mutable and can be modified
Tuples are typically used for fixed data that will not change, while lists are used for dynamic...
Monolithic architecture is a single unified unit while microservices architecture is composed of small, independent services.
Monolithic architecture is a single, indivisible unit where all components are tightly coupled.
Microservices architecture breaks down the application into smaller, independent services that communicate with each other through APIs.
Monolithic applications are easier to develop and deploy but can b...
Code to find second largest number in an array without using built-in functions
Iterate through the array to find the largest number
Keep track of the largest number and update it if a larger number is found
Once the largest number is found, iterate again to find the second largest number
Mixins in Django are a way to reuse code across multiple classes by providing methods and attributes that can be inherited.
Mixins are classes that provide methods and attributes to be inherited by other classes.
They are used to add common functionality to multiple classes without repeating code.
Mixins are not meant to be instantiated on their own, but rather to be inherited by other classes.
An example of a mixin in Dja...
Django is a high-level Python web framework that encourages rapid development and clean, pragmatic design. Flask is a lightweight WSGI web application framework.
Django is a full-featured framework with built-in ORM, admin panel, and authentication system, while Flask is more lightweight and flexible.
Django follows the 'batteries included' philosophy, providing many built-in features out of the box, whereas Flask is mor...
Different testing frameworks in Django include Django's built-in test framework, pytest, and unittest.
Django's built-in test framework: Provides tools for testing Django applications and is easy to use.
pytest: A popular testing framework that offers more features and flexibility compared to Django's built-in test framework.
unittest: A standard Python testing framework that can also be used for testing Django applicatio...
We use AWS services like EC2, S3, RDS, Lambda, and CloudWatch in our project.
EC2 - for hosting our application servers
S3 - for storing and serving static assets
RDS - for managing our relational database
Lambda - for serverless computing
CloudWatch - for monitoring and logging
Decorator in Python is a design pattern that allows adding new functionality to an existing object without modifying its structure.
Decorators are functions that modify the behavior of other functions or methods.
They are denoted by @decorator_name above the function definition.
Decorators can be used for logging, timing, authentication, etc.
Example: @staticmethod, @classmethod, @property
Django code to render hello world template
Create a new Django project
Create a new Django app within the project
Create a template file with 'hello world' content
Update views.py to render the template
Update urls.py to map a URL to the view
I applied via Campus Placement and was interviewed before Apr 2023. There were 4 interview rounds.
I am Shaik Jabbeer I am a Python Developer
I am Shaik Jabbeer I am a Python Developer
An inline function is a function defined within the scope of another function, typically used for short and simple operations.
Inline functions are defined within the body of another function.
They are typically used for short and simple operations.
Inline functions are often used to improve code readability and maintainability.
Top trending discussions
I applied via LinkedIn and was interviewed before Jul 2021. There were 2 interview rounds.
Easy logical questions
basic quant
Easy level coding questions
Counting frequency of alphabets
I applied via Naukri.com and was interviewed before Sep 2019. There were 6 interview rounds.
I applied via Walk-in and was interviewed before Sep 2019. There were 3 interview rounds.
I applied via Naukri.com and was interviewed before Apr 2020. There was 1 interview round.
I am a passionate software developer with 5 years of experience in developing web applications using various technologies.
5 years of experience in software development
Proficient in developing web applications
Skilled in using various technologies
Passionate about coding and problem-solving
Deadlock is a situation in which two or more processes are unable to proceed because each is waiting for the other to release a resource.
Deadlock occurs when two or more processes are stuck in a circular waiting state.
It happens when processes compete for resources and each process holds a resource that another process needs.
Four necessary conditions for deadlock are mutual exclusion, hold and wait, no preemption, and ...
I applied via Company Website and was interviewed in Oct 2018. There was 0 interview round.
I appeared for an interview before Nov 2020.
Round duration - 90 minutes
Round difficulty - Medium
Timing was around 10am
It was quite a normal online examination kind of environment
People from the company were there to invigilate
All were quite nice and helpful in case the exam got stuck
An alien dropped its dictionary while visiting Earth. The Ninja wants to determine the order of characters used in the alien language, based on the given list of wor...
Determine the order of characters in an alien language based on a list of words.
Create a graph data structure to represent the relationships between characters in the words.
Perform a topological sort on the graph to find the order of characters.
Return the smallest lexicographical order of characters as the result.
Given an array of integers arr
of size N
and an integer K
, determine if there are any duplicate elements within a distance of K
from each other in the array. Return "true...
Check if there are any duplicate elements within a distance of K from each other in the array.
Iterate through the array and keep track of the indices of elements using a hashmap.
For each element, check if it already exists in the hashmap within distance K.
Return true if a duplicate is found within distance K, otherwise return false.
Round duration - 30 minutes
Round difficulty - Medium
Timing was 2pm when it started
Interviewer was polite
Ninja enjoys working with numbers, and Alice challenges him to find the Kth largest value from a given list of numbers.
The first line contains an integer 'T...
The task is to find the Kth largest element in a given list of numbers for each test case.
Read the number of test cases 'T'
For each test case, read the number of elements 'N' and the Kth largest number to find 'K'
Sort the array in descending order and output the Kth element
Round duration - 20 minutes
Round difficulty - Easy
Timing was 9 am onwards
Interviewer was good enough
Tip 1 : Focus on specialization of any one skill and keep a basic knowledge of all the skills you mention in your resume
Tip 2 : Gain confidence in presenting yourself by practicing well before
Tip 3 : Gain a basic knowledge of the company you go for selection
Tip 1 : Resume should be simple and precise but pretty smart to cover your skills
Tip 2 : Mention what you really know,no false things
Some of the top questions asked at the CGI Group Senior Python Developer interview -
based on 2 interview experiences
Difficulty level
Duration
Software Engineer
8.4k
salaries
| ₹5 L/yr - ₹12 L/yr |
Senior Software Engineer
7.7k
salaries
| ₹9 L/yr - ₹18.7 L/yr |
Lead Analyst
3.3k
salaries
| ₹15.2 L/yr - ₹26.3 L/yr |
Associate Software Engineer
1.9k
salaries
| ₹2.5 L/yr - ₹7 L/yr |
Senior Test Engineer
1.3k
salaries
| ₹9.7 L/yr - ₹17.7 L/yr |
Accenture
Wipro
Cognizant
Capgemini