- World's Largest Collection of Interview Questions & Answers, FAQs, queries, sample papers, exam papers, dumps, what, why, how, where, when questions
Our Services
Get 9,000 Interview Questions & Answers in an eBook.

Get it now !!
Send your Resume to 6000 Companies
VB Script Interview Questions & Answers - Learning Mode

VB Script Interview Questions & Answers - Learning Mode

VBScript ("Visual Basic Scripting Edition") is an Active Scripting language developed by Microsoft that is modeled on Visual Basic. It is designed as a "lightweight" language with a fast interpreter for use in a wide variety of Microsoft environments. VBScript uses the Component Object Model to access elements of the environment within which it is running; for example, the FileSystemObject (FSO) is used to create, read, update and delete files.

Try VB Script Interview Questions & Answers - Exam Mode

1 2 Next

Sort By : Latest First | Oldest First | By Rating

VB Script Interview Questions & Answers - Learning Mode
Try VB Script Interview Questions & Answers - Exam Mode
Question: Explain about .wsf files?

Answer: .wsf files are modeled in similar to XML. They can be executed with the help of Wscript.exe and it can be done from the command line also. This .wsf file can have multiple visual basic files. Reuse functionality is present with this extension file. Source:
Question: Explain about filter expression?

Answer: Filter expression returns an array based on a specific filter search condition and it returns a zero based array. Arguments included in the filter array are Input strings, value, include and compare. If there is no match for the value it returns an empty string. Source:
Question: Give examples where VB script can directly run on users system with Windows as OS?

Answer: A simple example detailing the running of VB Script is by utilizing Windows Script host environment. Visual basic is a stand alone application which has a .vbs as extension. Input can be provided through graphical user interface and output can be obtained by Wscript.exe from dialog and input boxes. From command line it can be invoked by Cscript.exe. Source:
Question: Explain about the Asc function?

Answer: According to the first letter in a string it returns the ANSI code relevant to that first letter. If string is not present then a runtime error occurs. Asc function returns the first byte used. It is used only with elements containing byte data in a string. Source:
Question: Explain about constants in VB Script?

Answer: There are many useful constants present in Visual basic script which you can use in your code. They ease your work load by remembering value and implementing in the code. Maintenance is easy with VB Script because it can easily change the feature of constants. Source:
Question: Where should my script be within the document?

Answer: Put the script at the beginning of the <HEAD> of the document, not at the end. Source:
Question: What is VBScript?

Answer: VBScript is a somewhat simplified version of its superset, Visual Basic, as some prototypes are made easier, you do not have to worry about variable sizes, etc. This is too try and allow optimum web development with minimal programming abilities by the programmer. The main difference between Visual Basic and its subset is that VBScript is limited to the web and is fully integrated with the web browser rather than the operating system. This is purely for security reasons. Nonetheless, VBScript is Source:
Question: What is The Difference Between a Sub-Procedure and a Function?

Answer: Both a Sub-Procedure and a Function are very similar. The only difference is that you may use a Function on the right side of an equation like you would a Cos( ) function or number. Source:
Question: Which Browsers Support VBScript?

Answer: VBScript is a trademark of Microsoft Corporation and is only supported by Microsoft Internet Explorer 3.0+ and Microsoft Internet Information Server.
Question: Explain about the functionality of VB Script?

Answer: Active X technology can be used to give much more functionality to VB Script. VB provides sub routines, functions, string manipulation, data/time, error handling, etc. VB can have more functionality added to it by working with languages such as ASP. Source:
Question: Explain about arrays in VB Script?

Answer: Arrays in VB Script should be assigned within the variant separated by a comma. If arguments are not specified then the string is regarded as empty. After specifying the elements in an array an index number should be used indicating the desired element. Source:
Question: Is VBScript Better Than JavaScript?

Answer: It depends what you would call better =). The only con is that you must be using Explorer to see the code execute, which may be annoying for Netscape users that rely on JavaScript. On the other hand, VBScript operates in much the same way as JavaScript as they are both interpretted by the browser. In addition, VBScript can accomplish the same tasks as JavaScript, plus, VBScript (and JScript) may also be applied to Microsoft web technologies like ASP. Generally, VBScript is also easier to learn t Source:
Question: How do you create a recordset object in VBScript?

Answer: First of all declare a variable to hold the Recordset object, ex-
Dim objRs

Now, Create this varible as a Recordset object, ex-
Set objRs=Server.CreateObject(ADODB.RECORDSET) Source:
Question: What is the scope of a variable ?

Answer: The scope of a variable defines whether a variable will be accessible in the whole function or will be accessed only to its local instance.I have defined earlier in the tutorials that they can also be deemed as a local variables or can be deemed as a global variables.

For ex.

< script >
Dim name
Sub cmdclickme_OnClick
Dim age
End Sub
< / script >

It is clear from the above example about the scope of the variable that the variable name will be avail Source:
Question: Explain about VB Script?

Answer: VB script is a Microsoft programming language and it resembles a lower version of the VB. It is an Active Scripting language. This scripting language is included in windows operating system by default. With the use of msscript.ocx you can install VB Script. Source:
Question: Where Can I Find VBScript Documentation?

Answer: Microsoft gives you almost everything you need in the way of specifications at their Scripting Technologies web site. Source:
Question: How Do I Use Arrays?

Answer: Arrays may either be static or dynamic. A static array has its dimensions pre-defined and may not be re-sized, whereas a dynamic array does not have a pre-defined number of dimensions and must be resized to store any data. To define any of the two arrays first use either the Dim, Public, or Private statments as you would with a normal variable. Then, to define a one-dimensional static array with three elements, you could go:
Dim myArray(2)
To assign values to each element go:
myArra Source:
Question: Where should my script be within the document?

Answer: Put the script at the beginning of the <HEAD> of the document, not at the end. Source:
Question: Explain about operator precedence in VB Script?

Answer: In operator precedence expressions are evaluated and resolved in a predetermined order. The order of evaluation can be modulated if you use parenthesis. Expressions present in parenthesis are evaluated first. Source:
Question: Explain about the support of ASP for VB Script functionality?

Answer: Visual Basic should rely on ASP for sever side processing. Asp.dll is used to make VB Script run on ASP engine and it invokes vbscript.dll. VB Script should be embedded within <% and %> context switches. ASP can provide varied functionality to VB Script. Source:

1 2 Next

India News Network
Latest 20 Questions
Payment of time- barred debt is: (a) Valid (b) Void (c) Illegal (d) Voidable
Consideration is defined in the Indian Contract Act,1872 in: (a) Section 2(f) (b) Section 2(e) (c) Section 2(g) (d) Section 2(d)
Which of the following is not an exception to the rule, "No consideration, No contract": (a) Natural love and affection (b) Compensation for involuntary services (c) Completed gift (d) Agency
Consideration must move at the desire of: (a) The promisor (b) The promisee (c) The promisor or any other party (d) Both the promisor and the promisee
An offer which is open for acceptance over a period of time is: (a) Cross Offer (b) Counter Offer (c) Standing Offer (d) Implied Offer
Specific offer can be communicated to__________ (a) All the parties of contract (b) General public in universe (c) Specific person (d) None of the above
_________ amounts to rejection of the original offer. (a) Cross offer (b) Special offer (c) Standing offer (d) Counter offer
A advertises to sell his old car by advertising in a newspaper. This offer is caleed: (a) General Offer (b) Special Offer (c) Continuing Offer (d) None of the above
In case a counter offer is made, the original offer stands: (a) Rejected (b) Accepted automatically (c) Accepted subject to certain modifications and variations (d) None of the above
In case of unenforceable contract having some technical defect, parties (a) Can sue upon it (b) Cannot sue upon it (c) Should consider it to be illegal (d) None of the above
If entire specified goods is perished before entering into contract of sale, the contract is (a) Valid (b) Void (c) Voidable (d) Cancelled
______________ contracts are also caled contracts with executed consideration. (a) Unilateral (b) Completed (c) Bilateral (d) Executory
A offers B to supply books @ Rs 100 each but B accepts the same with condition of 10% discount. This is a case of (a) Counter Offer (b) Cross Offer (c) Specific Offer (d) General Offer
_____________ is a game of chance. (a) Conditional Contract (b) Contingent Contract (c) Wagering Contract (d) Quasi Contract
There is no binding contract in case of _______ as one's offer cannot be constructed as acceptance (a) Cross Offer (b) Standing Offer (c) Counter Offer (d) Special Offer
An offer is made with an intention to have negotiation from other party. This type of offer is: (a) Invitation to offer (b) Valid offer (c) Voidable (d) None of the above
When an offer is made to the world at large, it is ____________ offer. (a) Counter (b) Special (c) General (d) None of the above
Implied contract even if not in writing or express words is perfectly _______________ if all the conditions are satisfied:- (a) Void (b) Voidable (c) Valid (d) Illegal
A specific offer can be accepted by ___________. (a) Any person (b) Any friend to offeror (c) The person to whom it is made (d) Any friend of offeree
An agreement toput a fire on a person's car is a ______: (a) Legal (b) Voidable (c) Valid (d) Illegal
Cache = 0.203125 Seconds