VB Script Interview Questions
Questions Answers Views Company eMail

what is inner join? what is outer join? what is a constraint? tell me about rdbms? tell me about acid properties?

Estuate,

738

can u test the application without add-in?

1 2138

why do u choose to go for testing why cant for devoloping

808




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)

2 3249

write a qtp script to count the number of minimized windows

1 3317

Am working with web application. i faced one senario. i.e, webpage having webtable having two coloumns, in that first coloumn is for serial no and second coloumn is for mac address link, now i want to get first row second coloumn value, that having macaddress as link. Please help me how to get that link?

2 3188

who will create the object?

TCS,

877

1 2 2 3 3 3 4 4 4 4 5 5 5 5 5 how to find using vbscripting

3 2988




how to retrieve native property value in runtime?

Hexaware,

1 1261

How to get path of the file through scripting?

Hexaware,

1 3952

int a=4857 i need output as 7584.without using any inbuild function?

Aspire,

5 5555

what is diff b/n these 2 programs 1) for i=5 to 1 step 2 msgbox "pass" next 2_) for i=5 to 1 step -2 msgbox "pass" next

Hexaware,

5 4144

write generic functions for webapplication?like generic function for webedit generic function for webbutton generic function for links

1 4889

about vb scripting programs this type of all question& answers

985

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 1968


Post New VB Script Questions






Un-Answered Questions { VB Script }

How to take whole text output from screen of Bitmap Application.

1137


what do you mean .ota mobile format

957


1.I want to establish connection with excel and also want to fetch the data using SQL queries. 2.the code should be written in such a way that in future if I want to migrate from excel to MS excess database , then there should be minimal changes.

797


How should i Create Email invite with server-side Coding?

910


Hi All, I am facing one problem in QTP. There is link object in my application that exist in the Frame in mozilla firefox. Click event on that object is not working but once the frame is enabled/activated then click event works fine.But the frame does not have the activate property. This problem is coming in firefox only. Regards

1523






In the Web page we have a table link, if we click on that link all the contents under that link will be sorted (asscending/Descending). Now i want to check in which order the list is ? for that i need to get the data in to some var How can i get that cells data?

1290


create a form to accept username and password validate the username and password with using message box, display the corresponding user message

1399


Hi anyone Can Send Solution to the Question wt m posting now Prepare Script for the Bellow Scenario? Login to Gmail Page Open Inbox check Mails save them in a Folder

892


what is the differance between BYVAL,BYREF?

996


Write a Program to add 2 numbers without using operators (+,-) and without using third variable. Note: Use VBScript only Hint: You can use other operators like '/' & '*'(Division & Multiplication)

2431


VISUAL BASIC QUESTIONS Does VB/Win make standalone .EXE files? What is the current version of Visual Basic for Windows? [++] Where can I get updated VB and other Microsoft files? Where can I get good up-to-date information about VB? [++] Are there any examples of commercial applications built using Visual Basic? What's the difference between MODAL and MODELESS forms? [++] When/Why should I use Option Explicit? Why does everybody say I should save in TEXT not BINARY? Is the Variant type slower than using other variable types? How do I make a text box not beep but do something else when I hit the Enter key? How do I implement an incremental search in list/dir/combo/file boxes? How do I get the Tab key to be treated like a normal character? How do I make an animated icon for my program? What is passing by reference? I get a "file not found" error on the IIF function when I distribute by program. Why? Is there any way to pass a variable to a form apart from using global variables? How should dates be implemented so they work with other language and country formats? Can a VB application be an OLE server? How do I dial a phone number without using the MSCOMM VBX? I have [several] megabytes of memory. Why do I get an "out of memory" error? [++] How do I mimic a toggle button? [++] How do I get my application on top? Is there a way to break long lines in VB code? How do I remove/change the picture property of a control at design time? Is a [foo] VBX/DLL available as shareware/freeware? How do I make my applications screen-resolution independent? How do I do Peek and Poke and other low-level stuff? [++] Why doesn't "my string" & Chr$(13) do what I want? How do I prevent multiple instances of my program? How do I implement an accelerator key for a text box? How do I force a file dialogue box to reread the currect disk? How do I get the number of free bytes on a disk? [++] Data Control missing from toolbox when I use VB under NT 3.5. Why? How do I tell when an application executed using the SHELL command is finished? How do I access C style strings? How can I change the printer Windows uses in code without using the print common dialog? How can I change orientation? How do I speed up control property access? How much gain in performance will I get if I write my number crunching routines in C instead of Visual Basic? How do you make a TEXTBOX read only? Or, how do I prevent the user from changing the text in a TEXTBOX? How can I create a VBX? How do you change the system menu (on the Control-Menu Box)? How do I play MID, WAV or other multimedia files? How can I call a 'hidden' DOS program from VB? How do I do drag & drop between applications? How do I use GetPrivateProfileString to read from INI files? How do I implement Undo? How do I create a window with a small title bar as in a floating toolbar? What is Pseudocode? Does VB support pointers to functions? How do I program the Novell NetWare API from VB? How do you change the icon and otherwise manipulate the DOS box? How do I make the mouse cursor invisible/visible? How do I create controls dynamically (at run-time)? How do I set the Windows wallpaper at runtime? How do I call help files from a VB program? [**] What is the Windows API? How do I call a DLL? What about DLL calls that require callbacks? Why can't I use an index with my VB accessed database? Is the Access Engine and Visual Basic Pro good enough for database work? How do you avoid the "Invalid use of null" error when reading null values from a database? What is "NULL"? How can I access a record by record number? How about Access 2.0 compatibility? How come I get a "No Current Record" error when I use a a Data Control on an empty table? How can I speed up my VB database application? How do I get a bitmap picture in a field in an Access database? What is "Reserved Error -1209"? I'm getting error message "Reserved Error [-nnnn] ("There is no message for this error")" from Jet Engine 2.0.Why? Why do I get "object not an array" when I try reference the fields of a global object variable which I have set to a table? Visual Basic Questions 1. Which controls can not be placed in MDI ? 2. List out controls which does not have events 3. Which property of textbox cannot be changed at runtime. What is the max size of textbox? 4. How many system controls are available 5. ___,_____ and ____ container objects. 6. ___ Property is to compress a image in image control. 7. ___,___ and __ are difference between image and picture controls. 8. To.set the command button for ESC ___ Property has to be changed. 9. Is it possible to set a shortcut key for label. 10. What is the default property of datacontrol. 11. ___,__,___ are the type of combo box? 12. __ no of controls in form. 13. OLE is used for _______ 14. What is the need of tabindex property is label control. 15. ___ is the control used to call a windows application. 16. Clear property is available in ____,___ control. 17. ___ Property is used to count no. of items in a combobox. 18. ___ is a property to resize a label control according to your caption. 19. Which controls have refresh method. 20. ___ property is used to change to ___ value to access a identity column'in datacontrols. 21. _____ is the property to ___,____,____ are valid for recordsource property of dat control. 22. To find the current recordposition in data control. 23. Timer control contains ________ no. of events. 24. ____ property is used to lock a textbox to enter a datas. 25. What is the need of zorder method? 26. ____ is the difference between Listindex and Tab index. 27. ____ property of menu cannot be set at run time. 28. Can you create a tabletype of recordset in Jet - connected ODBC dbengine. 29. Difference between listbox and combo box. 30. What are the new events in textbox that has been included in VB6.0 31. Can you create a updatecascade, Deletecascade relation in Ms- Access? If no, give on eample. 32. _____ collection in recordset used to assign a value from textbox to table columns without making abinding in datacontrol. 33. ___ argument can be used to make a menuitem into bold. 34. What is the difference between Msgbox Statement and MsgboxQ function? 35. What is.the difference between queryunload and unload in form? 36. ___,___ arguments will be used to run a executable program in shell function 37. ___ property used to add a menus at runtime. 38. What is the difference between modal and moduless window? 39. ___ VB constant make the menu item in centre. 40. ___ method used to move a recordset pointer in nth position in DAG. 41. To validate a range of values for a property whenever the property values changes,which type of property procedure you use? 42. What are 3 main differences between flexgrid control and dbgrid control? 43. What is the difference between change event in normal combobox and dbcombobox? 44. To populate a single column value which dbcontrols you to use? 45. What is ODBC? 46. PartsofODBC? 47. WhatisDSN? 48. WhatisDAO? 49. Types of cursors in DAO? 50. Types of LockEdits in DAO? 51 .Types of Recordsets. 51. Difference between Tabletype and Snapshot? 52. Draw Sequence Modal of DAO? Explain. 53. Difference between Dynaset and Snapshot? 54. Difference between Recordset and Querydef? 55. What is the use of Tabledef? 56. Default cursor Type and LockEdit type in DAO? 57. What is the default workspace? 58. Is it posible to Create Tables Through Querydef? 59. It is possible to access Text (x.txt) files? Explain. 60. What is ODBC Direct and Microsoft Jet Database Engine ? 61. Is it possible to Manipulate data through flexgrid? Explain. 62. Types of DBCombo boxes 63. What do you mean by Databound Controls? Explain. 64. What is RDO? 65. Types of cursors in RDO. 66. Types of LockEdits in RDO. 67. Types of LockEdits in RDO. 68. Types of Resultsets. 69. Difference between Recordset and Resultsets. 70. Explain Default cursor Type and LockEdits type in RDO 71. Draw Sequence Modal of RDO? Explain. 72. What is meant by Establish Connection in RDO? 74.1s it possible to Access BackEnd procedures? Explain. 73. What is OLE? Explain. 74. What is DDE? 75. Difference between Linked Object and Embedded Object? 76. Explain OLE Drag and Drop. 77. Difference between DDE and OLE. 78. What is the difference between Object and Class? 79. Give brief description about class? 80. Does VB Supports OOPS Concepts? Explain.. 81. Difference between Class Module and Standard Module? 82. Explain Get, Let, Set Properties. 83. Difference Types of Procedures in VB? 84. What is the use of NEW Keyword? Explain. 85. What is constructors and distructors. 86. Types of Modal windows in VB. 87. What is ActiveX? Explain. 88. Types of ActiveX Components in VB? 89. Difference between ActiveX Control and Standard Control. 90. Difference between ActiveX Exe and Dll. 91. What is instantiating? 92. Advantage of ActiveX Dll over Active Exe. 93. Difference Types of Instancing Property in ActiveX Dll and Exe. 94. What is ActiveX Dll and ActiveX Exe? 95. Write the steps in Creating ActiveX Dll and Active Exe? 96. Explain the differences between ActiveX Dll and ActiveX Exe? 97. How would you use ActiveX Dll and ActiveX Exe in your application? 98. How would you access objects created in ActiveX Exe and ActiveX D1T 99. What is the use of ActiveX Documents? 100. What is ActiveX Document? 101. What is the use of Visual Basic Document file? 102. What is hyperlink? 103. How would you create Visual basic Document file? 104. What is Internet Explorer and its uses? 105. How would you navigate between one document to another document 106. in Internet Explorer ? 107. How would you run your ActiveX Document Dll? 108. How would you view html code in Active Server Pages? 109. How would you cre.ate your application in DHTML? 110. What is ActiveX Control? 111. Write the Steps in Creating an ActiveX Control? 112. How would you attach an ActiveX control in Your Application? 113. How would you create properties in ActiveX Control? 114. What is the-use of property page Wizard in ActiveX Control? 115. How would you add elements in TreevieW Control. 116. What are the types of line styles available in Treeview Control? 117. What is the use of Imagelist Controls 118. How would you attach pictures in Treeview Control? 119. What are the uses of List View Control? 120. Explain the types of Views in Listview Control. 121. How would you attach pictures in column headers of List View Control? 122. How would you add column headers in listview control? 123. How would you add elements and pictures to listitems in listview control? 124. How would you activate animation control? 125. What is the use of progress Bar Control? 126. How would you find out the value property in Slider Bar Control? 127. What is the use of Data Form Wizard? 128. How would you map properties to controls by using ActiveX Control Interface Wizard? 129. How would you convert a form into document? 130. How would you Create a Query Builder and Explain its uses 131. How would you create properties by using class Builder Wizard? 132. HTML stands for What? Use of HTML ? 133. Whether HTML supports multimedia: and document links? 134. DHTML Is used for what? 135. What do you mean by HTTP? 136. What is the use of Hyperlink control for DHTML applications? 137. How can you Navigate from the DHTML application to another DHTML application? . 138. What are the Internet tools available in VB6.0? 139. Explain the usage of Web Browser Control? 140. What do you mean by ADO? 141. What is the difference Between ADO and other data access objects0 142. WhatisOLEDB? 143. What are the important components of OLEDB? 144. Through which protocol OLEDB components are interfaced? 145. It possible to call OLEDB's Features directly in VB without using any control? 146. What type of databases you can access through AD I Data Access Object? 147. How many objects resides in ADO ? 148. What is the use of Connection object? 149. What is the use of command Object? 150. Recordset object consists what? 151. What is the use of parameters collection? 152. Which type of object requires this object? 153. Is it possible to call backend procedures with ADO control? 154. Is there any Edit method in ADO Data Access method? 155. How can you check whether a record is valid record or Invalid record using ADO control or Object? 156. What do you mean by provider? 157. What type of recordsets are available in ADO? 158. Is it possible to call oracle database through ADO control or Object? 159. How many File System Controls are there ? Explain. 160. How can you filter out specific type of file using file system controls? 161. How can you get selected file from file system Control? 162. How many ways we can access file using VB? 163. Which method is preferred to save datas like database? 164. How to get freefile location in memory? 165. How to find size of the file. Which method or function is used to occomplish this? 166. Using which type we can access file line by line? 167. Which method is used to write context Into file? 168. How can you read content from file? 169. Binary Access-method isused to access file in which manner? 170. How can you check Beginning and End of the file? 171. What is the use of Scalewidth and ScaleHeight Proeperty? 172. What is the use of Active Control Property? 173. How can you save and Get data from Clipboard/ 174. What are the types of Error? 175. In which areas the Error occurs? 176. What are the tools available for Debuggiu in VB? 177. What is the use of Immediate, Local Window? 178. What is the use of debug Window? 179. How can you Implement windows functionality in VB? 180. How many types of API functions are availble in VB? 181. How can you Add API functions to your Application? 182. How to get Cursor position using API? 183. Is it possible to change menu runtime using API? If yes? Specify the function names. 184. What are the types of API Types.

1680


Write a test case using Test if the images,a particular test exists,check if the page links match,page response is within a certain range,parameterization of the test,the test should comprise of actions,the test should use a custom function,the test should use global repository

1039


If a calulator having 3 buttons (of any number)in 3 of them one is not working properly due to which answer is wrong always. write a script to find out which button is not working properly ?

691


Hi, Can anyone please send me vb script examples to practice vb and also material to learn vb scripting in QTP? my email id : hareen_11@yahoo.com

1051


does anyone have qtp11.0 license key.Please sendit to my mail id-rrvv2011@gmail.com...Thanks

1733