Upload Button Icon Add office photos

Microsoft Corporation

Compare button icon Compare button icon Compare

Filter interviews by

Microsoft Corporation Intern Interview Questions and Answers

Updated 18 May 2025

14 Interview questions

An Intern was asked 8mo ago
Q. Write a regular expression to validate an email address.
Ans. 

Use regex pattern to validate an email address

  • Use regex pattern /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/

  • Ensure email has valid format with username, @ symbol, domain, and top-level domain

  • Test regex pattern against different email addresses for validation

An Intern was asked 12mo ago
Q. Given a non-negative integer n, compute and return the square root of n.
Ans. 

The square root of a number N is a value that, when multiplied by itself, gives N.

  • The square root of 9 is 3, because 3 * 3 = 9

  • The square root of 16 is 4, because 4 * 4 = 16

  • The square root of 25 is 5, because 5 * 5 = 25

Intern Interview Questions Asked at Other Companies

asked in Accenture
Q1. There is a housing society “The wasteful society”. You collect al ... read more
Q2. Which programming language are you comfortable with?
asked in Accenture
Q3. A marketing strategy case: A perfume seller in Jaipur has unique ... read more
asked in Deloitte
Q4. Case : I am a US based company and I sell 3 products A, B, C (I d ... read more
Q5. Huffman Coding Challenge Given an array ARR of integers containin ... read more
An Intern was asked 12mo ago
Q. Given a target value and a binary tree, return true if there exists a path in the tree that sums to the target value.
Ans. 

Check if there is a path in a binary tree to a given target

  • Start from the root node and traverse the tree using depth-first search (DFS)

  • Keep track of the current path sum and compare it with the target value

  • Return true if a path with the target sum is found, otherwise return false

An Intern was asked 12mo ago
Q. Implement Breadth-First Search (BFS) on a tree.
Ans. 

BFS (Breadth First Search) is a traversal algorithm used to visit all nodes of a tree level by level.

  • Start by visiting the root node, then visit all its children before moving on to the next level

  • Use a queue data structure to keep track of nodes to visit next

  • Repeat the process until all nodes have been visited

What people are saying about Microsoft Corporation

View All
a senior analyst
5d
Microsoft Assessment coming up—any prep tips?
Hey everyone, I have a Microsoft Assessment coming up. If you have any insights or advice on how to prepare, please share!
Got a question about Microsoft Corporation?
Ask anonymously on communities.
An Intern was asked 12mo ago
Q. Given a tree, find its depth.
Ans. 

The depth of a tree is the length of the longest path from the root node to a leaf node.

  • The depth of a tree can be calculated by traversing the tree and keeping track of the depth at each node.

  • The depth of a tree with only one node (the root) is 0.

  • For example, in a binary tree, the depth of the tree is the maximum depth of the left and right subtrees plus 1.

An Intern was asked
Q. How do you remove duplicates from an unsorted linked list?
Ans. 

Remove duplicates in unsorted linked list

  • Create a hash table to keep track of visited nodes

  • Traverse the linked list and check if the node is already visited

  • If visited, remove the node from the linked list

  • Time complexity: O(n)

  • Example: 1 -> 2 -> 3 -> 2 -> 4 -> 1 -> null

  • Output: 1 -> 2 -> 3 -> 4 -> null

🔥 Asked by recruiter 2 times
An Intern was asked
Q. Given two singly linked lists, determine if the two lists intersect. Return the intersecting node. Note that the intersection is defined based on reference, not value. That is, if the kth node of the first ...
Ans. 

Find intersection point of two linked lists.

  • Traverse both lists and find their lengths

  • Move the head of the longer list by the difference in lengths

  • Traverse both lists in parallel until they meet at the intersection point

Are these interview questions helpful?
An Intern was asked
Q. Given a sentence represented as an array of characters, reverse the order of words in it.
Ans. 

To reverse the order of words in a given sentence, we need to split the sentence into words and then reverse the order of the resulting array.

  • Split the sentence into words using a delimiter like space or comma

  • Reverse the resulting array of words

  • Join the reversed array of words using a delimiter to form the reversed sentence

An Intern was asked
Q. Given N people on an M*M grid, find the point that requires the least total distance for all people to meet at that point.
Ans. 

Given N people on an M*M grid, find the point with the least total distance for all to meet.

  • Calculate the Manhattan distance for each point on the grid

  • Find the point with the minimum total distance

  • Use dynamic programming to optimize the solution

  • Consider edge cases such as when N=1 or M=1

🔥 Asked by recruiter 2 times
An Intern was asked
Q. Given an m x n 2D binary grid grid which represents a map of '1's (land) and '0's (water), return the number of islands.
Ans. 

The number of islands problem involves counting the number of connected islands in a grid.

  • An island is a group of connected 1s in a grid of 0s and 1s.

  • Use depth-first search or breadth-first search to traverse the grid and count the islands.

  • Keep track of visited cells to avoid counting the same island multiple times.

Microsoft Corporation Intern Interview Experiences

21 interviews found

Intern Interview Questions & Answers

user image Anonymous

posted on 26 Sep 2024

Interview experience
3
Average
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

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

Round 1 - Coding Test 

1 hour test contains 2 coding questions.

Round 2 - Technical 

(2 Questions)

  • Q1. Delete a node from Singly and doubly linked list
  • Ans. 

    To delete a node from a singly or doubly linked list, update the pointers of the previous and next nodes.

    • For a singly linked list, update the next pointer of the previous node to skip the node to be deleted.

    • For a doubly linked list, update the next pointer of the previous node and the previous pointer of the next node to skip the node to be deleted.

  • Answered by AI
  • Q2. Validate an email using regex pattern
  • Ans. 

    Use regex pattern to validate an email address

    • Use regex pattern /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/

    • Ensure email has valid format with username, @ symbol, domain, and top-level domain

    • Test regex pattern against different email addresses for validation

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - Understand the concepts thoroughly.

Skills evaluated in this interview

Intern Interview Questions & Answers

user image Anonymous

posted on 18 May 2025

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

I appeared for an interview in Apr 2025, where I was asked the following questions.

  • Q1. What is your name
  • Q2. Whats you need

Intern Interview Questions & Answers

user image Anonymous

posted on 3 Dec 2024

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

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

Round 1 - Aptitude Test 

SIMPLE and easy which was mcqs based. easy

Round 2 - Coding Test 

Two 2 leet code question based on array and strings

Interview Preparation Tips

Interview preparation tips for other job seekers - nice

Intern Interview Questions & Answers

user image Anonymous

posted on 3 Dec 2024

Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
-
Round 1 - One-on-one 

(2 Questions)

  • Q1. Leet code array
  • Q2. Leet code queue

Intern Interview Questions & Answers

user image Manvi Gupta

posted on 21 Nov 2024

Interview experience
2
Poor
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Coding Test 

Dp and graph was the area of focus

Intern Interview Questions & Answers

user image Anonymous

posted on 11 Jul 2024

Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
-

I applied via Campus Placement

Round 1 - Technical 

(2 Questions)

  • Q1. LinkedIn list middle element
  • Q2. Tree traversals

Intern Interview Questions & Answers

user image Anisha Singh

posted on 16 Dec 2024

Interview experience
4
Good
Difficulty level
Moderate
Process Duration
2-4 weeks
Result
-

I applied via LinkedIn and was interviewed in Jun 2024. There were 2 interview rounds.

Round 1 - Coding Test 

There were two medium level leetcode questions.

Round 2 - Aptitude Test 

There were two questions. one leetcode medium and one hard

Intern Interview Questions & Answers

user image Anonymous

posted on 6 Jun 2024

Interview experience
4
Good
Difficulty level
Moderate
Process Duration
2-4 weeks
Result
Not Selected

I applied via Company Website and was interviewed before Jun 2023. There were 2 interview rounds.

Round 1 - Coding Test 

60 mins coding test with 2 questions (leet code easy-medium)

Round 2 - Technical 

(2 Questions)

  • Q1. BFS implementation on a tree
  • Ans. 

    BFS (Breadth First Search) is a traversal algorithm used to visit all nodes of a tree level by level.

    • Start by visiting the root node, then visit all its children before moving on to the next level

    • Use a queue data structure to keep track of nodes to visit next

    • Repeat the process until all nodes have been visited

  • Answered by AI
  • Q2. Find the depth of the tree
  • Ans. 

    The depth of a tree is the length of the longest path from the root node to a leaf node.

    • The depth of a tree can be calculated by traversing the tree and keeping track of the depth at each node.

    • The depth of a tree with only one node (the root) is 0.

    • For example, in a binary tree, the depth of the tree is the maximum depth of the left and right subtrees plus 1.

  • Answered by AI

Interview Preparation Tips

Topics to prepare for Microsoft Corporation Intern interview:
  • DSA
  • DAA

Skills evaluated in this interview

Intern Interview Questions & Answers

user image Anonymous

posted on 12 Oct 2023

Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Properly align and format text in your resume. A recruiter will have to spend more time reading poorly aligned text, leading to high chances of rejection.
View all tips
Round 2 - One-on-one 

(2 Questions)

  • Q1. Tell me about a time when you had to work on a challenging project with a tight deadline.
  • Q2. Describe a situation in which you had to resolve a conflict with a colleague.

Intern Interview Questions & Answers

user image Anonymous

posted on 6 Oct 2023

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

I applied via Campus Placement

Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Don’t add your photo or details such as gender, age, and address in your resume. These details do not add any value.
View all tips
Round 2 - Coding Test 

Coding related basic questions

Round 3 - project 

(2 Questions)

  • Q1. Project on ai-ml
  • Ans. 

    AI-ML project involves using artificial intelligence and machine learning algorithms to analyze data and make predictions.

    • Collecting and cleaning data for training the AI model

    • Choosing the appropriate machine learning algorithm for the task

    • Evaluating the performance of the model using metrics like accuracy and precision

    • Implementing the model in a real-world application

    • Continuously improving the model through feedback a...

  • Answered by AI
  • Q2. Coding questions
Round 4 - One-on-one 

(1 Question)

  • Q1. String question

Microsoft Corporation Interview FAQs

How many rounds are there in Microsoft Corporation Intern interview?
Microsoft Corporation interview process usually has 2-3 rounds. The most common rounds in the Microsoft Corporation interview process are Coding Test, Technical and Resume Shortlist.
How to prepare for Microsoft Corporation Intern 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 Microsoft Corporation. The most common topics and skills that interviewers at Microsoft Corporation expect are microsoft, Internship, Machine Learning, Computer Vision and Data Mining.
What are the top questions asked in Microsoft Corporation Intern interview?

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

  1. How are you fetching data through api in your project.And how machine learning ...read more
  2. remove duplicates in unsorted linked l...read more
  3. find intersection point of two linked l...read more
How long is the Microsoft Corporation Intern interview process?

The duration of Microsoft Corporation Intern interview process can vary, but typically it takes about less than 2 weeks to complete.

Tell us how to improve this page.

Overall Interview Experience Rating

4.2/5

based on 19 interview experiences

Difficulty level

Easy 27%
Moderate 64%
Hard 9%

Duration

Less than 2 weeks 45%
2-4 weeks 45%
More than 8 weeks 9%
View more

Intern Interview Questions from Similar Companies

Google Intern Interview Questions
4.4
 • 22 Interviews
Oracle Intern Interview Questions
3.7
 • 7 Interviews
Zoho Intern Interview Questions
4.3
 • 4 Interviews
SAP Intern Interview Questions
4.2
 • 4 Interviews
Adobe Intern Interview Questions
3.9
 • 3 Interviews
Visteon Intern Interview Questions
3.5
 • 2 Interviews
View all
Microsoft Corporation Intern Salary
based on 16 salaries
₹0.8 L/yr - ₹7.3 L/yr
6% more than the average Intern Salary in India
View more details

Microsoft Corporation Intern Reviews and Ratings

based on 22 reviews

4.7/5

Rating in categories

4.5

Skill development

4.7

Work-life balance

4.5

Salary

4.5

Job security

4.6

Company culture

4.5

Promotions

4.4

Work satisfaction

Explore 22 Reviews and Ratings
Software Engineer
2.5k salaries
unlock blur

₹15 L/yr - ₹54 L/yr

Senior Software Engineer
1.4k salaries
unlock blur

₹36.8 L/yr - ₹75.6 L/yr

Software Engineer2
1.2k salaries
unlock blur

₹22 L/yr - ₹72 L/yr

Software Developer
1k salaries
unlock blur

₹26.4 L/yr - ₹46 L/yr

Support Engineer
615 salaries
unlock blur

₹9 L/yr - ₹32 L/yr

Explore more salaries
Compare Microsoft Corporation with

Google

4.4
Compare

Amazon

4.0
Compare

Deloitte

3.7
Compare

TCS

3.6
Compare
write
Share an Interview