0){j=(j%10)+find(j/10);printf("%d",j);}return j;}A: 3 5 7 11 132.function add a line and r . 0 members have posted answers.">
GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Placement Papers  >  Microsoft
Go To First  |  Previous Question  |  
 Microsoft  |  Question 14 of 14    Print  
Recent SDET written test questions-10/05/08
1.OUTPUT

main()
{
int j=32242,k;
k=find(j);
}
int find(int j)
{
if(j>0)
{
j=(j%10)+find(j/10);
printf("%d",j);
}
return j;
}
A: 3 5 7 11 13

2.function add a line and return input string..
what is the problem in this prog.

char* addline(char * s)
{
char buf[1024];
int l=strlen(s);
strcpy(buff,s);
buff[l]='n';
return buff;
}
A: No issue with thr program

3q.
A[M][N] is an array rotated in anti clock wise that is A'[N][M]. then mapping A[i][j]=A'[ _ ][ _ ] in terms of M,N,i,j.

note i,j are 0 indieses
A A'
1 2 3 3 6
4 5 6 2 5
1 4
A: A[i][j]=A'[j*(n-m)] [i*(n-m)]

4Q.we have 2 sorted lists. write a function to merge 2 lists keep it result list sorted. with creating a new node.

node* merge(l1,l2)

struct node{
int a;
node * next;
}

5Q. Write the test cases for the above question

6Q. Write the test cases for the following api
bool fromfiletobuffer(file *ptr, char *buffer, wood sizeofbuf)




  
Total Answers and Comments: 0 Last Update: May 10, 2008     Asked by: thadurithirumal 
  
 Sponsored Links



 

No answers are posted for this question yet.
Be the first to answer it!


 Related Questions

Computer Architecture1. 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 
View Question | Asked by : Beena

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 
View Question | Asked by : Beena

Java1. 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(); 
Latest Answer : . 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 ...
Read Answers (1) | Asked by : Beena

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. 
Latest Answer : What is ARP and how does it work?Defination:ARP (Address Resolution Protocol) is a protocol for mapping link layer addresses to a physical machine address that is recognized in the local networkWorking:When a host wants to send a packet with to a known ...
Read Answers (1) | Asked by : Beena

Algorithms and Programming1. Given a rectangular (cuboidal for the puritans) cake with a rectangular piece removed (any size or orientation), how would you cut the remainder of the cake into two equal 
Latest Answer : Let us start from 2D object!Take a rectancle R, of any size. A point that is obtained by intersecting the two diagonals be (x,y).any line that passing through this point (x,y) divides the rectangle R equally.Similarly take an another rectangle R', ...
Read Answers (12) | Asked by : Beena

PersonalityIt is best to read some website or a book for questions like these. 1. Tell me the courses you liked and why did you like them. 2. Give an instance in your life in which you were faced with 
Latest Answer : I think you should know all development and research centers across the globe. Like I dint know there is one research center in Beijing. During Lunch interview I was asked how much did I know about microsoft work and their centers. I told them about cambridge, ...
Read Answers (1) | Asked by : Beena

Puzzles, Riddles and Others0. Classic: If a bear walks one mile south, turns left and walks one mile to the east and then turns left again and walks one mile north and arrives at its original position, 
Latest Answer : WRONG !probability n that case will be = 1/2(1) + 1/2( 49/99) ...
Read Answers (13) | Asked by : Beena

1)Given two sorted linked lists list1,list2. Combine the two list into a new sorted list with our creating new nodes.-All give the test case for testing the same2)You have to count the occurances of all words in a document. You are given a method chat * GetNextWord, that returns the next word from the document.- Which datastructure can be userd to achieve this- Write a algorithm for the same- What is the order of the above algorithm
Read Answers (3) | Asked by : Jyotsna

Given two sorted single linked lists list1,list2 write a algorithm to merge the two lists again in sorted order. No new nodes should be created.- Also give all the test cases for testing this algorithm
Read Answers (1) | Asked by : reddymjr

1.OUTPUTmain(){int j=32242,k;k=find(j);}int find(int j){if(j>0){j=(j%10)+find(j/10);printf("%d",j);}return j;}A: 3 5 7 11 132.function add a line and return input string..what is the problem 


 Sponsored Links



 
Related Articles

HR Interview - Most Popular HR Interview Questions With Generic Answer Formats

Most Popular HR Interview Questions With Generic Answer Formats While it is impossible to know exactly what you will be asked during a job interview there are a number of generic questions that most companies will ask you mosgoogle In this article I will present you with some questions that are comm
 

HR Interview - How To Deal With Tricky Interview Questions

How To Deal With Tricky Interview Questions During your HR interview you will be presented with a number of questions from the interviewer The way you answer these questions will play a role in whether or not you re hired While some of these questions have obvious answers others will be tricky and t
 

Questions You Should Be Prepared For During A Job Interview

Questions You Should Be Prepared For During A Job Interview While the way you answer questions during a job interview will only play a small role in whether or not you are hired it is important to pay attention to them Going to a job interview can be stressful especially if it is a highly competitiv
 

ASP.NET Interview Questions

Microsoft ASP NET Interview Questions This article provides Microsoft Interview Questions covering Microsoft ASP NET questions For more Interview Questions Answers related to Microsoft click on links provided at the end of each question set mosgoogle Microsoft ASP NET Interview Questions 1 What is R
 

C# Interview Questions

Microsoft C Interview Questions This article provides Microsoft Interview Questions covering Microsoft C questions For more Interview Questions Answers related to Microsoft click on links provided at the end of each question set mosgoogle Microsoft C Interview Questions 1 What is indexer Where it i
 

C Interview Questions

C Interview Questions This article provides C Interview Questions For more Interview Questions Answers related to C click on links provided at the end of each question set mosgoogle C Interview Questions 1 A switch statement cannot includea constants as arguments b constant expression as argumentsc
 

DB2 Interview Questions

DB2 Interview Questions This article provides Mainframe Interview Questions covering db2 questions For more Interview Questions Answers related to Mainframe click on links provided at the end of each question set mosgoogle 1 Loading of DB2 Unload with packed Decimal’ data to Oracle envi
 

Siebel Interview Questions

Siebel Interview Questions This article provides Siebel Interview Questions For more Interview Questions Answers related to Siebel click on links provided at the end of each question set mosgoogle Siebel Interview Questions 1 What is foreign key table in Siebel 2 Why do you need Primary in MVG 3 Whe
 

JCL Interview Questions

JCL Interview Questions This article provides Mainframe Interview Questions covering JCL questions For more Interview Questions Answers related to Mainframe click on links provided at the end of each question set mosgoogle JCL Interview Questions 1 What is the advatage of coding RECFM F over RECFM F
 

IDMS Interview Questions

IDMS Interview Questions This article provides Mainframe Interview Questions covering IDMS questions For more Interview Questions Answers related to Mainframe click on links provided at the end of each question set mosgoogle IDMS 1 What is a Region 2 What is the difference between a schema and a su
 

Related Categories
Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape