write a vb script to display apple that is 1st a should be
displayed then ap then app then appl then apple

Answers were Sorted based on User's Feedback



write a vb script to display apple that is 1st a should be displayed then ap then app then appl th..

Answer / aparajita mohapatra

val="apple"
For i=1 to len(val)
val1=mid(val,1,i)
print val1

Next

Is This Answer Correct ?    4 Yes 2 No

write a vb script to display apple that is 1st a should be displayed then ap then app then appl th..

Answer / usha

str="apple"

for i = 1 to len(str)

msgbox left(str,i)

next

Is This Answer Correct ?    1 Yes 0 No

write a vb script to display apple that is 1st a should be displayed then ap then app then appl th..

Answer / mudaseer

above answer is almost correct but there is one mistake

val="apple"
For i=1 to len(val)
val1=mid(val,1,i)
msgbox val1

Next

instead of msgbox he has used print

Is This Answer Correct ?    2 Yes 2 No

write a vb script to display apple that is 1st a should be displayed then ap then app then appl th..

Answer / prathyusha

str="apple"
For i=1 To Len(str)
var=Mid(str,i,1)
char=char&var
newchar=newchar&vbcrlf&char
Next
MsgBox newchar

Is This Answer Correct ?    0 Yes 0 No

write a vb script to display apple that is 1st a should be displayed then ap then app then appl th..

Answer / abhishek mallabadi

dim apple
apple="a"
msgbox apple
apple1=apple & "p"
msgbox apple1
apple2=apple1 & "p"
msgbox apple2
apple3=apple2 & "l"
msgbox apple3
apple4=apple3 & "e"
msgbox apple4

Is This Answer Correct ?    0 Yes 1 No

write a vb script to display apple that is 1st a should be displayed then ap then app then appl th..

Answer / sadashivbyagi

guys dont complex the simple qn's

just try for this k

msgbox "a"&" "&"ap"&" "&"app"&" "&"appl"&" "&"apple"

Is This Answer Correct ?    0 Yes 2 No

write a vb script to display apple that is 1st a should be displayed then ap then app then appl th..

Answer / mudaseer

msgbox "a"
msgbox "ap"
msgbox "app"
msgbox "appl"
msgbox "apple"

Is This Answer Correct ?    0 Yes 5 No

Post New Answer

More VB Script Interview Questions

How to throw an error in vbscript?

0 Answers  


Is VB Script Case sensitive or Case insensitive?

0 Answers  


write a program to display the system specifications of client system with the help of vb script.

1 Answers  


Explain the adodb.stream class?

0 Answers  


What are class properties?

0 Answers  


Hello friends..... Can any give the methods for Ms-Access, and Mozilla firefox in Automation Object Model in QTP. Please give me currect answers... if you do not understand my question please don't give answers. Thanking you.

0 Answers  


about vb scripting programs this type of all question& answers

0 Answers  


What are class events?

0 Answers  


Mention what is the use of option explicit in vbscript?

0 Answers  


how to get date format from system locale..format means neither long nor shor... format from system locale. i need like your date is mm/dd/yyyy formate or mm-dd-yy or with time like that. how to get.

2 Answers  


what is the differance between BYVAL,BYREF?

0 Answers  


Here in my automation tool, i am retreiving some values and i need to store this values in the excel. How can i achieve this?. We are using VBA as scripting language. please let me know if you require any further inputs.

1 Answers  


Categories