VB scrip has a special command named LBound, which returns
the starting index of an arry. What are the possible indexes
an array can start with?
options are given below. and one only the correct answer. pl
select it

1. any index
2. only even non-negative
3. only 0
4. any non-negative integer



VB scrip has a special command named LBound, which returns the starting index of an arry. What are ..

Answer / harsha

array can start with 0 only as we start it.
example:
a="a,b,c,d"
splita=split(a,",")
for i =0 to Ubound(splita)-1
Msgbox splita(i)
Next
Here if you start i with any other number than 0 then we
cannot the see the starting element. you can try and see.

We cant use -ve numbers in array index.

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More QTP Interview Questions

Hi! My OTP script has several bitmap checkpoints included which I check in the test results xml file. The test is for SAP 4.7. I need to save these bitmaps to files or at least export them to the html file using the export function in the test results viewer. Could you please help me with this problem? Thank you in advance! Best regards, Peter

0 Answers   TCS,


WHAT IS ENVIRONMENT VARIABLES?

7 Answers   AZTEC, CTS, Ready Test Go,


wt is playback facilityin qtp?

2 Answers   IBM,


I want to clear the webedit field without using set"" in qtp script

1 Answers  


How to find a window is minimized or not

0 Answers  






Give me At Least 5 Differences between DOCUMENTATION OBJECT MODEL(DOM)and COMPONENT OBJECT MODEL(COM)? Interviewer said me to WRITE the difference only in points not as you WRITE a paragraph ???? only in points

0 Answers   BirlaSoft,


How to take screenshots in qtp?

2 Answers   Sonata,


what is stlc and its contents?

1 Answers  


HOW do we find a datasheet when there are 4 datasheets in data table.this question was asked by covansys interview.

5 Answers   CTS,


How do know the number of browsers opened?

0 Answers  


i have read that "non-reusable actions can not be called in any other test".but in 'call to copy action' copies non-reusable action in other test also..can u pls help to understand this..

0 Answers  


how to test Web application using QTP software

0 Answers  


Categories