ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  ASP.NET
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions
 C Sharp interview questions  C Sharp Interview Questions
 ASP.NET interview questions  ASP.NET Interview Questions
 VB.NET interview questions  VB.NET Interview Questions
 COM+ interview questions  COM+ Interview Questions
 ADO.NET interview questions  ADO.NET Interview Questions
 IIS interview questions  IIS Interview Questions
 MTS interview questions  MTS Interview Questions
 Crystal Reports interview questions  Crystal Reports Interview Questions
 BizTalk interview questions  BizTalk Interview Questions
 Dot Net interview questions  Dot Net Interview Questions
 Exchange Server interview questions  Exchange Server Interview Questions
 SharePoint interview questions  SharePoint Interview Questions
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions
Question
From the given paragraph of text, write a program to match 
the strings of format “Any number of numerals followed by 
an underscore followed by any number of alphabets"
ex:123_abc
(Note:using regular expressions)
 Question Submitted By :: Brijit.khanna
I also faced this Question!!     Rank Answer Posted By  
 
  Re: From the given paragraph of text, write a program to match the strings of format “Any number of numerals followed by an underscore followed by any number of alphabets" ex:123_abc (Note:using regular expressions)
Answer
# 1
private void RegExp(string input)
{
	string s = input;
	Regex regexp = new Regex("^[0-9]*_[A-Za-z]*$");	
	if(regexp.IsMatch(input))
		Console.WriteLine("Matched");
	else
		Console.WriteLine("Not Match");
}
 
Is This Answer Correct ?    14 Yes 2 No
Kp
 
  Re: From the given paragraph of text, write a program to match the strings of format “Any number of numerals followed by an underscore followed by any number of alphabets" ex:123_abc (Note:using regular expressions)
Answer
# 2
private void RegExp(string input)
{
	string s = input;
	Regex regexp = new Regex("^[0-9]*_[A-Za-z]*$");	
	if(regexp.IsMatch(input))
		Console.WriteLine("Matched");
	else
		Console.WriteLine("Not Match");
}
 
Is This Answer Correct ?    3 Yes 1 No
Thanvir
 
 
 
  Re: From the given paragraph of text, write a program to match the strings of format “Any number of numerals followed by an underscore followed by any number of alphabets" ex:123_abc (Note:using regular expressions)
Answer
# 3
both the above answers are wrong....... Reg Exp should say..

new Regex("[0-9]*_[A-Za-z]*");	

^ and $ mean beginning and end of a line... and the question
is to select that particular combination no matter where
they are present...... need not be entire line.
 
Is This Answer Correct ?    2 Yes 0 No
Raghuram
 
  Re: From the given paragraph of text, write a program to match the strings of format “Any number of numerals followed by an underscore followed by any number of alphabets" ex:123_abc (Note:using regular expressions)
Answer
# 4
Raghuram is right and his regex is 100% correct. The other 
2 answers also have a string which does nothing:

string s = input;

so it is not necessary.
 
Is This Answer Correct ?    1 Yes 0 No
Pio
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
what is the jit? what is the type of jit and purpose of it>  2
If Asp Dot Application is stateless what happened? during designing TCS3
Can you explain the difference between an ADO.NET Dataset and an ADO Recordset? HCL3
how we deploy the asp.net 2.0 application Logistics1
Difference between application and session ? Satyam5
# What is the transport protocol you use to call a Web service?  1
what are the differences between windows services and web services? Tech-Mahindra3
How would you implement inheritance using VB.NET/C#?  2
What property is used on the datatable to indicate a conflict after an update? a) HasConflict b) HasError c) HasCollision d) HasDataError Syntax-Softtech1
You are creating a Web site for Your company. You receive product lists in the form of XML documents. You are creating a procedure to extract information from these XML documents according to criteria that your users will select. When a user makes a request, you want the results of these requests to be returned as quickly as possible. What should you do? A . Create an XmlDataDocument object and load it with the XML dat Use the DataSet property of the object to create a DataSet object. Use a SQL SELECT statement to extract the requested dat B . Create an XmlDataDocument object and load it with the XML data. Use the SelectNodes method of the object to extract the requested data. C . Create an XPathDocument object and load it with the XML data. Call the CreateNavigator method to create an XPathNavigator object. Call the Select method of the XPathNavigator object to run an XPath query that extracts the requested data. D . Create an XmlReader object. Use the Read method of the object to stream through the XML data and to apply an XPath expression to extract the requested data. Syntax-Softtech1
what is pagination in asp.net ? Netsweeper1
can we place the same DLL in debug folder two times? (without using strong name ) TCS7
Can we throw exception from catch block ? Accenture3
I am using a range validator and want to use dd mm yyyy format for accepting dates. I get a fairly generic "can't do that" type exception when I use this format for setting the minValue or maxValue properties for the range validator. How can I force it to accept my format? FutureTech1
What is CTS, CLS and CLR ? TCS4
What is difference b/w Data Grid in ASP.Net 1.1 and Gridview in 2.0 IntraLogic9
Should user input data validation occur server-side or client-side? Why? NIC3
Have you used microsoft dataaccess blocks and Exception blocks? Microsoft1
Diff B/W user control and server control  3
When does the application ONEND event handler fire? C-Squared-Systems1
 
For more ASP.NET Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com