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  >  Interview Questions  >  Microsoft
Go To First  |  Previous Question  |  Next Question 
 Microsoft  |  Question 22 of 30    Print  
1.What is difference between constant, readonly and static variables?
2.There are two arrays containing integers – Array1 and Array2. The size of Array1 is m, and Array2 is n. Both arrays are sorted in ascending order. Write a function (in any language of your choice) that will merge the two arrays into a third array which again has numbers arranged in ascending order. The function will accept two arrays as arguments and return the third, merged array?
3.Write a function in C# to implement Trim function (removing spaces only from the beginning and end of a string), without using any string class function except length. If the input is “ Trim this String “, the output should be “Trim this String”.
4.Suppose there is a function defined as:

String Reverse (String inputString)

As the name suggests, the function reverses the input string and returns the reversed string. If “abcd” is the inputString, the output will be “dcba”. What different values of the inputString will you use to ensure that the function is robust and handles all possible cases? In other words, list all the test cases for this function.


  
Total Answers and Comments: 0 Last Update: July 09, 2007     Asked by: prakash 
  
 Sponsored Links

 

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


 Related Questions

Latest Answer : exception is the runtime error ,we cant get required result . interrupt is the program provided by software or hardware which improves processor efficiency ...
Read Answers (3) | Asked by : subhashini

Latest Answer : - In the Integrated Services Digital Network (ISDN)there are two levels of service: the Basic Rate Interface (BRI), intended for the home and small enterprise, and the Primary Rate Interface (PRI), for larger users. Both rates include a number of B-channels ...
Read Answers (1) | Asked by : Ravi

View Question | Asked by : sridevi

Latest Answer : Hi,Abov answer is right. If you want to make the sepration between the HTML file and the coding file then you can use CodeBehindFile otherwise use in-Line method. It is up to choice but most of .NET users use Code Behind way while ASP users ...

What are the differences between .NET 1.1 and .NET 2.0 in terms of changes in language (C#/VB.NET) and Framework? Please do not include the differences between Visual Studio 2003 and 2005.
Read Answers (1) | Asked by : prakash

1.What is difference between constant, readonly and static variables?2.There are two arrays containing integers – Array1 and Array2. The size of Array1 is m, and Array2 is n. Both arrays are sorted in ascending order. Write a function (in any language of your choice) that will merge the two arrays into a third array which again has numbers arranged in ascending order. The function will accept two arrays as arguments and return the third, merged array?3.Write a function in C# to implement Trim
View Question | Asked by : prakash

Latest Answer : Eventhough both are giving reusability, they differ in accessibility.Web service is accessible from any system from any part of the world thru internet but shared assembly is accessible only within the same system ...

What is assembly in .NET and What do you mean by protected class always present in the same assembly? 


 Sponsored Links

 
Related Articles

ODP.NET - Working with Bind Variables together with OracleParameter

ODP NET Working with Bind Variables together with OracleParameter With the help of OracleParameter you can include bind variables within any SQL statement These bind variables are nothing but run time query parameters The values in the SQL statement are bound at run time when we use bind variables m
 

Microsoft AJAX Library - Associative Arrays

Thinking of Objects as Associative Arrays A key element in understanding JavaScript objects is understanding the notion of associative arrays which are nothing more than collections of key value pairs As a NET developer you have worked with associative arrays represented by classes such as NameValue
 

Microsoft AJAX Library - Functions as Variables

Functions as Variables In JavaScript functions are first class objects This means that a function is regarded as a data type whose values can be saved in local variables passed as parameters and so on For example when defining a function you can assign it to a variable and then call the function thr
 

C++ Static Functions

C Static Functions Static member functions have a class scope and they do not have access to the this pointer of the class When a member is declared as static a static member of class it has only one data for the entire class even though there are many objects created for the class The main usage of
 

C++ Pure Virtual Function and Base Class

C Pure Virtual Function and Virtual Base Class In this C tutorial you will learn about pure virtual function declaration of pure virtual function and virtual base class virtual base class and how to implement a virtual base class explained with examples mosgoogle center What is Pure Virtual Function
 

ERP Success cases

ERP Success cases You have probably heard a lot about ERP systems especially about their implementation and its advantages and disadvantages Here you will find that there are no unachievable targets and that every effort brings benefits These are the stories of people who found success through ERP i
 

C++ Function Passing Types

C Function Passing Types In this C tutorial you will learn about function passing types two types of arguments passing in functions passed by value  and  passed by reference are discussed here mosgoogle center The arguments passed to a function can be performed in two ways Passed
 

C++ String Representation and Handling

C String Representation and Handling In this C tutorial you will learn about string representation and handling how is string represented end string notation initializing char array character representation string literals example programe to understand the character array concept and the accessing
 

C++ Multidimensional Arrays

C Multidimensional Arrays In this C tutorial you will learn about Multidimensional arrays what is Multidimensional array how is Multidimensional arrays represented in C how to access the elements in the Multidimensional array mosgoogle center What is a Multidimensional Array A Multidimensional arra
 

C++ Standard Input Output Stream

C Standard Input Output Stream In this C tutorial you will learn about standard input stream and standard output stream explained along with syntax and examples C programming language uses the concept of streams to perform input and output operations using the keyboard and to display information on
 

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