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

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

5 Answers   Hexaware,


Which command is used for writing text on a page?

0 Answers  


How to create a cookie using vbscript?

0 Answers  


Explain about the functionality of vb script?

0 Answers  


How will you get the last occurrence of one string within another string using vbscript?

0 Answers  


What is the technology used by vb script?

0 Answers  


write a vb script to display the reverse of vbs

2 Answers  


Hellow friends, I am learning QTP,but here problem is VB script. please guide me how to learn VB script w.r.t QTP and if you know any books tell me or if you have any materials or any use full material or any else w.r.t QTP please post me p.p.sekhar

0 Answers  


how to retrive the tooltip by using descriptive programming in qtp?

3 Answers   iGate,


If a calulator having 3 buttons (of any number)in 3 of them one is not working properly due to which answer is wrong always. write a script to find out which button is not working properly ?

0 Answers  


Explain How do you create a recordset object in vbscript?

0 Answers  


A folder is there inside no of textfiles are avilable. How do count the textfiles. Normally folder means we are using subfolder methods but textfiles is not working for subfolder methods and how do get file name also.

0 Answers  


Categories