Write a script to print below pattern
5 4 3 2 1
5 4 3 2
5 4 3
5 4
5

Answers were Sorted based on User's Feedback



Write a script to print below pattern 5 4 3 2 1 5 4 3 2 5 4 3 5 4 5..

Answer / lakshmi

for i=1 to 5
for j=5 to i step -1
temp=temp & " "& j
Next
temp=temp&vbcrlf
Next
Msgbox temp

Is This Answer Correct ?    3 Yes 0 No

Write a script to print below pattern 5 4 3 2 1 5 4 3 2 5 4 3 5 4 5..

Answer / vishnu

For i=5 to 1 step -1
temp = temp & i
Next
For i=5 to 1 step -1
print temp
temp = left(temp,i-1)
Next

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More QTP Interview Questions

When Recovery scenario actually starts while testing the application?

0 Answers   SAP Labs,


What are the key elements available in test result window?

0 Answers  


What are the differences between QTP 9.2 and 10? please explain e indetail......

2 Answers   Wipro,


How to break the object spy ?

0 Answers  


Explain getroproperty and gettoproperty & settoproperty?

1 Answers  






Could some one explain me how to create folder on the desktop from QTP?? This is an interview question

2 Answers   Clinical Soft,


Hi Friends, I'm new to QTP. I want to write a function in QTP for below senario. In an Excel sheet column B, I Have 10 Url/Links, and in Colum A there is a Flag as Y and N. My test should run only on those iterations which are flagged as Y. Please help, Thanks

6 Answers  


unable to get item from the combobox using descriptive programing. can any one give me the peice of code to schedule the booking from one place to another using DESCRIPTIVE PROGRAMING.

1 Answers  


What is expert view and keyword view?

0 Answers  


i m fresher iwant to know about testing what is the scope of testing field.i m aware in manual testing shall i go to automatiuon testinh directly or if any work experinc in manual testinh then only i go to manually automation testing.

2 Answers  


In my script there is a link(e.g. 'My Page') when I execute the script sometimes(not every time) QTP throws an error that "My Page(as link)" not found. Pleaase tell me where I need to update

3 Answers  


How to do Laod testing for web based Application?

1 Answers  


Categories