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

what is the extension for QTP files?

11 Answers   AppLabs,


How to extract the data in the below scenario and dump it in the excel? Link1 Link2 Link3 Link4 numberlink1 text text text numberlink2 text text text numberlink3 text text text numberlink4 text text text So, Here is my question? -- It is a matrix but is not a web table(QTP does not recognize it as a web table) -- Link1, link2 and link3 are links under which text is available -- numberlink1 to numberlink4 are again LINKS -- All the others displayed are text only I want to extract the data in the above scenario and dump it into an excel in the same scenario as it is displayed above. Kindly help.. Thank you

0 Answers  


what type of test cases tou will automate?

4 Answers   Google,


images are dynamically changes how to compare two images

2 Answers   Hexaware,


What is Regular Expressions?

2 Answers  






What is the difference between Normal mode and Fast mode ?

1 Answers   AZTEC,


Hi iam shankar here, right now iam working on manual testing. i want to switch over automation tool qtp, right now iam taking training class outside on qtp, please let me know the cost of QTP tool for full version, wether it's an annual subscription or monthly subscription.

0 Answers  


How to use parameterization in qtp?

0 Answers  


Q) Please any body can help me how we can create descriptive programming if the application is not ready i.e we don't have unique property of object ? note:build not ready means we can't use object spy in build to get unique property .

2 Answers  


Hoe to generate all numbers in between to numbers suppose all numbers in between 1 to 100 using vbscript give me code

2 Answers  


What is the difference between Action and Function.? when both has the same functionaltiy, when do we choose Action and when do we choose Function..??

3 Answers   DST Global Solutions,


Write a script to customize the test results in PDF and HTML format.

0 Answers   DuPont,


Categories