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 2504
Q:

How To Open Outlook Explorer in VB Code?

Answer

Once can use the Shell function to call any Aplication in VB 6.0. For Outlook Express one can use, Shell (msimn.exe)

Report Error

View answer Workspace Report Error Discuss

0 2497
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 2411
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 2359
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 2347
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 2345
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 2302
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 2301