- 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: 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: 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 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: 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: 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: 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 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: 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: 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: 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 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: 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: 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: 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: 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: 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: 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 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:

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.15625 Seconds