Input:http://www.allinterview.com/forms/questionform.php
Output:http://www.allinterview.com/forms/questionform
Write c# program to get the above desired output for the given
Input.....

Answers were Sorted based on User's Feedback



Input:http://www.allinterview.com/forms/questionform.php Output:http://www.allinterview.com/forms/q..

Answer / prem ranjan

string input="http://www.allinterview.com/forms/questionform.php";

string output= input.Substring(0, input.LastIndexOf("."));
Console.WriteLine(output);

Is This Answer Correct ?    2 Yes 0 No

Input:http://www.allinterview.com/forms/questionform.php Output:http://www.allinterview.com/forms/q..

Answer / konangiaparna

string output = input.Substring(0, input.LastIndexOf("."));

Is This Answer Correct ?    0 Yes 0 No

Input:http://www.allinterview.com/forms/questionform.php Output:http://www.allinterview.com/forms/q..

Answer / mallikarjuna016

string input="http://www.allinterview.com/forms/questionform.php";

output= input.Substring(0, input.LastIndexOf(".") + 1);

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More ASP.NET Interview Questions

What are Caching techniques in .NET

0 Answers   Microsoft,


How will you load dynamic assembly? How will create assesblies at run time?

0 Answers  


What is the difference between Hash table and Array list?

0 Answers  


What is the difference between c# and .net?

0 Answers  


What is difference Between Authentication and authorization?

0 Answers   MCN Solutions,






Is react a template engine?

0 Answers  


2. Why did you choose this career?

2 Answers   Schwartz Oil, Swatz Oils,


what is shared assembly?

2 Answers   Microsoft,


How would you turn off cookies on one page of your website?

0 Answers  


which is better arraylist or dictionary?

2 Answers  


How do we sort the data from a dataset?

0 Answers  


What is in a session cookie?

0 Answers  


Categories