Upload Button Icon Add office photos
Engaged Employer

i

This company page is being actively managed by CGI Group Team. If you also belong to the team, you can get access from here

CGI Group Verified Tick

Compare button icon Compare button icon Compare

Proud winner of ABECA 2025 - AmbitionBox Employee Choice Awards

zig zag pattern zig zag pattern

Filter interviews by

CGI Group Senior Python Developer Interview Questions and Answers

Updated 23 May 2024

10 Interview questions

A Senior Python Developer was asked
Q. Write code to find the second largest number in a list without using built-in functions, and provide a test case for that function.
Ans. 

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

A Senior Python Developer was asked
Q. Write a simple Django code to render a hello world template.
Ans. 

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

Senior Python Developer Interview Questions Asked at Other Companies

asked in Xoriant
Q1. Update tuple in list of tuples ? can we update? How about tuple o ... read more
asked in CGI Group
Q2. What is difference between tuple and list and where did you used ... read more
asked in Xoriant
Q3. How do you find all occurrences of a substring and their counts w ... read more
Q4. What are the differences between Class-Based Views (CBV) and Func ... read more
asked in Xoriant
Q5. Shallow copy and Deep copy in Python Difference ? how to use?
A Senior Python Developer was asked
Q. What are the different AWS services used in your project?
Ans. 

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

A Senior Python Developer was asked
Q. What is a decorator in Python?
Ans. 

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

A Senior Python Developer was asked
Q. What are the different kinds of testing frameworks in Django?
Ans. 

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...

A Senior Python Developer was asked
Q. What is the difference between monolithic and microservices architectures?
Ans. 

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 ...

A Senior Python Developer was asked
Q. What is the difference between Django and Flask?
Ans. 

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...

Are these interview questions helpful?
A Senior Python Developer was asked
Q. What are mixins in Django?
Ans. 

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...

A Senior Python Developer was asked
Q. What is an inline function?
Ans. 

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.

A Senior Python Developer was asked
Q. What is difference between tuple and list and where did you used it in your project?
Ans. 

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...

CGI Group Senior Python Developer Interview Experiences

2 interviews found

Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
-

I applied via Naukri.com and was interviewed in Apr 2024. There was 1 interview round.

Round 1 - Technical 

(9 Questions)

  • Q1. What is difference between tuple and list and where did you used it in your project?
  • Ans. 

    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...

  • Answered by AI
  • Q2. What is difference Between monothic and microservices
  • Ans. 

    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...

  • Answered by AI
  • Q3. Write a code to find second largest number without using built functions and write one test case for that function
  • Ans. 

    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

  • Answered by AI
  • Q4. What are mixins in django?
  • Ans. 

    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...

  • Answered by AI
  • Q5. What is difference between django and flask?
  • Ans. 

    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...

  • Answered by AI
  • Q6. What are different kind of testing frameworks in django?
  • Ans. 

    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...

  • Answered by AI
  • Q7. What are different AWS services used in your project?
  • Ans. 

    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

  • Answered by AI
  • Q8. What is decorator in python?
  • Ans. 

    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

  • Answered by AI
  • Q9. Write a simple django code to render hello world template
  • Ans. 

    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

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - Interviewer always wanted check what you did in previous projects

Skills evaluated in this interview

Interview experience
5
Excellent
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Campus Placement and was interviewed before Apr 2023. There were 4 interview rounds.

Round 1 - Aptitude Test 

I am Shaik Jabbeer I am a Python Developer

Round 2 - Group Discussion 

I am Shaik Jabbeer I am a Python Developer

Round 3 - Technical 

(4 Questions)

  • Q1. What is an Inline Function
  • Ans. 

    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.

  • Answered by AI
  • Q2. Are you a softworker or hard worker
  • Q3. What your weakness
  • Q4. Do you get angry
Round 4 - HR 

(1 Question)

  • Q1. What was you point of view in Group Discussion

Skills evaluated in this interview

Top trending discussions

View All
Interview Tips & Stories
6d (edited)
a team lead
Why are women still asked such personal questions in interview?
I recently went for an interview… and honestly, m still trying to process what just happened. Instead of being asked about my skills, experience, or how I could add value to the company… the questions took a totally unexpected turn. The interviewer started asking things like When are you getting married? Are you engaged? And m sure, if I had said I was married, the next question would’ve been How long have you been married? What does my personal life have to do with the job m applying for? This is where I felt the gender discrimination hit hard. These types of questions are so casually thrown at women during interviews but are they ever asked to men? No one asks male candidates if they’re planning a wedding or how old their kids are. So why is it okay to ask women? Can we please stop normalising this kind of behaviour in interviews? Our careers shouldn’t be judged by our relationship status. Period.
Got a question about CGI Group?
Ask anonymously on communities.

Interview questions from similar companies

I applied via Naukri.com and was interviewed before May 2021. There were 3 interview rounds.

Round 1 - Technical 

(1 Question)

  • Q1. Java Collection, OOPS, Seralization
Round 2 - Technical 

(1 Question)

  • Q1. Java OOPS, Collection, threading, SQL
Round 3 - HR 

(1 Question)

  • Q1. Nothing specific, Salary Negotiations.

Interview Preparation Tips

Interview preparation tips for other job seekers - overall good experience and process was quick

I applied via Recruitment Consultant and was interviewed in May 2020. There were 3 interview rounds.

Interview Questionnaire 

2 Questions

  • Q1. Just Basic OOP's question, What is Interface, why use them?
  • Ans. 

    An interface defines a contract for classes, specifying methods without implementation, promoting abstraction and flexibility in OOP.

    • Interfaces allow multiple classes to implement the same set of methods, ensuring a consistent API.

    • Example: An interface 'Animal' with methods 'eat()' and 'sleep()' can be implemented by 'Dog' and 'Cat' classes.

    • They enable polymorphism, allowing objects to be treated as instances of their ...

  • Answered by AI
  • Q2. What is Abstract Class?
  • Ans. 

    Abstract class is a class that cannot be instantiated and is used as a base class for other classes.

    • An abstract class can have abstract and non-abstract methods.

    • Abstract methods have no implementation and must be implemented by the derived class.

    • An abstract class can have constructors and fields.

    • An abstract class can be used to define a common interface for a group of related classes.

    • Example: Animal is an abstract clas...

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - A recruiter found me on Naukari Site the name of the person is Kartik (*****), and then, set up an initial L1 interview with the peers. The initial contact was a phone screen regarding the job location, title, salary, etc. in Banglore after that, he set up the meetings with peers for the interview.

The interview was too good, but one thing which I feel bad Interviewer asked me salary while this is the part of the HR department, so why Interviewer asked me salary during an interview, this is totally not good for any candidate because if the candidate expectation is greater than the interviewer salary then definitely he will not hire that candidate that means.  



After Interview:-

 Then, Kartik HR contact me again to tell that they are willing to offer less salary 14LPA than that was decided
- I said yes, and they asked me joining date
- I provided the next week date itself
- But I never heard back from them afterward.
- I tried to contact Kartik, but he is not willing to reply

Very unprofessional behavior and bad experience. I don't know were they just wasting my time.

Skills evaluated in this interview

I applied via Walk-in and was interviewed in Jan 2020. There were 3 interview rounds.

Interview Questionnaire 

5 Questions

  • Q1. Basic structure of an HTML page
  • Ans. 

    Basic structure of an HTML page includes doctype declaration, html, head, and body tags.

    • DOCTYPE declaration specifies the HTML version

    • HTML tag wraps the entire content of the page

    • Head tag contains meta information, title, and links to external resources

    • Body tag contains the visible content of the page

  • Answered by AI
  • Q2. What is the difference between padding and margin?
  • Q3. What is Box Model?
  • Ans. 

    Box Model is a concept in CSS where every element is treated as a box with content, padding, border, and margin.

    • Box Model consists of content, padding, border, and margin.

    • Content is the actual content of the box.

    • Padding is the space between the content and the border.

    • Border is the line that goes around the padding and content.

    • Margin is the space outside the border.

  • Answered by AI
  • Q4. What are different types of directives in Angular?
  • Q5. Difference between JIT compiler and AOT?

Interview Preparation Tips

Interview preparation tips for other job seekers - Try to answer 80 % of the questions you are asked, you will be able to crack the interview

Skills evaluated in this interview

I applied via Walk-in and was interviewed before Feb 2021. There were 3 interview rounds.

Round 1 - Assignment 
Round 2 - HR 

(7 Questions)

  • Q1. Share details of your previous job.
  • Q2. Why should we hire you?
  • Q3. What are your salary expectations?
  • Q4. What is your family background?
  • Ans. 

    I come from a close-knit family that values education, creativity, and support, shaping my personal and professional growth.

    • Supportive Parents: My parents encouraged my interests in technology from a young age, providing resources for learning programming.

    • Siblings: I have a younger sister who is passionate about art, and we often collaborate on projects that blend technology and creativity.

    • Family Traditions: We have a ...

  • Answered by AI
  • Q5. What are your strengths and weaknesses?
  • Q6. Tell me about yourself.
  • Q7. This opportunity is really excited for me
Round 3 - HR 

(7 Questions)

  • Q1. What are your salary expectations?
  • Q2. What is your family background?
  • Ans. 

    I come from a close-knit family that values education, creativity, and support, which has greatly influenced my career path.

    • Supportive Parents: My parents encouraged my interest in technology from a young age, providing me with resources like books and courses.

    • Siblings: I have a younger sister who is also in the tech field, and we often collaborate on projects, sharing ideas and learning from each other.

    • Family Values: ...

  • Answered by AI
  • Q3. Share details of your previous job.
  • Q4. What are your strengths and weaknesses?
  • Q5. Tell me about yourself.
  • Q6. Describe any difficult work situation or project that you have handled
  • Ans. 

    Handled a difficult project involving complex data migration and integration

    • Had to understand the existing data structure and map it to the new system

    • Dealt with multiple data sources and formats

    • Ensured data integrity and accuracy throughout the migration process

    • Collaborated with cross-functional teams to ensure successful integration

    • Implemented automated testing to validate data migration and integration

    • Managed project...

  • Answered by AI
  • Q7. Hard work and smart work
  • Ans. Reaching the building through steps is hard work ,smart work life is smart 6 the uses steps definitely .. reach the destination
  • Answered Anonymously

Interview Preparation Tips

Topics to prepare for Wipro Software Developer interview:
  • Software developer
  • Flash Animation
  • 3D Character Animation
  • Photography
  • Photoshop
  • Basic
  • Logo Design
Interview preparation tips for other job seekers - In my opinion,both are the key of success hardwork give experiences and smart work come from experience so both are important to achieve success

I applied via Recruitment Consulltant and was interviewed before Aug 2021. There were 2 interview rounds.

Round 1 - Technical 

(1 Question)

  • Q1. Java. Spring boot, micro service, hibernate
Round 2 - HR 

(1 Question)

  • Q1. Salary, technical, company details

Interview Preparation Tips

Topics to prepare for Accenture Software Developer interview:
  • Java
  • Spring Boot
  • Micro service
  • Hibernate
  • JSP
Interview preparation tips for other job seekers - Java, spring boot, micro service, hibernate
Are these interview questions helpful?

I applied via Campus Placement and was interviewed before Sep 2021. There was 1 interview round.

Round 1 - Technical 

(1 Question)

  • Q1. Java and spring based questions.

Interview Preparation Tips

Interview preparation tips for other job seekers - Prepare java questions, spring and Data structure.

I applied via LinkedIn and was interviewed before Jul 2021. There were 2 interview rounds.

Round 1 - Aptitude Test 

Easy logical questions
basic quant

Round 2 - Coding Test 

Easy level coding questions
Counting frequency of alphabets

Interview Preparation Tips

Interview preparation tips for other job seekers - Just go through the basics of javascript
Hoisting

I applied via Naukri.com and was interviewed before Sep 2019. There were 6 interview rounds.

Interview Questionnaire 

3 Questions

  • Q1. IQ Test
  • Q2. Machine Test
  • Q3. Face To Face

Interview Preparation Tips

Interview preparation tips for other job seekers - basically there are 3 rounds:-
1. IQ Test
2. Machine Test
3. Face to Face

IQ Test is not so tough but prepare well Machine Test
Machine Test Question are like :-
Q.1 - We declare a variable in C++ like "is_this_a_variable" and in Java like "IsThisAVariable". There is underscore in between every word and first alphabet of every word is in lowercase in C++ and in Java first alphabet is in capital without underscore. Create a program in which if user input a string in a C++ variable format it will convert the input in java variable format.

Q2. Count the frequency of a string.
user input string - pqhphi
output-
p - 2
q - 1
h - 2
i - 1

Be strong in algorithms and data structure.

CGI Group Interview FAQs

How many rounds are there in CGI Group Senior Python Developer interview?
CGI Group interview process usually has 2-3 rounds. The most common rounds in the CGI Group interview process are Technical, Group Discussion and HR.
How to prepare for CGI Group Senior Python Developer interview?
Go through your CV in detail and study all the technologies mentioned in your CV. Prepare at least two technologies or languages in depth if you are appearing for a technical interview at CGI Group. The most common topics and skills that interviewers at CGI Group expect are Python, Django, Hive, Spark and Enrollment.
What are the top questions asked in CGI Group Senior Python Developer interview?

Some of the top questions asked at the CGI Group Senior Python Developer interview -

  1. What is difference between tuple and list and where did you used it in your pro...read more
  2. What are different kind of testing frameworks in djan...read more
  3. Write a code to find second largest number without using built functions and wr...read more

Tell us how to improve this page.

Overall Interview Experience Rating

5/5

based on 2 interview experiences

Difficulty level

Easy 50%
Moderate 50%

Duration

Less than 2 weeks 100%
View more

Interview Questions from Similar Companies

Accenture Interview Questions
3.7
 • 8.7k Interviews
Wipro Interview Questions
3.7
 • 6.1k Interviews
Cognizant Interview Questions
3.7
 • 5.9k Interviews
Capgemini Interview Questions
3.7
 • 5.1k Interviews
Genpact Interview Questions
3.7
 • 3.4k Interviews
LTIMindtree Interview Questions
3.7
 • 3k Interviews
IBM Interview Questions
3.9
 • 2.5k Interviews
DXC Technology Interview Questions
3.6
 • 842 Interviews
Nagarro Interview Questions
4.0
 • 793 Interviews
View all
CGI Group Senior Python Developer Salary
based on 4 salaries
₹12 L/yr - ₹21 L/yr
13% more than the average Senior Python Developer Salary in India
View more details
Software Engineer
8.4k salaries
unlock blur

₹5 L/yr - ₹12 L/yr

Senior Software Engineer
7.7k salaries
unlock blur

₹9 L/yr - ₹18.7 L/yr

Lead Analyst
3.3k salaries
unlock blur

₹15.2 L/yr - ₹26.3 L/yr

Associate Software Engineer
1.9k salaries
unlock blur

₹2.5 L/yr - ₹7 L/yr

Senior Test Engineer
1.3k salaries
unlock blur

₹9.7 L/yr - ₹17.7 L/yr

Explore more salaries
Compare CGI Group with

Accenture

3.7
Compare

Wipro

3.7
Compare

Cognizant

3.7
Compare

Capgemini

3.7
Compare
write
Share an Interview