Microsoft Interview Questions

Q:

What is NTFS?

Answer

NTFS is short for New Technology File System. It is the standard file system that is being used by operating systems starting from Windows NT, Windows 2000, Windows XP, and even the newer versions like Vista and 7. It was originally designed to have a better performance on file storage and retrieval under the Windows NT family.

Report Error

View answer Workspace Report Error Discuss

0 2718
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 2685
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 2667
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 2528
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 2494
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 2492
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 2456
Q:

What is IUnknown and what are its three parts?

Answer

IUnknown as an interface of a COM object. Every COM object has to support IUnknown, besides optionally adding other interfaces.


IUnknown is made of QueryInterface, AddRef and Release.

Report Error

View answer Workspace Report Error Discuss

0 2451