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  >  ASP
Go To First  |  Previous Question  |  Next Question 
 ASP  |  Question 9 of 146    Print  
<%
intA = 3
sStrA = "Hello World"
sStrB = "Hello World" + intA
Response.Write sStrB
%>

  
Total Answers and Comments: 4 Last Update: August 11, 2005   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
May 28, 2005 06:46:21   #1  
kiran        

RE: <% intA = 3 sStrA = "Hello World" sStrB = "Hello World" + intA Response.Write sStrB %>
"Hello World" 3
 
Is this answer useful? Yes | No
June 03, 2005 00:58:52   #2  
Ramesha        

RE: <% intA = 3 sStrA = "Hello World" sStrB = "Hello World" + intA Response.Write sStrB %>
It will show an Runtime error Type mismatch the reason is we are trying to add a string with an integer so we have to use & for the concatenation operator
 
Is this answer useful? Yes | No
July 29, 2005 23:44:54   #3  
qqq        

RE: <% intA = 3 sStrA = "Hello World" sStrB = "Hello World" + intA Response.Write sStrB %>
error. type dismatch
 
Is this answer useful? Yes | No
August 11, 2005 09:04:16   #4  
jaya chandra muni        

RE: <% intA = 3 sStrA = "Hello World" sStrB = "Hello World" + intA Response.Write sStrB %>
Error Type: 
Microsoft VBScript runtime (0x800A000D) 
Type mismatch: '[string: "Hello World"]' 
/1.asp, line 4 

 
Is this answer useful? Yes | No


 
Go To Top


 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