Microsoft Interview Questions

Q:

What is dual-boot system?

Answer

Dual boot system allows you to install and maintain two operating systems on a single PC. The purpose for this is to maintain compatibility between older and newer software. For example, there maybe programs that only work under Windows 98, therefore having a dual boot system between Windows 98 and another version like Windows XP is a good choice.

Report Error

View answer Workspace Report Error Discuss

0 2593
Q:

In Windows XP , what does the letter XP stands for?

Answer

The letters XP actually stands for eXPerience. It was designed as an enhancement of Windows 2000, with a totally different and more attractive user interface/console.

Report Error

View answer Workspace Report Error Discuss

0 2574
Q:

What is plug and play ?

Answer

Plug and Play is a technology wherein hardware components that are installed on PCs using Microsoft operating system are immediately recognized and made usable. This means that the drivers necessary to make it work are already available on the operating system package.

Report Error

View answer Workspace Report Error Discuss

2 2536
Q:

Write an algorithm to separate all ones & zeroes in an array.

Answer

1. Have two indexes pointing to two ends of array, say i and j.


2. Approach towards each other with a check condition that they dont cross each other.


3. Each iteration of while loop, swap the numbers pointed by two indexes when num[i] index number is not equal to 1.


 


void sort()


{


     int a[]={1,0,0,0,1,1,0,1,0,1,0,0,1,0};


     int i=0;


     int j=13;


     int temp;


      while(j>i)


     {


          if(a[i]==1)


                 i++;


          if(a[j]==0)


                 j--;


          if(a[i]==0)


         {


                 temp=a[i];


                a[i]=a[j];


                a[j]=temp;


         }


     } 


     for(i=0;i<14;i++)


             Console.Write(a[i]+", ");


}


Output: 1,1,1,1,1,1,0,0,0,0,0,0,0

Report Error

View answer Workspace Report Error Discuss

0 2420
Q:

How would you reverse a doubly-linked list?

Answer

This problem isn't too hard. You just need to start at the head of the list, and iterate to the end. At each node, swap the values of pNext and pPrev. Finally, set pHead to the last node in the list.


Node * pCurrent = pHead, *pTemp;


while (pCurrent)


{


  pTemp = pCurrent->pNext;


  pCurrent->pNext = pCurrent->pPrev;


  pCurrent->pPrev = temp;  


  pHead = pCurrent;


  pCurrent = temp;


}

Report Error

View answer Workspace Report Error Discuss

0 2406
Q:

What are the rules which should be followed while naming a variable in VB?

Answer

Some of the rules which should be followed while naming a variable in VB are as follows: 


1) Characters should be less than 255.


2) Space between characters should be allowed.


3) A variable should begin with a number.


4) Period may not be permitted.

Report Error

View answer Workspace Report Error Discuss

0 2392
Q:

Which programming language was removed from the Visual Studio family when VB.net was released?

Answer

Visual Foxpro was part of Visual Studio 6.0.


It was excluded in the .Net version and was released as an independent programming language.

Report Error

View answer Workspace Report Error Discuss

0 2368
Q:

What files are important in a bootable Windows XP operating system?

Answer

There are four important files in order to make a bootable Windows XP operating system. These are Ntldr, Ntdetect, Boot.ini and Ntfs.sys

Report Error

View answer Workspace Report Error Discuss

0 2352