Microsoft




Microsoft

Filed under:

Microsoft Placement Question Paper

Networks and Security

1. How do you use RSA for both authentication and secrecy?

2. What is ARP and how does it work?

3. What’s the difference between a switch and a router?

4. Name some routing protocols? (RIP,OSPF etc..)

5. How do you do authentication with message digest(MD5)? (Usually MD is used for finding tampering of data)

6. How do you implement a packet filter that distinguishes following cases and selects first case and rejects second case.

i) A host inside the corporate n/w makes a ftp request to outside host and the outside host sends reply.

ii) A host outside the network sends a ftp request to host inside. for the packet filter in both cases the source and destination fields will look the same.

7. How does traceroute work? Now how does traceroute make sure that the packet follows the same path that a previous (with ttl - 1) probe packet went in?

8. Explain Kerberos Protocol ?

9. What are digital signatures and smart cards?

10. Difference between discretionary access control and mandatory access control?

Java

1. How do you find the size of a java object (not the primitive type) ?

ANS. type cast it to string and find its s.length()

2. Why is multiple inheritance not provided in Java?

3. Thread t = new Thread(); t.start(); t = null; now what will happen to the created thread?

4. How is garbage collection done in java?

5. How do you write a “ping” routine in java?

6. What are the security restrictions on applets?

Graphics

1. Write a function to check if two rectangles defined as below overlap or not. struct rect { int top, bot, left, right; } r1, r2;

2. Write a SetPixel(x, y) function, given a pointer to the bitmap. Each pixel is represented by 1 bit. There are 640 pixels per row. In each byte, while the bits are numbered right to left, pixels are numbered left to right. Avoid multiplications and divisions to improve performance.

Databases

* 1. You, a designer want to measure disk traffic i.e. get a histogram showing the relative frequency of I/O/second for each disk block. The buffer pool has b buffers and uses LRU replacement policy. The disk block size and buffer pool block sizes are the same. You are given a routine int lru_block_in_position (int i) which returns the block_id of the block in the i-th position in the list of blocks managed by LRU. Assume position 0 is the hottest. You can repeatedly call this routine. How would you get the histogram you desire?

Hints and Answers

1. Simply do histogram [lru_block_in_position (b-1)] ++ at frequent intervals… The sampling frequency should be close to the disk I/O rate. It can be adjusted by remembering the last block seen in position b. If same, decrease frequency; if different, increase, with exponential decay etc. And of course, take care of overflows in the histogram.

Semaphores

1. Implement a multiple-reader-single-writer lock given a compare-and-swap instruction. Readers cannot overtake waiting writers.

Related Plament Papers and Companies

Microsoft

Microsoft Placement Question Paper Computer Architecture 1. Explain what is DMA? 2. What is pipelining? 3. What are superscalar machines and vliw machines? 4. What is cache? 5. What is cache coherency and how is it eliminated? 6. What is write back and write through caches? 7. What are different pipelining hazards and how are they eliminated. 8. What are different stages of a pipe? 9. Explain more about branch prediction in controlling the control hazards 10. Give examples of data hazards with pseudo codes. 11. How do you calculate the number of sets given its way and size in a cache? 12. How is a block found in a cache? 13. Scoreboard

Microsoft Placement Question Papers

Microsoft Placement Question Papers What? Here is a set of questions that I have with me which software guys have asked at interviews in the past, most of them are actually from Microsoft but a few have been pulled together from other places too. I have collected these from friends and would welcome any additions from you. Do send me your solutions, but the intent of this page is to kindle enough interest in you to try similar logic and programming questions. PLEASE DO NOT REQUEST ME FOR MORE SOLUTIONS! Why? I have grown up reading Martin Gardner's Scientific American columns on Mathematical Games

Mindtree Placement Question Papers

Mindtree Placement Question Papers 1. A person losses and gains 10% on selling a object for 200. ans:he losses 2. sum of 1 to 100 is divisible by 1. 1,2,4,8 2. 2 & 4 3. 2 4. none ans: 2 3. 10 consonants and 4 vowels , how many words with 3 consonants and 2 vowels? 1) 720 , 2)7200 ... complete series 4. AZX.... 5. ABCEFGIJK......( ver easy ) 6. how many nos start and end with 2 b/w 100 and 300? 7. If a sphere of dia 3 cm is melted & formed

Mascot Placement Question Papers

Mascot Placement Question Papers Sample Test Paper 1. One Nibble = ? a) 8 bits b)16 bits c) 4 bits d)32 bits Ans. (c) 2. Hexadecimal and Octal representation of 1024 ? 3. What a compiler does ? 4.What type of interface does DOS have? a) Graphical interface b) Character interface c) Symbolic interface d) None of the above Ans. (b) 5.What is the abbrevation of CPU? a) Control Processing Unit b) Central Processing Unit c) Central Programming Unit d) Control Programming Unit Ans. (b) 6. Fortran is used as a a) Scientific Language b) Business Language c) Language used in LANs d) Applications Language Ans. (a) 7.The total numberof characters in the ASCII code? a) 126 b) 256 c) 258 d) 128 Ans. (d) 8. In Windows NT- What NT stands for?

Oracle

Oracle Placement Question Paper 1. How compiler treats variables of recursive functions 2. What is orthogonal matrix? 3. Given two tables and asked 2 qns on those table , 4. One is on join and another is on NOT IN 5. Given some qns on pointers( pretty easy) 6. Given five qns on data structures like , lifo, fifo 7. Qtn on primary key 8. How NULL in sql is treated? 9. Given a doubly linked list and asked r->left->right->data ans: r->data 10. Explain const char *ptr and char *const ptr 11. Remaining i didn`t remember

  • Resources













  • Placement Papers Archives