Upload Button Icon Add office photos

Microsoft Corporation

Compare button icon Compare button icon Compare

Filter interviews by

Microsoft Corporation Software Engineer Intern Trainee Interview Questions and Answers

Updated 19 Jul 2024

Microsoft Corporation Software Engineer Intern Trainee Interview Experiences

2 interviews found

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

2 DSA questions asked on codility platform. One was about backtracking, and another about 1D DP.

Round 2 - Technical 

(2 Questions)

  • Q1. Given a binary tree, return false if there exists any node such that it has two children and left node has value greater than right, else return true.
  • Ans. 

    Check if any node in binary tree violates left node value less than right node value rule.

    • Traverse the binary tree using depth-first search (DFS) or breadth-first search (BFS) and check each node for the given condition.

    • If a node has two children and the left child's value is greater than the right child's value, return false.

    • If no such node is found, return true.

    • Example: For a binary tree with nodes 5, 3, 7, 2, 4, 6, ...

  • Answered by AI
  • Q2. Remove duplicate characters from a string efficiently.
  • Ans. 

    Use a hash set to efficiently remove duplicate characters from a string.

    • Create a hash set to store unique characters.

    • Iterate through the string and add each character to the hash set.

    • If a character is already in the hash set, skip it.

    • Convert the hash set back to a string to get the result.

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - Do leetcode medium for interviews, medium + hard for OA round.

Skills evaluated in this interview

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

I applied via Company Website and was interviewed in Aug 2023. There were 3 interview rounds.

Round 1 - Coding Test 

Asked from sorting and DP.two qeustions were there

Round 2 - Technical 

(2 Questions)

  • Q1. Convert roman to numerals
  • Ans. 

    Convert Roman numerals to numbers

    • Create a mapping of Roman numerals to their corresponding values

    • Iterate through the Roman numeral string from right to left

    • If the current numeral is smaller than the next numeral, subtract its value from the total

    • Otherwise, add its value to the total

  • Answered by AI
  • Q2. Rotate the array
  • Ans. 

    Rotate the array in place by k steps

    • Use the modulus operator to handle cases where k is greater than the array length

    • Reverse the entire array, then reverse the first k elements and the remaining elements separately

  • Answered by AI
Round 3 - HR 

(1 Question)

  • Q1. Personality based and team work based questions ,overall easy

Interview Preparation Tips

Interview preparation tips for other job seekers - just clear your basics and work on soft skills

Skills evaluated in this interview

Software Engineer Intern Trainee Interview Questions Asked at Other Companies

asked in UST
Q1. Find the average salary of employees from the given table for eac ... read more
asked in Odessa
Q2. Describe a logic to select similar styles of words in a text docu ... read more
Q3. If you prepare OOPS,Data Structures it would be better to crack b ... read more
asked in Nokia
Q4. What language you prefer? OOPS in your preferred langauage.
Q5. How often do you find yourself refactoring your code?

Interview questions from similar companies

I applied via Company Website and was interviewed before Oct 2019. There were 4 interview rounds.

Interview Questionnaire 

1 Question

  • Q1. 1. Core Java - OOPS features, Abstract classes and Interface, Inner Classes, String and Object Class, Equals and HashCode methods, Runtime and Compile time exception, Method overloading and overriding, Cus...

Interview Preparation Tips

Interview preparation tips for other job seekers - 1. Clear Core java concepts firmly
2. Basic DB queries
3. Basic Unix commands

I applied via Campus Placement and was interviewed before Nov 2021. There were 3 interview rounds.

Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Keep your resume crisp and to the point. A recruiter looks at your resume for an average of 6 seconds, make sure to leave the best impression.
View all tips
Round 2 - Aptitude Test 

Numerical and logical aptitude test

Round 3 - Coding Test 

There are 5 rounds on datastructure and algorithm

Interview Preparation Tips

Interview preparation tips for other job seekers - Nice hr and all team is suportive
Good and smoth interview experiance

What people are saying about Microsoft Corporation

View All
a software developer
1w
Just Microsoft things!
Offer sleeping pods in office Employees turn unproductive Revenue drops Fire Thousands of employees in the name of "AI Revolution"!
FeedCard Image
Got a question about Microsoft Corporation?
Ask anonymously on communities.

Interview Questionnaire 

9 Questions

  • Q1. System design of traffic signal
  • Ans. 

    Design a traffic signal system

    • Identify the number of lanes and intersections

    • Determine the traffic flow and peak hours

    • Choose appropriate sensors and controllers

    • Implement a synchronization algorithm

    • Consider emergency vehicle prioritization

    • Include pedestrian crossing signals

    • Ensure compliance with local regulations

  • Answered by AI
  • Q2. Data structures
  • Q3. Oops spring jdbc
  • Q4. Hashmap implementation
  • Ans. 

    Hashmap is a data structure that stores key-value pairs and provides constant time complexity for insertion, deletion, and retrieval.

    • Hashmap uses hashing function to map keys to indices in an array

    • Collisions can occur when multiple keys map to the same index, which can be resolved using separate chaining or open addressing

    • Java implementation: HashMap<String, Integer> map = new HashMap<>();

  • Answered by AI
  • Q5. Pattern printing code
  • Ans. 

    Printing patterns using code

    • Identify the pattern to be printed

    • Use loops to print the pattern

    • Adjust the loop variables to control the pattern

    • Use conditional statements to modify the pattern

    • Examples: printing stars, triangles, squares, etc.

  • Answered by AI
  • Q6. Common point in linked list
  • Ans. 

    Common point in linked list refers to the node where two or more linked lists intersect.

    • The common point can be found by traversing both linked lists and comparing the nodes.

    • The common point can also be found by using two pointers, one for each linked list, and moving them until they meet at the common point.

    • Examples include finding the intersection point of two linked lists or finding the loop in a linked list.

  • Answered by AI
  • Q7. Optimization
  • Q8. Synchronisation
  • Q9. Threads

Skills evaluated in this interview

Interview Questionnaire 

1 Question

  • Q1. All technical questions not even single irrelevant question.

I appeared for an interview before Nov 2020.

Round 1 - Telephonic Call 

(1 Question)

Round duration - 45 minutes
Round difficulty - Medium

The interview was with a Korean employee. 

  • Q1. 

    Bridge in Graph Problem Statement

    Given an undirected graph with V vertices and E edges, your task is to find all the bridges in this graph. A bridge is an edge that, when removed, increases the number of...

  • Ans. 

    Find all the bridges in an undirected graph.

    • Use Tarjan's algorithm to find bridges in the graph.

    • A bridge is an edge whose removal increases the number of connected components.

    • Check for bridges by removing each edge and checking the number of connected components.

    • Return the edges that are bridges in non-decreasing order.

  • Answered by AI
Round 2 - Video Call 

(1 Question)

Round duration - 45 Minutes
Round difficulty - Medium

Interviewer was an Indian employee. 

  • Q1. 

    Longest Palindromic Substring Problem Statement

    You are provided with a string STR of length N. The goal is to identify the longest palindromic substring within this string. In cases where multiple palind...

  • Ans. 

    Identify the longest palindromic substring in a given string.

    • Iterate through the string and expand around each character to find palindromes

    • Keep track of the longest palindrome found

    • Return the longest palindrome with the smallest start index

  • Answered by AI
Round 3 - Video Call 

(1 Question)

Round duration - 45 Minutes
Round difficulty - Hard

Interviewer was an Indian employee.

  • Q1. 

    Alien Dictionary Problem Statement

    You are provided with a sorted dictionary (by lexical order) in an alien language. Your task is to determine the character order of the alien language from this dictiona...

  • Ans. 

    Given a sorted alien dictionary in an array of strings, determine the character order of the alien language.

    • Iterate through the words in the dictionary to build a graph of character dependencies.

    • Perform a topological sort on the graph to determine the character order.

    • Return the character order as a list of characters.

  • Answered by AI
Round 4 - Video Call 

(1 Question)

Round duration - 45 Minutes
Round difficulty - Hard

Interviewer was an Indian employee. 

  • Q1. 

    Problem: Ninja's Robot

    The Ninja has a robot which navigates an infinite number line starting at position 0 with an initial speed of +1. The robot follows a set of instructions which includes ‘A’ (Acceler...

  • Ans. 

    Determine the minimum length of instruction sequence for a robot to reach a given target on an infinite number line.

    • Start at position 0 with speed +1, update position and speed based on 'A' and 'R' instructions

    • For each test case, find the shortest sequence of instructions to reach the target

    • Consider both positive and negative positions for the robot

  • Answered by AI

Interview Preparation Tips

Professional and academic backgroundI applied for the job as SDE - 1 in BangaloreEligibility criteriaMust be in final yearGoogle interview preparation:Topics to prepare for the interview - Data Structures, Pointers, Trees, Graphs, Algorithms, Dynamic Programming, BacktrackingTime required to prepare for the interview - 6 monthsInterview preparation tips for other job seekers

Tip 1 : Do competitive coding in 1st and 2nd year.
Tip 2 : Practice basic questions before starting complex problem.
Tip 3 : Start doing mock interviews from the end of 5th semester. It gives a lot of confidence.

Application resume tips for other job seekers

Tip 1 : Adding competitive programming ranks add value.
Tip 2 : You should have some good project which you can explain nicely.

Final outcome of the interviewRejected

Skills evaluated in this interview

Are these interview questions helpful?

I appeared for an interview before Sep 2020.

Round 1 - Coding Test 

(1 Question)

Round duration - 120 Minutes
Round difficulty - Easy

The round was conducted in day around 3PM.

  • Q1. 

    Partition Equal Subset Sum Problem

    Given an array ARR consisting of 'N' positive integers, determine if it is possible to partition the array into two subsets such that the sum of the elements in both sub...

  • Ans. 

    The problem is to determine if it is possible to partition an array into two subsets with equal sum.

    • Use dynamic programming to solve this problem efficiently.

    • Create a 2D array to store the results of subproblems.

    • Check if the sum of the array is even before attempting to partition it.

    • Iterate through the array and update the 2D array based on the sum of subsets.

    • Return true if a subset with half the sum is found, false ot...

  • Answered by AI
Round 2 - Video Call 

(2 Questions)

Round duration - 30 Minutes
Round difficulty - Easy

The interview was preponed and was conducted at 9AM.
The interviewer was friendly and I had saw him earlier at pre-placement talk.

  • Q1. 

    Convert Sentence to Pascal Case

    Given a string STR, your task is to remove spaces from STR and convert it to Pascal case format. The function should return the modified STR.

    In Pascal case, words are con...

  • Ans. 

    Convert a given string to Pascal case format by removing spaces and capitalizing the first letter of each word.

    • Iterate through each character in the string

    • If the character is a space, skip it

    • If the character is not a space and the previous character is a space or it is the first character, capitalize it

  • Answered by AI
  • Q2. Write an SQL query to retrieve the Nth highest salary from a database.
  • Ans. 

    SQL query to retrieve the Nth highest salary from a database

    • Use the ORDER BY clause to sort salaries in descending order

    • Use the LIMIT clause to retrieve the Nth highest salary

    • Consider handling cases where there might be ties for the Nth highest salary

  • Answered by AI
Round 3 - Video Call 

(1 Question)

Round duration - 30 Minutes
Round difficulty - Easy

This round was conducted 15mins after 1st round.

  • Q1. 

    Remove the Kth Node from the End of a Linked List

    You are given a singly Linked List with 'N' nodes containing integer data and an integer 'K'. Your task is to delete the Kth node from the end of this Lin...

  • Ans. 

    Remove the Kth node from the end of a singly linked list.

    • Traverse the list to find the length 'N'.

    • Calculate the position of the node to be removed from the beginning as 'N - K + 1'.

    • Remove the node at the calculated position.

    • Handle edge cases like removing the head or tail of the list.

    • Update the pointers accordingly after removal.

  • Answered by AI

Interview Preparation Tips

Professional and academic backgroundI completed Information Technology from National Institute of Technology, Raipur. I applied for the job as SDE - 1 in BangaloreEligibility criteria7 CGPAOracle interview preparation:Topics to prepare for the interview - Computer Networks, SQL, DBMS, Data Structures, Algorithms, OS, OOPSTime required to prepare for the interview - 6 monthsInterview preparation tips for other job seekers

Tip 1 : Do Competitive Coding
Tip 2 : Learn at least 1 framework
Tip 3 : Build interest in computers

Application resume tips for other job seekers

Tip 1 : Be well informed of everything you mention in your resume
Tip 2 : Mention competitive coding achivements in your resume(if any)

Final outcome of the interviewRejected

Skills evaluated in this interview

I applied via LinkedIn and was interviewed in May 2021. There were 4 interview rounds.

Interview Questionnaire 

1 Question

  • Q1. Java concepts in details,Java coding questions, Selenium web driver ,Few of Manual testing concepts, Testscenario writing, Test Frameworks

Interview Preparation Tips

Interview preparation tips for other job seekers - Prepare coding in any language well.solve leetcode/hackerrank.

I applied via Company Website and was interviewed in Dec 2020. There was 1 interview round.

Interview Questionnaire 

1 Question

  • Q1. They asked to calculate time complexity of any algorithm
  • Ans. 

    Time complexity measures the amount of time an algorithm takes to complete based on input size.

    • Time complexity is expressed using Big O notation (e.g., O(n), O(log n)).

    • O(1) indicates constant time, e.g., accessing an array element.

    • O(n) indicates linear time, e.g., iterating through an array.

    • O(n^2) indicates quadratic time, e.g., nested loops through an array.

    • O(log n) indicates logarithmic time, e.g., binary search in a...

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - Practice is the only silver bullet to crack any interview!
Do coding of problem on notepad. Refer DS, ALGO related problem from GeeksOfGeeks site.

And 1 more thing coding is an art and please do not mug up the code, just try to understand the tricks, logic and solution and use those tricks and solution to solve any coding problem.

Do practice, Do practice and Do practice....nothing else

Microsoft Corporation Interview FAQs

How many rounds are there in Microsoft Corporation Software Engineer Intern Trainee 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 HR.
What are the top questions asked in Microsoft Corporation Software Engineer Intern Trainee interview?

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

  1. Given a binary tree, return false if there exists any node such that it has two...read more
  2. Remove duplicate characters from a string efficient...read more
  3. convert roman to numer...read more

Tell us how to improve this page.

Overall Interview Experience Rating

4.5/5

based on 2 interview experiences

Difficulty level

Moderate 100%

Duration

2-4 weeks 100%
View more

Interview Questions from Similar Companies

Google Interview Questions
4.4
 • 899 Interviews
Oracle Interview Questions
3.7
 • 895 Interviews
Zoho Interview Questions
4.2
 • 540 Interviews
Amdocs Interview Questions
3.7
 • 533 Interviews
SAP Interview Questions
4.2
 • 291 Interviews
Adobe Interview Questions
3.9
 • 248 Interviews
Salesforce Interview Questions
4.0
 • 234 Interviews
24/7 Customer Interview Questions
3.5
 • 179 Interviews
View all

Microsoft Corporation Software Engineer Intern Trainee Reviews and Ratings

based on 5 reviews

4.5/5

Rating in categories

4.8

Skill development

4.9

Work-life balance

4.4

Salary

3.6

Job security

4.9

Company culture

4.4

Promotions

4.6

Work satisfaction

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

₹24.9 L/yr - ₹44 L/yr

Senior Software Engineer
1.4k salaries
unlock blur

₹37.5 L/yr - ₹75.7 L/yr

Software Engineer2
1.2k salaries
unlock blur

₹33 L/yr - ₹60 L/yr

Software Developer
1.1k salaries
unlock blur

₹23.9 L/yr - ₹40 L/yr

Support Engineer
608 salaries
unlock blur

₹14.4 L/yr - ₹24.7 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