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

how can you write a script without using GUI in QTP?

5 Answers   Ordain Solutions,


How to execute a VBS file without using Execute File statement?

3 Answers   iGate,


What are the properties you would use for identifying a browser and page when using descriptive programming?

0 Answers  


What is the exact difference bet function and action in QTP Anybody can explain it in detail..Thanks in advance..

12 Answers   Wipro,


Explain how you can find the absolute value of the number in qtp?

0 Answers  






How to create configuration scripts

1 Answers  


what is the data driven testing?

0 Answers  


Hello everyone! I am just writing a small test for a windows application. I have a problem with a text output value. The value i am trying to catch is presented in a scrollable textbox. When the text is too long, only a portion of it gets captured. Do you have any experience with this?

0 Answers   HSBC, T Mobile,


HOW AND WHY TO CREATE EMPTY OBJECT IN QTP?

2 Answers   Patni,


How can we display the names of the buttons in the toolbar of a webpage

1 Answers  


How exactly you start scripting in QTP? In the interview he was not satisfied with my answer.Please post what is correct answer.

5 Answers  


How many scripts do you write per day. What is the average number of scripts you have written in your recent project

1 Answers   CenturyLink, Optum, Value Labs,


Categories