Interview Questions on VBScript Basics


Interview Questions on VBScript Basics

1) What is VBScript?

Visual Basics Scripting Edition, lightweight version of Visual Basic Programming Language.

Now Visual Basic is a part of .NET suite

Microsoft Visual Basic Scripting Edition brings active scripting to a wide variety of environments, including Web client scripting in Microsoft Internet Explorer and Web server scripting in Microsoft Internet Information Service.

2) What are the usages of VBScript?

Usage of VBScript:

Client side scripting in the Web,

Server side scripting in the Web,

Network Administration,

System Administration,

Test Automation etc…

3) What is the extension for a function library?

Extension of Function Library is .vbs

4) What is the Latest Version of Visual Basic Scripting Edition?
Latest version of VBScript is 5.8

5) Which Browsers VBScript Support?

VBScript is a trademark of Microsoft Corporation and is only supported by Microsoft Internet Explorer and Microsoft Internet Information Server.

6) How can we add VBScript to web pages?

We use scripting language like VBScript and JavaScript as the extension of HTML language. Only internet explorer read the VBScript and its has a work to read Script with whole content of an web page and to execute them. These are use as an client side scripting language.

7) Give me simple example Of VbScript?
Simple Example Of VbScript:



<TITLE>My Company Name</TITLE>


document.write(“PVT. LTD. (INDIA)”)



8) What is the disadvantage of VBScript?

Disadvantages of VBScript are:
1. Limited command-line parsing and GUI support.
2. Limited third-party module/add-on support.
3. No command-line code execution support.

9) Is VBScript Case Sensitive?

VBScript is not a Case Sensitive Language.

10) What is the difference between VBScript and JavaScript?

The differences between VBscript and JavaScript are:
1. JavaScript case sensitive where’s VBScript not case sensitive.
2. JavaScript will be run on client side where’s VBScript will be run on server side.
3. JavaScript is the default scripting language for browsers but VBScript must be specified as the scripting language.
4. JavaScript has cross-platform support from all popular browsers while VBScript is supported MS IE only.
5. JavaScript uses the same character for concatenation as it does for addition (the + character) while the ‘&’ concatenating character is used in VBScript.
6. VBScript allows you to define public/private members in classes, whereas in JavaScript, all members are (basically) public.
7. VBScript supports passing “by reference” whereas JavaScript only allows passing “by value.”

Follow me on social media: