Upload Button Icon Add office photos

Microsoft Corporation

Compare button icon Compare button icon Compare

Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards

zig zag pattern zig zag pattern

Filter interviews by

Microsoft Corporation Software Developer Intern Interview Questions, Process, and Tips

Updated 3 Dec 2024

Top Microsoft Corporation Software Developer Intern Interview Questions and Answers

  • Q1. Mean, Median, Mode Calculation You are given an array 'ARR' consisting of 'N' integers. Your task is to calculate the three statistical measures for the given array: Mea ...read more
  • Q2. Dice Throw Problem Statement You are provided with D dice, each having F faces numbered 1 to F , inclusive. Your task is to determine the number of possible ways to roll ...read more
  • Q3. Nth Term of Geometric Progression (GP) Series Determine the Nth term of a geometric progression (GP) series given the first term, common ratio, and the term number. Expl ...read more
View all 66 questions

Microsoft Corporation Software Developer Intern Interview Experiences

24 interviews found

Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Coding Test 

2 medium leetcode questions were asked

Round 2 - One-on-one 

(2 Questions)

  • Q1. Difference between polymorphism and inheritance
  • Q2. Dsa question related to array
Round 3 - One-on-one 

(2 Questions)

  • Q1. Explain about project
  • Q2. What did you do in you internship

Interview Preparation Tips

Interview preparation tips for other job seekers - Prepare DSA well
Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Coding Test 

Cf questions asked of rating 1400

Round 2 - Technical 

(2 Questions)

  • Q1. What is ts & why we should use over js
  • Ans. 

    TypeScript (ts) is a superset of JavaScript (js) that adds static typing and other features to improve code quality and maintainability.

    • TypeScript provides static typing, which helps catch errors at compile time rather than runtime.

    • TypeScript supports modern JavaScript features like classes, interfaces, and modules.

    • TypeScript can be transpiled into JavaScript, making it compatible with all browsers and environments.

    • Typ...

  • Answered by AI
  • Q2. System design question of Netflix

Skills evaluated in this interview

Software Developer Intern Interview Questions Asked at Other Companies

Q1. Sum of Maximum and Minimum Elements Problem Statement Given an ar ... read more
asked in Amazon
Q2. Fish Eater Problem Statement In a river where water flows from le ... read more
asked in Apple
Q3. Kevin and his Fruits Problem Statement Kevin has 'N' buckets, eac ... read more
asked in CommVault
Q4. Sliding Maximum Problem Statement Given an array of integers ARR ... read more
Q5. Reverse Words in a String: Problem Statement You are given a stri ... read more
Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Referral and was interviewed in Aug 2024. There were 2 interview rounds.

Round 1 - Assignment 

Complete 2 leetcode questions in 60 minutues

Round 2 - Coding Test 

The interview was to build a sudoko game in 3 hours

Interview Preparation Tips

Interview preparation tips for other job seekers - practice medium questions from LeetCode
Interview experience
3
Average
Difficulty level
-
Process Duration
-
Result
-
Round 1 - One-on-one 

(2 Questions)

  • Q1. Minimum number of operations required to set all elements of a binary matrix
  • Ans. 

    The minimum number of operations required to set all elements of a binary matrix to 0 or 1.

    • Count the number of 0s and 1s in each row and column separately.

    • For each row and column, choose the minimum between the count of 0s and 1s as the number of operations needed.

    • Sum up the minimum operations for all rows and columns to get the total minimum operations.

  • Answered by AI
  • Q2. Introduce your self

Interview Preparation Tips

Interview preparation tips for other job seekers - BE confident

Skills evaluated in this interview

Microsoft Corporation interview questions for designations

 Software Intern

 (1)

 Software Engineer Intern

 (5)

 Software Developer

 (62)

 Software Developer II

 (3)

 Senior Software Developer

 (2)

 SDE Intern

 (4)

 Software Engineer Intern Trainee

 (2)

 Associate Software Engineering Intern

 (1)

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

I applied via campus placement at Maulana Azad National Institute of Technology (NIT), Bhopal and was interviewed before Oct 2023. There were 2 interview rounds.

Round 1 - Coding Test 

2Coding questions were there

Round 2 - One-on-one 

(2 Questions)

  • Q1. Reverse string standard DSA
  • Q2. Tapping rainwater standard DSA

Interview Preparation Tips

Topics to prepare for Microsoft Corporation Software Developer Intern interview:
  • DSA
Interview preparation tips for other job seekers - Focus on SDE sheet standard questions.

Get interview-ready with Top Microsoft Corporation Interview Questions

Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
More than 8 weeks
Result
-

I applied via Company Website and was interviewed before Mar 2023. There were 3 interview rounds.

Round 1 - Coding Test 

Moderate coding question

Round 2 - Assignment 

1 month long hackathon

Round 3 - Technical 

(1 Question)

  • Q1. Dsa round with live coding

I was interviewed in Apr 2021.

Round 1 - Coding Test 

(3 Questions)

Round duration - 90 minutes
Round difficulty - Easy

There were 3 coding questions. All of them were pretty easy and solvable in less than 30 minutes. Some string and pattern matching + some number theory problems were there.

  • Q1. 

    Arithmetic Expression Evaluation Problem Statement

    You are provided with a string expression consisting of characters '+', '-', '*', '/', '(', ')' and digits '0' to '9', representing an arithmetic express...

  • Ans. Reverse Polish Notation

    Infix Expressions are harder for Computers to evaluate because of the additional work needed to decide precedence, so we first convert infix expressions into either postfix or prefix expressions.  In this approach, we convert Infix expression into Postfix expression also known as Reverse Polish Notation, and then evaluate the postfix expression using stack.  Note in postfix expression, ...

  • Answered Anonymously
  • Q2. 

    Maximum Product Subarray Problem Statement

    Given an array of integers, determine the contiguous subarray that produces the maximum product of its elements.

    Explanation:

    A subarray can be derived from th...

  • Ans. Brute-force

    Steps:

    1. Create an ans variable and initialize it to INT_MIN.
    2. Run a loop i = 0 to N and do:
      • Run a loop j = i to N and do:
        • Create a variable, say currentProduct and initialize it to 1.
        • Run a loop k = i to j and do:
          • currentProduct = currentProduct * arr[k]
          • Store the maximum of ans and the currentProduct in the ans variable.
    3. Finally, return the ans variable.
    Space Complexity: O(1)Explanation:

    O(1)

     

    Constant space is u...

  • Answered Anonymously
  • Q3. 

    Angle Calculation Between Clock Hands

    Given a specific time in hours and minutes, your task is to calculate the smallest possible angle between the hour hand and the minute hand of a clock.

    Example:

    Inp...
  • Ans. Using reference time
    • The idea is to take the 12:00 i.e. H = 12  and M = 0 as reference time.
    • First,  calculate the angle made by the hour hand with respect to 12:00 in H hours and M minutes. In 12 hours the hour hand moves by 360 degrees i.e. 30 degrees in 1 hour and 0.5 degrees in 1 minute. So in H hours and M minutes, the angle moved by hour hand is  0.5 * (H * 60 + M).
    • Then, calculate the angle made by m...
  • Answered Anonymously
Round 2 - Face to Face 

(2 Questions)

Round duration - 45 minutes
Round difficulty - Medium

This was a technical round. First after properly introducing ourselves(me and the interviewer), we started with the main interview. I was asked 2 questions, one DS and Algorithms and the other System Design question.

  • Q1. 

    Problem Statement: Sibling Nodes

    You are provided with a Binary Tree consisting of 'N' nodes, where each node holds an integer value. Your objective is to identify and list all nodes that do not possess a...

  • Ans. DFS Approach

    The idea here is to use the fact that if a node of the binary tree has two child nodes, then both of them will be siblings to each other, and if a node of the binary tree has only one child, then that child will not have any sibling.

    Example 

    In above figure 1 has two children, so nodes 3 and 4 are siblings to each other. Also, 3 has only one child, i.e., 5 and 5 have no sibling node.


    So, we will use a df...

  • Answered Anonymously
  • Q2. Design an elevator system for a single building with N floors.
  • Ans. 

    Tip 1 : Discuss first about how the product(here, elevator) will function.
    Tip 2 : Start making with the most basic classes for the elevator.
    Tip 3 : One by one after making the basic class, add new functionalities to it, taking care of all corner cases.

  • Answered Anonymously

Interview Preparation Tips

Professional and academic backgroundI applied for the job as SDE - Intern in BangaloreEligibility criteriaNo criteriaMicrosoft interview preparation:Topics to prepare for the interview - Data Structures and Algorithms problems with Trees, Graphs, stack etc. Basic System Designing. Database Management System and SQL queries. Operation System and Process Scheduling techniques.Time required to prepare for the interview - 8 monthsInterview preparation tips for other job seekers

Tip 1 : Make sure to solve the most recommended problems of LeetCode. Around 200 will do
Tip 2 : Be confident with your basics of chapters from Operating Systems and DBMS or SQL Queries.
Tip 3 : Have a slight knowledge of system designing concepts.

Application resume tips for other job seekers

Tip 1 : Make your Resume such that it is properly readable. Keep it of one page. If it exceeds try your best to include only the most important highlights.
Tip 2 : Put your most important achievements at the top and after than the not so important ones. You want the interviewer to see them first.

Final outcome of the interviewSelected

Skills evaluated in this interview

I was interviewed in Jan 2021.

Round 1 - Coding Test 

(2 Questions)

Round duration - 75 minutes
Round difficulty - Hard

This round was scheduled in the evening hours and all the participants were required to fill a form which was shared 2 days prior to the test date. This form was filled out probably for the security reasons and to ensure that no one disinterested participant gives the test.

  • Q1. 

    Validate BST Problem Statement

    Given a binary tree with N nodes, determine whether the tree is a Binary Search Tree (BST). If it is a BST, return true; otherwise, return false.

    A binary search tree (BST)...

  • Ans. Approach 1
    • For each node, store the minimum and maximum value allowed for that node.
    • Initially, for the root node as all the integer values are allowed, the minimum value would be -10^9 and the maximum value should be 10^9. Here we can also use built-in INT_MIN and INT_MAX constants.
    • If the value of that node is not in the bounded range of minimum and maximum value, then return false.
    • For the left subtree of a node with da...
  • Answered Anonymously
  • Q2. 

    Longest Palindromic Subsequence Problem Statement

    Given a string A consisting of lowercase English letters, determine the length of the longest palindromic subsequence within A.

    Explanation:

    • A subsequ...
  • Ans. Recursive Approach

    The main idea behind this approach is to use recursion. The idea is to compare the first character of the string A[i..j] with its last character. There are two possibilities:

    1. If the first character of the string is the same as the last character, we include first and last characters in the palindrome and do a recursive call for the remaining substring A[i + 1, j - 1].
    2. If the last character of the string...
  • Answered Anonymously
Round 2 - HR 

Round duration - 45 minutes
Round difficulty - Medium

There was only one female interviewer for this round. She continuously interacted with me and was giving me some good situational problems that were not very easy to answer. Basically those were open-minded questions which can be answered both ways and that's why I found it quiet hard as per my nature but at the end things went well for me.

Interview Preparation Tips

Professional and academic backgroundI completed Computer Science Engineering from Malaviya National Institute of Technology Jaipur. I applied for the job as SDE - Intern in HyderabadEligibility criteriaComputer science and it's related branchMicrosoft interview preparation:Topics to prepare for the interview - Data Structures and Algorithms, OOPS, System Design, DBMS, Operating System, Pointers, HashingTime required to prepare for the interview - 7 monthsInterview preparation tips for other job seekers

Tip 1 : Practice all DSA questions from interview bit
Tip 2 : Do Atleast 3 project one should be major, if it's in web dev it would be beneficial.
Tip 3 : Should be good in communication skills

Application resume tips for other job seekers

Tip 1 : Not more than 1 page
Tip 2 : Have atleast 3 projects with some achievement in coding contest and your coding handle should be mentioned like codechef, codeforces etc
Tip 3 : Try to keep only those things in resume in which you find yourself comfortable with

Final outcome of the interviewSelected

Skills evaluated in this interview

I was interviewed in Dec 2020.

Round 1 - Coding Test 

(3 Questions)

Round duration - 60 Minutes
Round difficulty - Easy

There were 3 coding questions of various difficulty level

  • Q1. 

    LRU Cache Design Question

    Design a data structure for a Least Recently Used (LRU) cache that supports the following operations:

    1. get(key) - Return the value of the key if it exists in the cache; otherw...

  • Ans. Array Approach

    We will use an array of type Pair<key, value> to implement our LRU Cache where the larger the index is, the more recently the key is used. Means, the 0th index denotes the least recently used pair, and the last index denotes the most recently used pair.

     

    The key will be considered as accessed if we try to perform any operation on it. So while performing the get operation on a key, we will do a ...

  • Answered Anonymously
  • Q2. 

    Minimum Operations Problem Statement

    You are given an array 'ARR' of size 'N' consisting of positive integers. Your task is to determine the minimum number of operations required to make all elements in t...

  • Ans. Brute Force

    For making all elements equal you can select a target value and then you can make all elements equal to that. Now, for converting a single element to a target value you can perform a single operation only once. In this manner, you can achieve your task in the maximum of  ‘N’ operations but you have to minimize this number of operations and for this, your selection of target is very important because if ...

  • Answered Anonymously
  • Q3. 

    N Queens Problem

    Given an integer N, find all possible placements of N queens on an N x N chessboard such that no two queens threaten each other.

    Explanation:

    A queen can attack another queen if they ar...

  • Ans. Backtracking
    1. Instead of checking all the places on the chessboard, we can use backtracking and place queen row-wise or column-wise.
    2. Suppose we place queens row-wise, and we start with the very first row. Place the queen and move to the next row until either there is a solution or there are no viable cells left.
    3. As we backtrack, check to place the queen in the different columns of the same row.
    4. When we can place a queen at ...
  • Answered Anonymously
Round 2 - Video Call 

(3 Questions)

Round duration - 80 Minutes
Round difficulty - Easy

Asked various coding questions and their implementations

  • Q1. 

    Number of Islands Problem Statement

    You are provided with a 2-dimensional matrix having N rows and M columns, containing only 1s (land) and 0s (water). Your goal is to determine the number of islands in t...

  • Ans. Flood Fill Algorithm

    We can use the flood fill algorithm to check for all connected 1s.

     

    • We create two arrays, dx, and dy, in which we store the unit vectors for all eight directions. Thus, when we are at a given cell, we can easily check for all its adjacent cells by simply looping over the two arrays, adding their values to the current position, and checking for this new position recursively.
    • We will also create a ...
  • Answered Anonymously
  • Q2. 

    Reverse Stack with Recursion

    Reverse a given stack of integers using recursion. You must accomplish this without utilizing extra space beyond the internal stack space used by recursion. Additionally, you ...

  • Ans. Recursive Approach

    We will be using two recursive methods:

    1. To Reverse the Stack: We will use recursion to iterate through the stack. For each top element, we will pop it and use recursion to reverse the remaining stack. After getting the stack reversed by recursion we can simply push the popped element to the bottom of the stack. The procedure to push the element at the bottom of stack is explained in following paragraph...
  • Answered Anonymously
  • Q3. 

    Pair Sum Problem Statement

    You are given an integer array 'ARR' of size 'N' and an integer 'S'. Your task is to find and return a list of all pairs of elements where each sum of a pair equals 'S'.

    Note:
    ...
  • Ans. Brute Force
    • Initialize a list to store our results.
    • For each element in the array 'ARR[i]', check if ('ARR[i]' + ‘ARR[j]’), equals to given sum or not, where ‘i’ < ‘j’ < ‘N’.
    • If the condition matches, add the pair('ARR[i]', ‘ARR[j]’) to the list. Sort the list of pairs as per the given output format and return this list.
    Space Complexity: O(1)Explanation:

    O(1).

     

    Constant extra space is required.

    Time Complexity: O...
  • Answered Anonymously
Round 3 - HR 

Round duration - 30 Minutes
Round difficulty - Easy

HR was very friendly

Interview Preparation Tips

Professional and academic backgroundI applied for the job as SDE - Intern in BengaluruEligibility criteria8 cgpaMicrosoft interview preparation:Topics to prepare for the interview - Data Structures, Arrays, Backtracking, Pointers, OOPS, System Design, Greedy Algorithms, Dynamic Programming, Trees and graphs,Time required to prepare for the interview - 3 monthsInterview preparation tips for other job seekers

Tip 1 : Don't lie over your resume
Tip 2 : Practice regularly
Tip 3 : Revision is the key

Application resume tips for other job seekers

Tip 1 : Right only correct info, Don't fake it
Tip 2 : Keep it precise and concise.

Final outcome of the interviewSelected

Skills evaluated in this interview

I was interviewed in Dec 2020.

Round 1 - Coding Test 

(2 Questions)

Round duration - 120 Minutes
Round difficulty - Easy

Total 3 coding questions were there, out of which I don't remember the last one.

  • Q1. 

    Ninja's Dance Competition Pairing Problem

    Ninja is organizing a dance competition and wants to pair participants using a unique method. Each participant chooses a number upon entry, and Ninja selects a nu...

  • Ans. Sorting + Two Pointer

    The brute force approach that we can think of is to check for every pair in the array and then count the number of pairs with a difference equal to ‘K’. 

     

    But this brute force approach will not be valid in the case of duplicates. So, in order to handle duplicate pairs, we will sort the array first and then find the pair and finally skip the ones that are equal. 

     

    Algorithm: 

    1. S...
  • Answered Anonymously
  • Q2. 

    Longest Common Prefix After Rotation

    You are given two strings 'A' and 'B'. While string 'A' is constant, you may apply any number of left shift operations to string 'B'.

    Explanation:

    Your task is to calcu...

  • Ans. Brute Force
    1. Let’s denote the length of A as M and the length of B as N.
    2. Declare an ans variable to store the minimum number of left shifts required and a max variable in order to store the length of the longest common prefix encountered so far. Initialize the ans variable to 0.
    3. Find out the common prefix of A and B and initialize max to the length of the common prefix. The length of the common prefix between two strings c...
  • Answered Anonymously
Round 2 - Video Call 

(2 Questions)

Round duration - 60 Minutes
Round difficulty - Easy

  • Q1. 

    Rotate Matrix by 90 Degrees Problem Statement

    Given a square matrix 'MATRIX' of non-negative integers, rotate the matrix by 90 degrees in an anti-clockwise direction using only constant extra space.

    Inpu...

  • Ans. Transpose and Reverse

    The idea is to find the transpose of the given matrix and then reverse the columns of the transposed matrix. For example:

    For the given 2D matrix:
    	[ [ 1,  2,  3 ],
    	  [ 4,  5,  6 ],
    	  [ 7,  8,  9 ] ]
    After taking transpose, it will become:
    	[ [ 1,  4,  7 ],
    	  [ 2,  5,  8 ],
    	  [ 3,  6,  9 ] ]
    After reversing the columns, it will ...
  • Answered Anonymously
  • Q2. 

    Problem: Sort an Array of 0s, 1s, and 2s

    Given an array/list ARR consisting of integers where each element is either 0, 1, or 2, your task is to sort this array in increasing order.

    Input:

    The input sta...
  • Ans. NAIVE APPROACH

    Simply, we will sort the array.

    Space Complexity: O(1)Explanation:

    O(1), i.e. constant space complexity. 

     

    Since we are not using any extra space. Hence, the space complexity is constant.

    Time Complexity: O(nlogn)Explanation:

    O(Nlog(N)), where N is the length of the array/list.

     

    Since we are using the inbuilt sort function. Hence, the time complexity is O(Nlog(N)).


    Java (SE 1.8)
    /*
    
    Time Compl...
  • Answered Anonymously
Round 3 - Video Call 

(1 Question)

Round duration - 60 Minutes
Round difficulty - Easy

This was HR + Technical round
He started with questions on projects and Os and Dbms and Oops
Then asked one coding question

  • Q1. 

    Number of Islands Problem Statement

    You are given a non-empty grid that consists of only 0s and 1s. Your task is to determine the number of islands in this grid.

    An island is defined as a group of 1s (re...

  • Ans. DFS

    The problem boils down to find the number of connected components in the grid. 

     

    If we are on a land cell and explore every cell connected to it 8-directionally (and recursively cells connected to those cells, and so on), then the total number of cells with land explored will be one island.

     

    To ensure we don't count cells in the island more than once, we will mark 1(land) as 0 during the recursion call...

  • Answered Anonymously

Interview Preparation Tips

Professional and academic backgroundI applied for the job as SDE - Intern in HyderabadEligibility criteria7 cgpaMicrosoft interview preparation:Topics to prepare for the interview - Data Structures and Algorithms, DBMS, Java, Computer Networks, Operating Systems, OopsTime required to prepare for the interview - 6 monthsInterview preparation tips for other job seekers

Tip 1 : Maintain At least 2 projects in your resume.
Tip 2 : Be Confident enough 
Tip 3 : Solve lot of problems

Application resume tips for other job seekers

Tip 1 : Achievements are good to have
Tip 2 : You should be able to answer all the questions related to skills in the resume.

Final outcome of the interviewSelected

Skills evaluated in this interview

Microsoft Corporation Interview FAQs

How many rounds are there in Microsoft Corporation Software Developer Intern interview?
Microsoft Corporation interview process usually has 2-3 rounds. The most common rounds in the Microsoft Corporation interview process are Coding Test, One-on-one Round and Assignment.
What are the top questions asked in Microsoft Corporation Software Developer Intern interview?

Some of the top questions asked at the Microsoft Corporation Software Developer Intern interview -

  1. minimum number of operations required to set all elements of a binary mat...read more
  2. Print all permutations of a str...read more
  3. What is ts & why we should use over...read more

Tell us how to improve this page.

Microsoft Corporation Software Developer Intern Interview Process

based on 7 interviews

3 Interview rounds

  • Coding Test Round - 1
  • Coding Test Round - 2
  • Video Call Round
View more
Microsoft Corporation Software Developer Intern Salary
based on 6 salaries
₹10 L/yr - ₹19.5 L/yr
189% more than the average Software Developer Intern Salary in India
View more details

Microsoft Corporation Software Developer Intern Reviews and Ratings

based on 18 reviews

4.6/5

Rating in categories

4.5

Skill development

4.3

Work-life balance

4.1

Salary

3.5

Job security

4.4

Company culture

4.0

Promotions

4.5

Work satisfaction

Explore 18 Reviews and Ratings
Software Engineer
1.9k salaries
unlock blur

₹13 L/yr - ₹50 L/yr

Senior Software Engineer
1.1k salaries
unlock blur

₹25 L/yr - ₹85 L/yr

Software Engineer2
1k salaries
unlock blur

₹20 L/yr - ₹72 L/yr

Consultant
599 salaries
unlock blur

₹13 L/yr - ₹36.7 L/yr

Support Engineer
578 salaries
unlock blur

₹7.7 L/yr - ₹30 L/yr

Explore more salaries
Compare Microsoft Corporation with

Google

4.4
Compare

Amazon

4.1
Compare

Deloitte

3.8
Compare

TCS

3.7
Compare
Did you find this page helpful?
Yes No
write
Share an Interview