ALLInterview.com :: Home Page            
 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                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
   
 
Categories  >>  Software  >>  Scripts  >>  VB Script
 
 


 

 
 PHP interview questions  PHP Interview Questions
 ASP interview questions  ASP Interview Questions
 CGI Perl interview questions  CGI Perl Interview Questions
 JavaScript interview questions  JavaScript Interview Questions
 VB Script interview questions  VB Script Interview Questions
 JSP interview questions  JSP Interview Questions
 Shell Script interview questions  Shell Script Interview Questions
 Python interview questions  Python Interview Questions
 Tcl interview questions  Tcl Interview Questions
 Awk interview questions  Awk Interview Questions
 AJAX interview questions  AJAX Interview Questions
 Ruby on Rails interview questions  Ruby on Rails Interview Questions
 Scripts AllOther interview questions  Scripts AllOther Interview Questions
Question
Input = 124

output should be 124421
Please do not use any string functions/variables
 Question Submitted By :: Bibhu
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Input = 124 output should be 124421 Please do not use any string functions/variables
Answer
# 1
'Numbers can be given at run time
For i=1 to 3
s =InputBox("Enter a number : ")
x = x&s
y = StrReverse(x)
Next
MsgBox x&y
 
Is This Answer Correct ?    1 Yes 1 No
Eswar
 
  Re: Input = 124 output should be 124421 Please do not use any string functions/variables
Answer
# 2
Hi Eswar,

The catch here is to not using any vb script functions

Thanks,
Bibhu
 
Is This Answer Correct ?    0 Yes 0 No
Bibhu
 
 
 
  Re: Input = 124 output should be 124421 Please do not use any string functions/variables
Answer
# 3
i=cint(inputbox("Enter 3 digit No."))
i = i*1000+((i mod 100) mod 10)*100+((i mod 100) -(i mod
100) mod 10)+i\100
msgbox i
 
Is This Answer Correct ?    1 Yes 0 No
Bherolal Bhargav
 
  Re: Input = 124 output should be 124421 Please do not use any string functions/variables
Answer
# 4
Function printnumber(numb)

x=numb
y=strreverse(x)

msgbox x&y
End Function

printnumber(124)
 
Is This Answer Correct ?    2 Yes 1 No
Gyanesh Ranjan Rout
 
  Re: Input = 124 output should be 124421 Please do not use any string functions/variables
Answer
# 5
Dim n
Dim s
Dim x
input=124
n=124
While int(n)>0
s=n mod 10
x=x&s
n=Int(n)/10
Wend
Msgbox input&x
 
Is This Answer Correct ?    2 Yes 0 No
Manjunathareddy
 
  Re: Input = 124 output should be 124421 Please do not use any string functions/variables
Answer
# 6
Dim n
Dim s
Dim x
input=124
n=124
While int(n)>0
s=n mod 10
x=x&s
n=Int(n)/10
Wend
Msgbox input&x



Please explain this...........i am new to vb script
 
Is This Answer Correct ?    0 Yes 0 No
Ramesh
 

 
 
 
Other VB Script Interview Questions
 
  Question Asked @ Answers
 
Which is the default Data types in VBScript?  4
Diff between web table ,datatable and data base (QTP) TCS2
how to store charecters of HARIBABU Using arrays Cap-Gemini1
which is the good software training centre in bangalore?  1
How can we return a value from User Defined Function ? For Eg. we have 2 functions. In Fun1 i am getting 2 values (a,b) and i am addding those 2 and storing in to another var (c). Now i want to pass that var(c) to another function (fun2). What will be the script? Nous6
what is diff b/n these 2 programs 1) for i=5 to 1 step 2 msgbox "pass" next 2_) for i=5 to 1 step -2 msgbox "pass" next Hexaware5
How can I get the value of an object property or variable in another frame?  1
Can anybody code this problem for me in VB script - Create an array of 4 elements, increase its size to 7 elements and then find out which of the elements are prime (use functions)  2
How many data types are supported in Vbscript? Microsoft2
sunday is sunday monday tuesday wendesday sunday thursday friday saturday sunday sunday how to count no of sunday in the text file from vb? Answer me asap  4
write a vb script to find simple interest using functions  1
How do display output message without using msgbox function?  4
 
For more VB Script 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 © 2012  ALLInterview.com.  All Rights Reserved.

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