- 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: What are Variants?

Answer: VbScript deals with a single datatype called variant. Datatype means the kind of the data a variable will store.It can be a character data,string data,number data , byte data and a Boolean data. But you don?t have to worry in Vb Script as it only has a datatype of variant to store any type of data. 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: Why use Style Sheets?

Answer: Style sheets allow a much greater degree of layout and display control than has ever been possible thus far in HTML. The amount of format coding necessary to control display characteristics can be greatly reduced through the use of external style sheets which can be used by a group of documents. Also, multiple style sheets can be integrated from different sources to form a cohesive tapestry of styles for a document. Style sheets are also backward compatible - They can be mixed with HTML styling 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: How to Assign values to a variable ?

Answer: Simple you have to declare a variable name and assign any value.

For ex. Name = ?Chandra?

Now all the above variables has been assigned values.This is a simple way to declare and assign related values to a variable. Source:
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: 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: 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: 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: 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: 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: Explain about ADODB.Stream class?

Answer: ADODB.Stream class can be used as string builder. VBScript string concatenation can be very costly because of frequent memory allocation features. Binary file and memory I/O operation is provided by ADODB.Stream class. This is widely used to convert bytes into string, etc. Source:
Question: Explain about Tristate constants?

Answer: Tristate constants can be used with functions which allow formatting of numbers. These constants can be used with VB Script without defining them. It can be used anywhere in the code to reflect and represent the values. 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: Where Can I Get VBScript

Answer: If your VBScript-capable browser does not have VBScript or you would like the latest version of VBScript then download it at Microsoft's Scripting Engines download site. 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 Re-Dimension Arrays?

Answer: You may only re-dimension dynamic arrays. To do so, use the ReDim statement in the same manner as either the Dim, Public, or Private statments. For example to re-dimension an existing dynamic array you could go:
ReDim myArray(5, 5)
Note that using the ReDim statement will reset all data within the array. To keep the data from being erased use the Preserve statement in conjuction with the ReDim statement like so:
ReDim Preserve myArray(5, 5)
There is no limit to the number of time Source:
Question: How to send content of a file line by line to a batch file as a parameter ?

Answer: No answer available currently.
Question: Explain about the extension .hta?

Answer: .hta extension is used whenever you want to include a VB script in HTML. Here HTML acts as an interface and VB Script as the programming language. .hta extension files do run in the safe and trusted zone of Internet explorer. Although they run in the trusted zone querying is restricted as it has to pass the guidelines of internet explorer. 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.03125 Seconds