Filter interviews by
25 Questions, Multiple choice, Single correct as well as multi-correct, related tp python, django & flask
Find the maximum occurring number in a list of numbers without using any in-built functions, in linear time using, O(1) space
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...
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
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...
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
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...
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):
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
Top trending discussions
I applied via Campus Placement and was interviewed before Nov 2020. There was 1 interview round.
Program to calculate factorial
Use a loop to multiply the numbers from 1 to n
Handle edge cases like 0 and negative numbers
Use recursion for a more elegant solution
I applied via Naukri.com and was interviewed in Nov 2020. There was 1 interview round.
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 ...
I appeared for an interview before Sep 2020.
Round duration - 90 minutes
Round difficulty - Medium
This test consists of two coding questions and some MCQ regarding computer fundamentals.
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...
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.
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 ...
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.
Round duration - 40 minutes
Round difficulty - Easy
It was a technical round that is based on DSA and computer fundamentals.
Given a singly linked list of integers, return the head of the reversed linked list.
Initial linked list: 1 -> 2 -> 3 -> 4 -> NULL
Reversed link...
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.
Given an integer array arr
of size 'N' containing only 0s, 1s, and 2s, write an algorithm to sort the array.
The first line contains an integer 'T' representing the n...
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).
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.
Tip 1 : Try to mention max no of projects
Tip 2 : DO not fake in your resume.
I applied via Approached by Company and was interviewed before Jun 2021. There were 3 interview rounds.
This is a case study round, you would be given 3 question out of which you will need to solve any 2.
Two question are algoritm based around designing datastructure and matrix problem
One question will be based om designing Database for a given requirement.
I applied via Campus Placement and was interviewed before Sep 2021. There were 5 interview rounds.
1. One question was given to be solved in 1 hour. Question was medium level based on strings.
1. 3 questions were given out of which any 2 needed to be solved. 1 question related to Database design and query, 2 questions related to DSA, both DSA questions were medium-hard type based on Dynamic programming and graph.
I solved one Dynamic programming question and Database question.
I applied via LinkedIn and was interviewed in Nov 2020. There was 1 interview round.
I applied via Company Website and was interviewed before Nov 2020. There was 1 interview round.
I prioritize identifying the root cause and finding a solution while keeping stakeholders informed.
Identify the root cause of the downtime
Communicate with stakeholders about the issue and expected resolution time
Work on finding a solution as quickly as possible
Implement preventative measures to avoid future downtime
Document the incident and steps taken for future reference
I appeared for an interview before Sep 2020.
Some of the top questions asked at the Mott MacDonald Python Software Developer interview -
based on 1 interview
Interview experience
Electrical Engineer
55
salaries
| ₹4.6 L/yr - ₹15 L/yr |
Mechanical Engineer
42
salaries
| ₹4.9 L/yr - ₹15 L/yr |
Consultant
38
salaries
| ₹5.4 L/yr - ₹11 L/yr |
Structural Engineer
36
salaries
| ₹5.4 L/yr - ₹22.4 L/yr |
Senior Consultant
35
salaries
| ₹7.2 L/yr - ₹20 L/yr |
Deloitte
Ernst & Young
PwC
KPMG India