Can anybody code this problem for me in VB script -
Create an array of 4 elements, increase its size to 7
elements and then find out which of the elements are prime
(use functions)

Answers were Sorted based on User's Feedback



Can anybody code this problem for me in VB script - Create an array of 4 elements, increase its siz..

Answer / sadashivbyagi

we should use the dynamic array to resize the array then we
can change the size of the array

Is This Answer Correct ?    2 Yes 0 No

Can anybody code this problem for me in VB script - Create an array of 4 elements, increase its siz..

Answer / sadashivbyagi

using dynamic array

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More VB Script Interview Questions

i have developed the below QTP script to count the no of items available in the web list "Select a product" in www.bankrate.com and also want to print what are the items??? can any one help me to rectify the below script??? SystemUtil.Run "iexplore.exe","www.bankrate.com" a=Browser("title:=Mortgage Rates Credit Cards Refinance Home CD Rates by Bankrate.com").page("title:=Mortgage Rates Credit Cards Refinance Home CD Rates by Bankrate.com").Weblist("name:=select").GetTOProperty("items count") msgbox a Dim List() ReDim List(a-1) For i = 1 To a List(i-1)=Browser("title:=Mortgage Rates Credit Cards Refinance Home CD Rates by Bankrate.com").page ("title:=Mortgage Rates Credit Cards Refinance Home CD Rates by Bankrate.com").Weblist("name:=select").GetItem(i) Print List(i-1) Next

1 Answers  


what is the use of Data base check point ?

3 Answers  


write a vb script to find simple interest using functions

1 Answers  


How to map test cases with Automation script? Please explain in details.With example Thanks for your co-operation(In Advance)

1 Answers   Google, IBM,


How to search word in a string without using instring function?

1 Answers   CSS Corp,






How to replace junk code recorded by QTP with a mall function.

0 Answers  


write a script to count no drives in file systems in qtp?

1 Answers   Mind Q Systems,


Hi I am having one folder with set of text files now i want to read and write that text files data into QTP. Any help plsss.

1 Answers  


write a Vb script to find a whther a selected drive exits.

1 Answers   CTS,


What are the differences between sub procedures and function procedures?

0 Answers  


how to declare a variable in vbscript using vbscript

4 Answers  


I need to get some data from data base and store this (retrieved) data in a excel sheet using VB script in QTP9.0 I have created connection for data base I have created as excels sheet by using Set XL=CreateObject("Excel.Application") XLworksheet.cells(1,1).value= rs.fields.item("<<The data retrieved from data base >>") I have taken a for loop and changed the cells values (1 as i and another 1 as j) But still I am not able to get Plz kindly tell me know this . It is very urgent

0 Answers  


Categories