Write a function which accepts list of nouns as input
parameter and return the same list in the plural form.

Conditions: i) if last letter is r then append s
ii) if word ends with y then replace it by ies
iii) call this function in main() and produce the
required output.

for eg:- if chair is input it should give chairs as output.


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Sharp Code Interview Questions

Write a program to convert postfix expression to infix expression.

0 Answers   Mind Tree,


Code for Searching for Multiple Matches with the MatchCollection Class?

0 Answers   TCS,


Write a function which accepts a sentence as input parameter.Each word in that sentence is to be reversed. Space should be there between each words.Return the sentence with reversed words to main function and produce the required output. for eg:- i/p: jack jill jung kill o/p: kcaj llij gnuj llik

1 Answers   Mind Tree,


How to Create Files by Using the FileInfo Class?

1 Answers  


How to Link Different Data Sources Together?

0 Answers  






Code for Reading and writing from a file in c#?

1 Answers  


. Write a program to print the following outputs using for loops $ $ $ $ $ $ $ $ $ $ $ $ $ $ $

3 Answers  


program for string reverse(eg:- i am boy -> boy am i)

8 Answers   Black Pepper, Infosys, Mind Tree,


how to change password in .net with c # with ado.net and also SQL server 2008 change password

1 Answers  


Event Handling in C# Triggering a Button

1 Answers  


Write a program which has a function and that function should take 2 or 3 or any number of strings and it should return the largest common prefix of all those strings. If there is no common prefix it should return an empty string. for eg:- INPUT OUTPUT glo {glory,glorious,glod} gl {glad,glow} {calendar,phone} empty string

2 Answers   Mind Tree,


How to Create a Treeview Menu in ASP.NET with C#?

1 Answers  


Categories
  • ASP.NET Code Interview Questions ASP.NET Code (46)
  • VB.NET Code Interview Questions VB.NET Code (9)
  • C Sharp Code Interview Questions C Sharp Code (51)
  • ADO.NET Code Interview Questions ADO.NET Code (8)