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

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

Interview Questionnaire 

1 Question

  • Q1. 1.Technical Ques(OOPS Concept)and 2. Area of Interest 3. About Company 4. more

Interview Preparation Tips

Interview preparation tips for other job seekers - Hello Folks,
Sharing some tips while facing Interview Assessment or GD Round Assessment.
1. Be Confident always give the answer what they ask for, Never connect your answer with different topic.
2. Always go through Company Portal or wiki about their Operation & Function.
3. Always have positive vibes that whatever yes or No, You will surely gain something.
All the Best..!!

Interview Questionnaire 

1 Question

  • Q1. All about SQL joins,data warehouse.

Interview Preparation Tips

Interview preparation tips for other job seekers - Be prepared and answer only if you know the concept clearly.

I applied via Naukri.com and was interviewed before Apr 2020. There was 1 interview round.

Interview Questionnaire 

1 Question

  • Q1. Technical questions

Interview Preparation Tips

Interview preparation tips for other job seekers - I have visited interview location on morning 7am DLF block Hyderabad. Buy my interview was taken in evening 6:45pm. That was not an interview test it was a patience test.
Are these interview questions helpful?

Interview Questionnaire 

3 Questions

  • Q1. Tell me something about yourself
  • Ans. 

    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

  • Answered by AI
  • Q2. What is the difference between encapsulation and polymorphism?
  • Q3. What do you mean by deadlock in OS?
  • Ans. 

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

  • Answered by AI

Interview Preparation Tips

Round: Test
Experience: We were asked to solve a questionnaire containing 25 questions based on logical reasoning and basic mathematics. We went to the test center in their recruitment center where there were many desktops for the candidates to sit and give the test. At the entrance, they checked the letter we got from them to authenticate us.Then they gave us a login ID and password. Exactly when the test started, the portal became active and we were asked to enter the credentials. I completed the test in half the time as it was pretty easy and straightforward.
Tips: Practice simple aptitude questions for greater speed and accuracy.
Duration: 1 hour
Total Questions: 20

Round: Group Discussion
Experience: Ten candidates who were shortlisted from the written test attended the group discussion. The topic given to us was fairly simple and lucky for me, I used to work as an anchor, and being a strong feminist person, I had a lot of valid points to put forward. I was the one to start the discussion, and I felt I was the best speaker there. The topic was something that I follow regularly, yet I came across a few unique points from the other candidates.
Tips: Improve your English speaking skills. Be assertive and speak concisely.
Duration: 15 minutes

Round: HR Interview
Experience: The interview basically revolved around this one question which had a few follow-up questions, such as who all are there in my family, what are my strengths and weaknesses, and why am I fit for this job.
Tips: Be confident and honest about yourself.

Round: Technical Interview
Experience: I tried to be as calm and confident as possible during the whole of the interview

College Name: Guru Nanak Institute of Technology (GNIT)

Skills evaluated in this interview

I applied via Company Website and was interviewed in Oct 2018. There was 0 interview round.

Interview Preparation Tips

General Tips: This interview was a technical one but was majorly a stress test. It lasted for about 1 hour 10 minutes. The interviewer wanted to test both my knowledge and communication skills. Most of the questions asked to me were related to my B.Tech curriculum i.e. computer science related topics. He stressed a lot on the basics related to my project topic. Luckily I was able to answer most of the questions correctly. I tried to answer each question with examples and also used props on the table (like pens, paperweights, pen stands etc.) to explain my theories. It was my first offcampus interview, and I think I did pretty well for a fresher.
You need to stay calm and should apply presence of mind. Please go through the job description thoroughly word-by-word and recheck your resume to ensure that you are a best-fit for the position.
Skills: Communication, Body Language, Problem Solving, Leadership, Presentation Skills
Duration: <1 week

I appeared for an interview before Nov 2020.

Round 1 - Coding Test 

(2 Questions)

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

  • Q1. 

    Ninja and Alien Language Order Problem

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

  • Ans. 

    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.

  • Answered by AI
  • Q2. 

    Check Duplicate Within K Distance

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

  • Ans. 

    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.

  • Answered by AI
Round 2 - Face to Face 

(1 Question)

Round duration - 30 minutes
Round difficulty - Medium

Timing was 2pm when it started
Interviewer was polite

  • Q1. 

    Kth Largest Element Problem Statement

    Ninja enjoys working with numbers, and Alice challenges him to find the Kth largest value from a given list of numbers.

    Input:

    The first line contains an integer 'T...
  • Ans. 

    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

  • Answered by AI
Round 3 - HR 

Round duration - 20 minutes
Round difficulty - Easy

Timing was 9 am onwards 
Interviewer was good enough

Interview Preparation Tips

Professional and academic backgroundI applied for the job as Software Developer in DelhiEligibility criteriaAbove 7 CGPA with no pending backlogsWipro Limited interview preparation:Topics to prepare for the interview - Java, C++, DBMS, Data Structures, Dot net, HTML, CSS, JSTime required to prepare for the interview - 6 monthsInterview preparation tips for other job seekers

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

Application resume tips for other job seekers

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

Final outcome of the interviewRejected

Skills evaluated in this interview

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