Upload Button Icon Add office photos

Mott MacDonald

Compare button icon Compare button icon Compare

Filter interviews by

Mott MacDonald Python Software Developer Interview Questions and Answers

Updated 14 Sep 2024

6 Interview questions

A Python Software Developer was asked 9mo ago
Q. What are decorators in Python?
Ans. 

Decorators in Python are functions that modify the behavior of other functions or methods.

  • Decorators are denoted by the @ symbol followed by the decorator name.

  • They allow you to wrap another function in order to extend or modify its behavior.

  • Decorators are commonly used for logging, authentication, and memoization.

  • Example: @staticmethod decorator in Python is used to define a method that is not bound to an instanc...

A Python Software Developer was asked 9mo ago
Q. What is the difference between a shallow copy and a deep copy?
Ans. 

Shallow copy creates a new object but does not duplicate nested objects, while deep copy creates a new object with all nested objects duplicated.

  • Shallow copy only copies the references of nested objects, not the objects themselves.

  • Deep copy creates new copies of all nested objects, ensuring complete independence.

  • In Python, shallow copy can be achieved using the copy() method, while deep copy can be achieved using ...

Python Software Developer Interview Questions Asked at Other Companies

Q1. What is the purpose of using the super keyword, Inheritance in Py ... read more
asked in Infosys
Q2. Can you write a Python program to determine whether two given wor ... read more
Q3. Have you implemented any context manager in your application?
Q4. Difference between static and instance methods in python? Explain ... read more
Q5. What is byte code. What is filter function in python used for.
A Python Software Developer was asked 9mo ago
Q. What are the differences between Lists and Tuples?
Ans. 

Lists are mutable, ordered collections of items while tuples are immutable, ordered collections of items.

  • Lists are defined using square brackets [] while tuples are defined using parentheses ().

  • Lists can be modified (add, remove, change elements) while tuples cannot be modified once created.

  • Lists are typically used for collections of similar items that may need to be modified, while tuples are used for fixed colle...

A Python Software Developer was asked 9mo ago
Q. What are access specifiers in Python, and how are they set up?
Ans. 

Access specifiers in Python control the accessibility of class attributes and methods.

  • Access specifiers are not explicitly defined in Python like in other languages such as Java or C++.

  • By convention, attributes and methods starting with a single underscore (_) are considered 'protected' and should not be accessed directly.

  • Attributes and methods starting with double underscores (__) are considered 'private' and are...

What people are saying about Mott MacDonald

View All
a team leader quantity surveyor
2w
Atkins / WSP / Mott-Macdonald - whichone should I target ?
I have a 10 yrs experience in Quantity survey. Worked on most of the sectors like railway, highway , bridges etc. Currently working as a Team leader in a decent regional firm. Now I want to switch to an MNC . So whichone should be best ?
Got a question about Mott MacDonald ?
Ask anonymously on communities.
A Python Software Developer was asked 9mo ago
Q. What is inheritence? How many types of inheritence are there in python?
Ans. 

Inheritance is a mechanism in which a new class inherits attributes and methods from an existing class.

  • Inheritance allows a class to reuse code from another class.

  • Python supports single, multiple, and multilevel inheritance.

  • Example: class ChildClass(ParentClass):

A Python Software Developer was asked 9mo ago
Q. Difference between static and instance methods in python? Explain what decorator to use for defining static methods?
Ans. 

Static methods are bound to the class itself, while instance methods are bound to instances of the class. Use @staticmethod decorator for static methods.

  • Static methods do not have access to class or instance attributes, while instance methods do.

  • Instance methods can modify instance state, while static methods cannot.

  • To define a static method in Python, use the @staticmethod decorator before the method definition.

  • E...

Mott MacDonald Python Software Developer Interview Experiences

1 interview found

Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
No response
Round 1 - Aptitude Test 

25 Questions, Multiple choice, Single correct as well as multi-correct, related tp python, django & flask

Round 2 - Coding Test 

Find the maximum occurring number in a list of numbers without using any in-built functions, in linear time using, O(1) space

Round 3 - One-on-one 

(7 Questions)

  • Q1. Difference between Lists and Tuples?
  • Ans. 

    Lists are mutable, ordered collections of items while tuples are immutable, ordered collections of items.

    • Lists are defined using square brackets [] while tuples are defined using parentheses ().

    • Lists can be modified (add, remove, change elements) while tuples cannot be modified once created.

    • Lists are typically used for collections of similar items that may need to be modified, while tuples are used for fixed collection...

  • Answered by AI
  • Q2. Difference between Shallow copy and Deep copy?
  • Ans. 

    Shallow copy creates a new object but does not duplicate nested objects, while deep copy creates a new object with all nested objects duplicated.

    • Shallow copy only copies the references of nested objects, not the objects themselves.

    • Deep copy creates new copies of all nested objects, ensuring complete independence.

    • In Python, shallow copy can be achieved using the copy() method, while deep copy can be achieved using the d...

  • Answered by AI
  • Q3. What is MVT architecture?
  • Ans. 

    MVT architecture stands for Model-View-Template architecture, commonly used in web development with Django framework.

    • MVT separates the logic of an application into three components: Model, View, and Template.

    • Model represents the data structure, View handles the user interface and business logic, and Template manages the presentation layer.

    • MVT is similar to MVC (Model-View-Controller) architecture but with a different n...

  • Answered by AI
  • Q4. What are decorators in Python?
  • Ans. 

    Decorators in Python are functions that modify the behavior of other functions or methods.

    • Decorators are denoted by the @ symbol followed by the decorator name.

    • They allow you to wrap another function in order to extend or modify its behavior.

    • Decorators are commonly used for logging, authentication, and memoization.

    • Example: @staticmethod decorator in Python is used to define a method that is not bound to an instance of ...

  • Answered by AI
  • Q5. Difference between static and instance methods in python? Explain what decorator to use for defining static methods?
  • Ans. 

    Static methods are bound to the class itself, while instance methods are bound to instances of the class. Use @staticmethod decorator for static methods.

    • Static methods do not have access to class or instance attributes, while instance methods do.

    • Instance methods can modify instance state, while static methods cannot.

    • To define a static method in Python, use the @staticmethod decorator before the method definition.

    • Exampl...

  • Answered by AI
  • Q6. What is inheritence? How many types of inheritence are there in python?
  • Ans. 

    Inheritance is a mechanism in which a new class inherits attributes and methods from an existing class.

    • Inheritance allows a class to reuse code from another class.

    • Python supports single, multiple, and multilevel inheritance.

    • Example: class ChildClass(ParentClass):

  • Answered by AI
  • Q7. What are access specifiers in Python, how are they set-up?
  • Ans. 

    Access specifiers in Python control the accessibility of class attributes and methods.

    • Access specifiers are not explicitly defined in Python like in other languages such as Java or C++.

    • By convention, attributes and methods starting with a single underscore (_) are considered 'protected' and should not be accessed directly.

    • Attributes and methods starting with double underscores (__) are considered 'private' and are name...

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - Give some mock interviews, revise theoretical concepts, implement concepts in code, communicate concepts effectively.

Skills evaluated in this interview

Interview questions from similar companies

I applied via Company Website and was interviewed before Nov 2020. There was 1 interview round.

Interview Questionnaire 

1 Question

  • Q1. How do you handle downtime

Interview Preparation Tips

Interview preparation tips for other job seekers - Because confident and prepare well for versant test

Python Software Developer Interview Questions Asked at Other Companies

Q1. What is the purpose of using the super keyword, Inheritance in Py ... read more
asked in Infosys
Q2. Can you write a Python program to determine whether two given wor ... read more
Q3. Have you implemented any context manager in your application?
Q4. Difference between static and instance methods in python? Explain ... read more
Q5. What is byte code. What is filter function in python used for.

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

Interview Questionnaire 

2 Questions

  • Q1. What synchronous and asynchronous means??
  • Ans. 

    Synchronous means happening at the same time, while asynchronous means not happening at the same time.

    • Synchronous operations occur in real-time, while asynchronous operations can be delayed or queued.

    • Synchronous operations block the program until they are completed, while asynchronous operations allow the program to continue running.

    • Examples of synchronous operations include function calls and loops, while examples of ...

  • Answered by AI
  • Q2. When to use CTE and temp table.
  • Ans. 

    CTE and temp table usage in SQL

    • Use CTE for recursive queries and complex subqueries

    • Use temp tables for large data sets and complex queries

    • CTE is more efficient for small data sets

    • Temp tables can be indexed for faster performance

    • Consider the scope and lifespan of the data when choosing between CTE and temp table

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - Understand question first and answer.

I applied via LinkedIn and was interviewed in Nov 2020. There was 1 interview round.

Interview Questionnaire 

2 Questions

  • Q1. Basic OOPS concepts?
  • Ans. 

    OOP is a programming paradigm based on objects, encapsulating data and behavior for modular and reusable code.

    • Encapsulation: Bundling data and methods that operate on the data within one unit (e.g., a class).

    • Inheritance: Mechanism to create a new class using properties and methods of an existing class (e.g., a 'Dog' class inheriting from an 'Animal' class).

    • Polymorphism: Ability to present the same interface for differe...

  • Answered by AI
  • Q2. Logical Coding like remove duplicates from array

Interview Preparation Tips

Interview preparation tips for other job seekers - Focus on your basic OOPS concepts

What people are saying about Mott MacDonald

View All
a team leader quantity surveyor
2w
Atkins / WSP / Mott-Macdonald - whichone should I target ?
I have a 10 yrs experience in Quantity survey. Worked on most of the sectors like railway, highway , bridges etc. Currently working as a Team leader in a decent regional firm. Now I want to switch to an MNC . So whichone should be best ?
Got a question about Mott MacDonald ?
Ask anonymously on communities.

Interview Questionnaire 

1 Question

  • Q1. Java basics

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

Round 1 - Assignment 

Cofing round on hackerearth

Round 2 - Case Study 

Case study with algo and db design

Interview Preparation Tips

Interview preparation tips for other job seekers - Great technology, poor worklife balance

I appeared for an interview before Sep 2020.

Round 1 - Coding Test 

(2 Questions)

Round duration - 90 minutes
Round difficulty - Medium

This test consists of two coding questions and some MCQ regarding computer fundamentals.

  • Q1. 

    Kevin and His Cards Problem Statement

    Kevin has two packs of cards. The first pack contains N cards, and the second contains M cards. Each card has an integer written on it. Determine two results: the tot...

  • Ans. 

    Find total distinct card types and common card types between two packs of cards.

    • Create a set to store distinct card types when combining both packs.

    • Iterate through each pack and add card types to the set.

    • Find the intersection of card types between the two packs to get common card types.

  • Answered by AI
  • Q2. 

    Allocate Books Problem Statement

    Given an array of integers arr, where arr[i] represents the number of pages in the i-th book, and an integer m representing the number of students, allocate all the books ...

  • Ans. 

    Allocate books to students in a way that minimizes the maximum number of pages assigned to a student.

    • Iterate through all possible allocations of books to students.

    • Calculate the maximum number of pages assigned to a student for each allocation.

    • Return the minimum of these maximums as the result.

  • Answered by AI
Round 2 - Video Call 

(2 Questions)

Round duration - 40 minutes
Round difficulty - Easy

It was a technical round that is based on DSA and computer fundamentals.

  • Q1. 

    Reverse Linked List Problem Statement

    Given a singly linked list of integers, return the head of the reversed linked list.

    Example:

    Initial linked list: 1 -> 2 -> 3 -> 4 -> NULL
    Reversed link...
  • Ans. 

    Reverse a singly linked list of integers and return the head of the reversed linked list.

    • Iterate through the linked list and reverse the pointers to point to the previous node instead of the next node.

    • Use three pointers - prev, current, and next to reverse the linked list in O(N) time and O(1) space complexity.

    • Update the head of the reversed linked list as the last node encountered during the reversal process.

  • Answered by AI
  • Q2. 

    Sort 0 1 2 Problem Statement

    Given an integer array arr of size 'N' containing only 0s, 1s, and 2s, write an algorithm to sort the array.

    Input:

    The first line contains an integer 'T' representing the n...
  • Ans. 

    Sort an array of 0s, 1s, and 2s in linear time complexity.

    • Use three pointers to keep track of 0s, 1s, and 2s while traversing the array.

    • Swap elements based on the values encountered to sort the array in-place.

    • Time complexity should be O(N) and space complexity should be O(1).

  • Answered by AI

Interview Preparation Tips

Professional and academic backgroundI applied for the job as SDE - 1 in PuneEligibility criteria10- above 60% 12- ABove 60 percentZS Associates interview preparation:Topics to prepare for the interview - Data Structures and Algorithms, DBMS, OOPS, Operating System , System DesignTime required to prepare for the interview - 3 monthsInterview preparation tips for other job seekers

Tip 1 : If you are not able to complete something in-depth, clearly mention that to the interviewer.
Tip 2 : Practice DSA well.
Tip 3 : Try to think analytically and more logically,Your thinking skills matters a lot.

Application resume tips for other job seekers

Tip 1 : Try to mention max no of projects
Tip 2 : DO not fake in your resume.

Final outcome of the interviewRejected

Skills evaluated in this interview

Are these interview questions helpful?

Interview Questionnaire 

1 Question

  • Q1. Reverse a LL, Git use cases

Interview Preparation Tips

Interview preparation tips for other job seekers - Just be yourself

I appeared for an interview before Sep 2020.

Interview Preparation Tips

Interview preparation tips for other job seekers - Interview is standard. Mainly tests the conceptual level knowledge. Java multithreading might be asked if the candidate mentions it. Multi threading concepts are appreciated and gives an edge

I applied via Naukri.com and was interviewed in Nov 2020. There was 1 interview round.

Interview Questionnaire 

2 Questions

  • Q1. Spring, Hibernate and java and angular questions
  • Q2. What is REST API, Difference between Spring MVC and Spring Boot, Abstract class, interfaces etc
  • Ans. 

    Answering questions related to REST API, Spring MVC, Spring Boot, abstract class, and interfaces.

    • REST API is a set of rules for building web services. It uses HTTP methods to access resources.

    • Spring MVC is a framework for building web applications using the Model-View-Controller architecture.

    • Spring Boot is a framework for building standalone, production-grade Spring-based applications.

    • An abstract class is a class that ...

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - Be prepared well on what you have mentioned on your resume.

Skills evaluated in this interview

Mott MacDonald Interview FAQs

How many rounds are there in Mott MacDonald Python Software Developer interview?
Mott MacDonald interview process usually has 3 rounds. The most common rounds in the Mott MacDonald interview process are Aptitude Test, Coding Test and One-on-one Round.
How to prepare for Mott MacDonald Python Software 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 Mott MacDonald . The most common topics and skills that interviewers at Mott MacDonald expect are Django and Python.
What are the top questions asked in Mott MacDonald Python Software Developer interview?

Some of the top questions asked at the Mott MacDonald Python Software Developer interview -

  1. Difference between static and instance methods in python? Explain what decorato...read more
  2. What is inheritence? How many types of inheritence are there in pyth...read more
  3. What are access specifiers in Python, how are they set-...read more

Tell us how to improve this page.

Overall Interview Experience Rating

5/5

based on 1 interview experience

Interview Questions from Similar Companies

Deloitte Interview Questions
3.7
 • 3k Interviews
PwC Interview Questions
3.3
 • 1.4k Interviews
Ernst & Young Interview Questions
3.4
 • 1.2k Interviews
KPMG India Interview Questions
3.4
 • 844 Interviews
ZS Interview Questions
3.3
 • 476 Interviews
BCG Interview Questions
3.7
 • 203 Interviews
Citco Interview Questions
3.1
 • 149 Interviews
Bain & Company Interview Questions
3.9
 • 111 Interviews
View all
Electrical Engineer
58 salaries
unlock blur

₹9.5 L/yr - ₹17 L/yr

BIM Engineer
48 salaries
unlock blur

₹8.9 L/yr - ₹15.1 L/yr

Mechanical Engineer
42 salaries
unlock blur

₹8.8 L/yr - ₹15 L/yr

Structural Engineer
41 salaries
unlock blur

₹9.8 L/yr - ₹17.7 L/yr

Consultant
37 salaries
unlock blur

₹5.4 L/yr - ₹12.3 L/yr

Explore more salaries
Compare Mott MacDonald with

Deloitte

3.7
Compare

Ernst & Young

3.4
Compare

PwC

3.3
Compare

KPMG India

3.4
Compare
write
Share an Interview