Microsoft

Page 3 of 8 for Microsoft Interview Questions and Tips

Showing 21 - 30 of 76 interviews

21

Microsoft Software engineer internship interview

, 733 views
Girish Raguvir JFresherSelected
Application
I was interviewed on-campus at IIT Madras for Software engineer role at Microsoft
Interview Process
Test Technical Interview
Round 1

Test

Duration
75 Minutes
No. of Questions
3 questions
Test Sections
  • Section 1: Coding
Interview Experience
Decent knowledge of coding was needed.Speed was of essence.
Interview Tips
Practice coding and be quick.
Round 2

Technical Interview

Interview Questions
  • Question 1: Algorithmic Coding, Testing, Databases & other CS Concepts
Interview Experience
I had 3 technical interviews.The interviewers were very friendly.It involved writing paper on code which required me to be very precise and error free.
Interview Tips
Practice coding.Practice writing code on paper and thinking out loud.
Skills

Skills Tested

  • Unit Testing
  • Implementation Of Code Using OOPS
  • Database
  • Algorithms And Data Structures
General Tips
Prepare well and be confident.
Motivation for applying
Microsoft.The company speaks
Read Full post...
22

Microsoft interview

, 29.6k views
AnonymousFresherSelected
Application
I was interviewed on-campus for Microsoft
Interview Process
Test Test Other Interview Technical Interview Other Interview
Round 1

Test

No. of Questions
50 questions
Test Sections
  • Section 1: Aptitude
Interview Experience
30 general aptitude type, 20 pseudo code type. The pseudo code type questions had no coding- just identification of error, correct o/p etc.
Interview Tips
The pseudo code type questionshad no coding- just identification of error, correct o/p etc.
Round 2

Test

Test Sections
  • Section 1: Coding
Interview Experience
Pure coding round just write code and submit (no compilation). There were three questions in this  round: Given an array and a number N,find whether there are tuples in the array with difference equal to N. Insert an element into a sorted circular linked list. Given a BST and an element N,output the leftmost node at the same level at that element in the tree.
Interview Tips
26 people were short listed from the aptitude test, out of which Iwas in the bottom 13.That meant another written test for me (which I latercame to know, was also counted as a round of interview) This test consistedof two questions: Given two linked listsrepresenting two numbers, each node containing the character representation ofa digit in the number,return a new linked lists representing their sum.Implement the strnstr()function in C from scratch. That is, find the nth occurrence of a string insidethe other, without using any library functions.
Round 3

Other Interview

Interview Questions
  • Question 1: Areas of Interest
Interview Experience
This round tried my patience! It was almost exclusively a discussionof my areas of interest. I said network security – so he went into the detailsof cryptography and attacks like buffer overflow. That went on for say 50minutes or so. After that he asked me a coding problem.The problem was to compress a string in place. Having seen thefamous string expansion in place problem many times, I promptly said run lengthencoding (i.e. compress aaaaaabbbbbccc to a6b5c3 for example). He asked me tocode it and write a few test cases for it.
Interview Tips
He asked me a coding problem.The problem was to compress a string in place. Having seen the famous string expansion in place problem many times, I promptly said run length encoding (i.e. compress aaaaaabbbbbccc to a6b5c3 for example). He asked me to code it and write a few test cases for it.This guy caught me on whatever word I uttered, which meant you need to be thoroughly prepared with whatever you say there. He knew literally everything and asked me to give ideas on weird things that he assumed I knew!
Round 4

Technical Interview

Interview Questions
  • Question 1: Tell me about yourself
  • Question 2: How were your earlier rounds
Interview Experience
This was a nice, pure problem-solving round.First, he asked me the famous “Tell me about yourself” and “How wereyour earlier rounds” questions. But trust me, they were only ice-breakers. Then he started his session. He asked me to tell him beforehand if Iknew the solution to any problem. The following were his questions:WAP to print a matrix spirally.I told him I knew the problem so he skipped it.Search for an element in arotated sorted array (of course in sublinear time!). I tried a twist to binarysearch using rotations, but he pointed out an infinite loop in my code, which Ifailed to correct! Then he changed the question to find the number of rotationsin such an array in sublinear time. This also I could only solve for distinctelements. So he went to the next question.Really nice DP problem. Givenan amount and an array containing possible coin denominations, determine thesmallest no of coins in which the amount may be formed. Assume you have infinite units of each denomination.
Interview Tips
This guy was a cool one! He focused on only the problem solving skills and was able to catch any damn error,however small, in the code absolutely quickly. He focused on the way the problem is approached, at least as much as on whether one gets the solution.
Round 5

Other Interview

Interview Questions
  • Question 1: About Internship
Interview Experience
This was the hardest and best round. The interviewer was a finalround specialist!First, he asked me about my internship, which I explained to him. Hediscussed it for hardly 10 minutes.Then he started his attack! Even this guy told me that if I knew aquestion, I should ask him to skip it. There were three questions here:Given a linked list, swap itsnodes pair-wise. This is not so simple as it looks, trust me. It has more edgecases than apparent and was a true test of pointer manipulation.Given an array, bring all itsdistinct elements to the top in whatsoever order; the rest of the array is notimportant. First I suggested in O(n) space. Then he asked me to do it withoutextra space. I needed a sorted array for that, which he asked me to assume.Then it is solvable under the required conditions.Given a matrix, find an elementthat is max in its row and min in its col. However, he said in the end, thiswas not the question. The actual question was whether there can be more thanone such element in the matrix, assuming all elements are distinct. Wrote a small proof that there cannot.
Interview Tips
1.One is expected to really know to code. Must have a good understanding of pointers and the ability to manipulate them quickly.2.These guys focus a lot on data structures, especially the basic ones like linked lists and binary trees. I felt these are the topics with max weightage (just my personal opinion!).3. Again my personal opinion:Rather than study many problems from various sites, one should try to solve them, even if a few, on one’s own.
Skills

Skills Tested

  • Technical Skills
Skill Tips
1.One is expected to really know to code. Must have a good understanding of pointers and the ability to manipulate them quickly.     2.Again my personal opinion: Rather than study many problems from various sites, one should try to solve them, even if a few, on one’s own.
General Tips
These guys focus a lot on data structures, especially the basic ones like linked lists and binary trees. I felt these are the topics with max weightage (just my personal opinion!).
Read Full post...
23

Microsoft Software engineer internship interview

, 7.5k views
Mohd AzharuddinFresherSelected
Application
I was interviewed on-campus at NIT Bhopal for Software engineer role at Microsoft
Interview Process
Test Test Test Technical Interview HR Interview
Round 1

Test

Duration
30 Minutes
No. of Questions
15 questions
Test Sections
  • Section 1: MCQ
Interview Experience
Output questions
Interview Tips
focus on basics
Round 2

Test

Duration
60 Minutes
No. of Questions
2 questions
Test Sections
  • Section 1: Coding
Interview Experience
Two coding problems in one hour,on Cocobues.com

1. Given two arrays of numbers. The numbers are from 0-9 you have two maximize the first array by using the elements from the second array.
the elements can be used only once.
e.g. arr1[]={5,2,3,6,7};
arr2[]={9,2,8,4,5};
You should output the modified arr1 as {9,8,5,6,7}

2.Given a matrix of characters and a word.
you have to count the number of occurences of that word in that matrix. you can move to any of the eight valid directions from current position.
e.g. word="HELLO";
matrix[][5]={ {'H','E','L','L','O'},
{'E','H','E','A','B'},
{'L','L','O','C','D'}};
output should be : 5
Interview Tips
DO AS MUCH AS PRACTICE
Round 3

Test

Duration
40 Minutes
No. of Questions
1 questions
Test Sections
  • Section 1: Elimination Round
Interview Experience
One Coding question was given to all the students ,You have to code and explain it.
You are given an string as input which represents a path. You have to normalize that path inplace(NO EXTRA SPACE).
e.g.
input : "\a\b\c\..\..\file.txt"
output: "\a\file.txt"
Hint: Double dot(..) means you have to skip the previous parent.
It was on paper.
Round 4

Technical Interview

Interview Questions
  • Question 1: You have a Binary tree having numbers>=0 and a numeber N. Print all downwards paths from any node having the sum of elements equal to N.
Interview Experience
The interviewer was very nice that was an amazing experience.
Interview Tips
Be confident and relaxed.
Round 5

HR Interview

Interview Questions
  • Question 1: You have a cuboid (m*n*p) each block of the cuboid is having a metallic ball. Now we are passing X-ray from front face and getting a bool matrix1 of m*p the elements are set if there is a black spot.(as we are passing X-ray) and another matrix2 of n*p by passing X-ray from right face. Now you have to print the co-ordinate (i,j,k) where mettallic balls are present. Is it possible to get the accurate result from given data or you need more data. If you need more data then what data you need ?
Interview Experience
Again the interviewer was very nice. Firstly he asked me what i have done in technical till that time.
After the interview was over he looks impressed.
Interview Tips
Don't see what others are doing . Take your time and try to short out the correct solution.
Skills

Skills Tested

  • Algorithm
  • Coding Skills And Knowledge On Data Structures
Resources

Preparation materials

Books
  • Let Us C : Yashwant Kanetkar,
  • C++ by E-balaguruswami,
General Tips
Do coding as much as you can
Motivation for applying
It comes to our institute, and the name Microsoft is sufficient for motivation.
Funny Moments
The journey to Microsoft IDC Hydrabad was very beautiful.
Read Full post...
24

Microsoft Software engineer internship interview

, 667 views
Rahul RFresherSelected
Application
I was interviewed on-campus at IIT Madras for Software engineer role at Microsoft
Interview Process
Test Group Discussion
Round 1

Test

Duration
3 Minutes
No. of Questions
75 questions
Test Sections
  • Section 1: Coding contest
Interview Experience
Questions on linked list, basic logic and an adhoc math problem. Questions were very doable, but time maybe the only constraint
Interview Tips
Manage time, get used to fluently coding in C Java or C++. You wont have access to Internet, man pages during contest so practice coding g without them.
Round 2

Group Discussion

Resources

Preparation materials

Books
  • C By Kerninghan And Ritchie,
  • Introduction To Algorithms : Thomas H. Cormen,
Videos
  • Data Structures And Algorithm From YouTube,
Read Full post...
25

Microsoft Software development engineer interview

, 29.7k views
Abhishek MishraFresherSelected
Application
I was interviewed on-campus at IIT Madras for Software development engineer role at Microsoft
Interview Process
Test coding Technical Interview HR Interview Other Interview
Round 1

Test

Duration
30 Minutes
No. of Questions
15 questions
Test Sections
  • Section 1: C
  • Section 2: C++,
  • Section 3: General tech
  • Section 4: Quants
Round 2

coding

Interview Experience
Write 2 functions(not entire programs) in C language on cocubes.com platform Q.1 Find an element in a rotated sorted array in O(log n) time. For ex. Find 4 in 7 8 9 1 2 4 5 A binary search technique could also do it in O(log n). They wanted an optimized binary sort and so I felt, the question wasn't clear enough. Didn't attempt it and told the interviewer the reason. Q.2  With a parent pointer in every node of a binary tree, find the in order successor of a given node. Solved only the second, but I ensured it could work on all boundary cases. Results of round 2 were declared on the day Microsoft visited the campus.
Round 3

Technical Interview

Interview Questions
  • Question 1: how I would have attempted the first question in round 2
  • Question 2: Asked me my interests?
  • Question 3: How would you find least common ancestor of two nodes in a binary tree?
  • Question 4: How would you optimize it for a binary search tree?
  • Question 5: Find a string in a 2D character matrix in any order(horizontal/vertical/diagonal)
  • Question 6: How would you identify two nodes that have been swapped in a binary search tree?
Interview Experience
How would you find least common ancestor of two nodes in a binary tree? I said you could use two stacks, push nodes as you traverse and then compare when you are popping. He asked me to explain on the whiteboard. I did, but realised there was a problem, I looked at him and he was there, smiling as wide as he could. I asked for 2 minutes, and then gave him a better approach with a stack and a hash table. He seemed satisfied
Interview Tips
Keep talking while you are solving a problem/writing code. This keeps him informed of your progress and if you are lucky, you might receive some help. He repeatedly had been asking me stand up and sit to explain everything on the board. So eat adequately on any interview day.
Round 4

HR Interview

Interview Questions
  • Question 1: Asked me to write a function for reversing characters in a string.
  • Question 2: Asked me to explain my projects.
  • Question 3: a few HR questions about family, achievements, why Microsoft, future pla
Interview Experience
Asked me to write a function for reversing characters in a string and left the room. I wrote  4 lines of code to swap characters from ends. A vague question it was, he returned and explained what he wanted later. It was his fault but I politely apologized for not understanding the question. Remember: The boss is always right!

He wanted the string to be reversed alphabetically. So if it was "adecb", it should become "edcba". I wrote code. He had a 2-second glance at it, and then asked for an explanation
Round 5

Other Interview

Interview Questions
  • Question 1: Creative Interview
Interview Experience
A happy two hour discussion-cum-interview on designing another Facebook, all data structures, algorithms that can be used and features, optimisations that could be added. I asked him a few conceptual questions related to his subjects of interest and he answered delightfully. He gave me his email ID to contact him for more knowledge and for a second I missed my heartbeat, coz that might mean he won’t meet again. But results were announced and there he was, shaking my hands with a gleaming smile.
Skills

Skills Tested

  • C
  • C++
  • Data structures
  • Algorithms
General Tips
Overall, it was a great experience interacting with them. Seemed to be a nice bunch of interesting people, looking for intellectual conversations with students.
Read Full post...
26

Microsoft Software developer interview

, 22.2k views
AnonymousFresherSelected
Application
I was interviewed on-campus for Software developer role at Microsoft
Interview Process
Technical Interview Puzzle Interview
Round 1

Technical Interview

Interview Questions
  • Question 1: Given an integer array, find all (a,b,c) such that a^2 + b^2 = c^2 Solution is O(n^2) Write code and testcases.
  • Question 2: Find the height og a binary tree without recursion. Write code and testcases.
  • Question 3: Given a bit pattern (in an integer INPUT), and another pattern (in an integer PATTERN, with a number n signifying the number of trailing bits to be considered as pattern - remaining bits are zero. Example: PATTERN=00000110, n=3 represents "110") Find the number of occurences of PATTERN inside INPUT
  • Question 4: Given a pointer to the root of a binary tree, find whether the left and right subtrees are mirror images of each other.
  • Question 5: . Given a string INPUT, find the longest repeating substring.
  • Question 6:
Interview Experience
Given a string INPUT, find the longest repeating substring.

Example: if INPUT = ababcbacabc, answer would be abc.

Write testcases.

The most important thing here is that you're supposed to ask questions to resolve ambiguities - the substrings cannot be overlappping.

Example: If INPUT = seattle, the expected answer is t, not e.

Example: If INPUT = ababa, answer = ab, not aba.

All such corner-cases must be considered.
Screening interview:

I had a single screening interview for conversion from Microsoft IDC to Redmond. It was more like a chat - in the initial 10-15 minutes atleast.

The first 10-15 minutes was about:

what i learnt at Microsoft
What was my project about
What did I learn from my project (my answer to this included both, learning in technical sense and personal development.
“Why test?” (IDC had selected me as an SDET, and that’s the profile they’d forwarded)

After that he asked what I liked to do (problem solving etc.) On saying “solving new and challenging problems”, he gave me the question:

Given 3 consecutinve numbers, and that the first and third are prime, is it always true that the middle number is divisible by 3 ? Prove your answer.
This question was majorly to check if I can think and zero in on the solution and the process.

Then, my second (and easy) question was to

Write a code for tokenizing a character stream. The stream starts and ends with a delimiter.
Example: Input: “<abc def msft pr-st>”
Here, the start of the string is denoted by ‘<’, and end by ‘>’.
The expected output is to return(or print) list of individual words. ie: “abc, def, msft, pr-st” (four words)

This is a ridiculously easy thing to code - but they weren’t interested in code. What he wanted to see was:
1. Approach
2. If the logic is sturdy enough and considers all test cases
2. Design choices and decision making (the whole Q revolved around this) - I made a list of test cases that the code should consider. In each case, there is a decision to be made - he wanted to see why I decided what I decided.
Example:
Input: “ a<<abc cd>efg>”
This obviously is something where a normal program would fail. My logic to this was: Discard everything before the first start delimiter, after the first end delimiter.
So my output: “abc, cd”

That was all.
Interview Tips
Mine was a PrePlacement interview process - doesnt differ much from the normal campus, but competition is awesome.
Round 2

Puzzle Interview

Interview Questions
  • Question 1: 2 magnesium strips and a matchbox are given. Each burns in 60 minutes, with no relation between length burnt and time. Calculate 45 min.
  • Question 2: You have 3 baskets- one containing apples, one oranges and the last containing both. All baskets are incorrectly labelled.You can pick *one* fruit from *any one* basket and are supposed to correctly label all of them.
  • Question 3: You're in the center of a circular pond, with an *intelligent* lion at the circumference - intelligent implies you can't trivially fool it. Given that, your swimming speed = x, lion's running speed on land = 4x, your running speed on land = 4x, Devise an escape strategy so that you can safely escape. Is escape possible?
Skills

Skills Tested

    Read Full post...
    27

    Microsoft Software developer internship interview

    , 688 views
    RevanthFresherSelected
    Application
    I was interviewed on-campus at IIT Madras for Software developer role at Microsoft
    Interview Process
    Test
    Round 1

    Test

    Duration
    75 Minutes
    No. of Questions
    3 questions
    Test Sections
    • Section 1: Delete alternate nodes in a circular linked list
    Interview Experience
    exam was easy.
    Interview Tips
    Be good in C programming
    Skills

    Skills Tested

    • Algorithms And Data Structures
    Resources

    Preparation materials

    Books
    • Introduction To Algorithms (Cormen),
    General Tips
    Should be good in atleast c or c++
    Motivation for applying
    The accomodation and facilities
    Funny Moments
    Interviews are not funny.
    Read Full post...
    28

    Microsoft N/A interview

    , 3.9k views
    PoojaFresherSelected
    Application
    I was interviewed on-campus at N/A for N/A role at Microsoft
    Interview Process
    Test Group Discussion Technical Interview HR Interview Other Interview
    Round 1

    Test

    Duration
    75 Minutes
    No. of Questions
    70 questions
    Test Sections
    • Section 1: TechTalks
    • Section 2: Basic Computer Science
    • Section 3: Verbal and Communication Skills
    Round 2

    Group Discussion

    Duration
    10 Minutes
    Group Discussion Topic
    TechTalks
    Interview Tips
    Understand and analyze the scenario.
    Round 3

    Technical Interview

    Interview Questions
    • Question 1: Tell about yourself.
    • Question 2: What is Networks?
    • Question 3: Explain the seven layers in networks.
    • Question 4: Tell about network layer working.
    • Question 5: What is TCP and UDP?
    • Question 6: As a user I will give you data and as a application layer what you will do with the data?
    • Question 7: Tell me about IP address and their classificstion.
    • Question 8: Name some private IP address.
    • Question 9: What is OS?
    • Question 10: Tell me how memory management is done by OS?
    • Question 11: What is logical address and physical address?
    • Question 12: Explain HTTP, SMTP, FTP, SNMP.
    • Question 13: What is DHCP? How and where is it used?
    • Question 14: Name the OS you are familiar with?
    • Question 15: What is para virtualization?
    • Question 16: You have learnt C, JAVA. Then why you want to join as support engineer? Any idea about working as developer?
    • Question 17: What you think you can do as a support person?
    • Question 18: Are you ready to work even during night shifts?
    • Question 19: Assume a scenario - You are working in GTSC and I am your client calling you saying mam I couldn’t access xyz website. How will you help me?
    • Question 20: If Microsoft GTSC and Microsoft Developer, both coming to your college which will you prefer? (Note: Answer Carefully))
    • Question 21: Do you have any questions?
    Interview Tips
    Talk continuously about the topic without stopping and with the confidence.
    Round 4

    HR Interview

    Interview Questions
    • Question 1: How are you doing?
    • Question 2: How are you feeling now?
    • Question 3: Tell about your parents and siblings.
    • Question 4: Tell about your friends.
    • Question 5: Where do you stand in your class?
    • Question 6: Which is the toughest situation you faced in your college life?
    • Question 7: What was the moment you had felt that you could have done better?
    • Question 8: If I ask your achievements in college what will be there?
    • Question 9: Tell me your experience for the four years in this college.
    • Question 10: Tell me some more achievements of yours.
    • Question 11: Do you have any questions for me?
    Interview Tips
    Be Confident and answer the questions in casual manner without hesitation.
    Round 5

    Other Interview

    Interview Questions
    • Question 1: Tell me about yourself.
    • Question 2: Tell me about your mom, dad and brothers?
    • Question 3: What all the tech talks you have attended? Was it useful?
    • Question 4: How you prefer to learn if I give you something to learn?
    • Question 5: Tell me about the support engineer video we showed in the preplacement and your view about the video?
    • Question 6: Tell me your favorite techtalk ? Why is it your favorite?
    • Question 7: How will you explain your favorite techtalk topic to a layman?
    • Question 8: Are you aware of the shifts in the company?
    • Question 9: What is the role of the post which your are to be hired?
    • Question 10: Are you OK with night shifts?
    • Question 11: Will your parents allow you for it?
    • Question 12: You have got a very good CGPA. Why don't you go for higher studies?
    • Question 13: Will your parents trust you and allow to Bangalore?
    • Question 14: Do you have any questions for me?
    Interview Tips
    Be confident with your answers.
    Read Full post...
    29

    Microsoft internship interview

    , 609 views
    Rahul KejriwalFresherSelected
    Application
    I was interviewed on-campus at IIT Madras for Microsoft
    Interview Process
    Test Technical Interview
    Round 1

    Test

    Duration
    75 Minutes
    No. of Questions
    3 questions
    Test Sections
    • Section 1: Online Round
    Interview Experience
    Simple questions to test coding skills. Pretty straightforward.
    Interview Tips
    You can use only C, C++, and Java. Make sure you can code and debug fast in this round. Try to do all 3 to go directly to the interview.
    Round 2

    Technical Interview

    Interview Questions
    • Question 1: Implement atoi()
    • Question 2: Delete node from singly linked list given only node address(head not given)
    • Question 3: Find largest profit that can be made from buying and selling a stock once given 30 days price info.
    • Question 4: Given a 2n element array with n odd and n even nos, modify it so that all even indices have odd nos while odd indices have even nos.
    Interview Experience
    3 rounds of technical interview with varied questions.
    Interview Tips
    Review data structures and algorithms. Try implementing standard functions like atoi(), strcpy() etc. with emphasis on corner cases,
    Skills

    Skills Tested

    Skill Tips
    Mostly based on conceptual understanding.
    Resources

    Preparation materials

    Courses
    • Algorithms And Datastructures,
    General Tips
    Keep cool. Interviewers are really nice. If you are stuck, tell them.
    Motivation for applying
    Great work environment. Good for writing to your CV and kickstarting your career.
    Read Full post...
    30

    Microsoft Na interview

    , 6.8k views
    NAFresherSelected
    Application
    I was interviewed on-campus at Anna University Chennai for Na role at Microsoft
    Interview Process
    Test ALGORITHM AND DATA STRUCTURE DESIGN
    Round 1

    Test

    Test Sections
    • Section 1: WRITTEN TEST
    Interview Experience
    (1)  Give the output of the following program
             int main
         {
                  char ch[]={‘1’,’2’,’3’,’4’,’5’};
                  char *p = (char *)(&ch+1);
                 char *q = &ch+1;
                printf(“%d     %c    %c”,sizeof(ch),*(p­1),*q);
            }
    (2)
     int main
    {
    double i=2.0,j=1.0,sum=0.0;
       while(i/j>0.001)
       {
           j=j+j;
           sum=sum+(i/j);
           printf("%f\n",sum);
       }
    }
    The question here is : For how many steps this while loop will run and what would be the best 
    approximate value of the sum after the loop ends .
    (3)    TOC question 
    Given a grammar 
    s­>AB
    A­> a | BaB
    B­>bbA
    Which of the following statement is false ?
    a. Every string  will be of even length .
    b. Every string  will not have three consecutive a’s .
    c. Every string will not have four consecutive b’s . 
    d.   Every string will have at least as many a’s as there are b’s 
    (4)   You are given a disk  where ‘1’ represents a occupancy of a sector and ‘0’ represents 
    vacancy of a sector  ....given a hexadecimal string DFE00454AB which represents the various 
    sectors ... find the nearest percentage of occupied sectors ?
    (5)  Find the output 
    int arr[2][3]={{1,2,3},{4,5,6}};
    int (*ptr)[3]=&a[0];
    printf("(%d,%d)",(*ptr)[1],(*ptr)[2]);
    ptr+=1;
    printf("(%d,%d)",(*ptr)[1],(*ptr)[2]);
    Will this program compile properly or will end in segmentation fault ??
    (6) 
    double full(double a)
    {
        return (int)(a+0.5);
    }
    does this always work??
    (7) int x=123,y=231;
        int t=0;
        int l;
        l=x^y;
        while(l)
        {
            t++;
            l&=l­1;
        }
        printf("%d",t);
    (8) char str[80];
          strcpy(str,"junk");
          scanf("%[^india]",str);
          printf("%s",str);
              What will be the output of this code snippet if the given input is “Gujarat”?
      (9) Given a inorder traversal eg 1 2 3 4 5 6 7 8 9 , Check which of the following pre order 
    traversal will it return .
    a. 1 6 3 2 7 8 4 9
    b. 6 7 3 8 1 9 2 7
    c, 2 4 6 8 1 3 5 7 
    d. 1 3 5 7 2 4 6 8 
    (10)     main()
    {
    int j=12,i=15;
    i*=j­2 ;
    j&=j­1;
    printf(“%d %d”,i,j);

              Write the output.
    Round 2

    ALGORITHM AND DATA STRUCTURE DESIGN

    Interview Experience
    1- Find gcd of 2 numbers U & V in O(log UV)^2 .
    2.   Test cases for finger print reader say in a laptop to login . Here you can swipe your finger to 
    have a secured login . 
         eg . I will swipe my finger and the system will allow me to login  .
    3. Design question......for billing , u have barcode, barcode number,item price, taxes, discounts 
    for items (some criteria were given and u have to  design an also for calculating discount) and 
    then finally compute Net price .
    State advantages and disadvantages of any alternative solutions..... 
    Calculating discount :
    a.) If you buy X quantity of the item P , then you can buy other item Q for free (X,P,Q are 
    specified).
    b.)If you buy any item P for price X , then you can buy other item Q for free (X,P,Q are 
    specified).
    c) If there are multiple discounts available then apply all those.
    Read Full post...
    SignUp/Login
    1-Step Login | Get unlimited access!
    This is the alert