VBScript is a scripting language supported by the Internet Explorer only. It was developed by Microsoft and based on the syntax of Visual BasicVBScript is the language used to write some notable e-mail worms, such as ILOVEYOU. Although the language is not inherently insecure, the Scripting Host has little or no security features. The scroll-like icon representing VBS files may lure users with little Windows experience to think that it is a text file. As VBScript has tight integration into Windows, a basic e-mail worm can be written in VBScript in just a few lines of code.
VBScript Interviews are getting tough these days as the technology grows faster. To get through the VBScript interview one needs to update him/herself in a regular manner. Having said that, just before the interview, it is very important to have a quick glance of the reputed VBScript questions and answers to make yourself comfortable during the interview process. This is where DoAnswers.com helps you in renewing yourself on VBScript and various other technologies interview preparation.
1. How to Add VB script to web pages ?
There are scripting languages like Javascript and Vbscript and they are designed as an extension to html language.The Web browsers like Microsoft Internet Explorer receives the scripts along with the rest of the web page document. It is the browser responsibility to parse and process the scripts. These scripts are widely used as a client side scripting languages. There are scripting languages like Javascript and Vbscript and they are designed as an extension to html language.The Web browsers like Microsoft Internet Explorer receives the scripts along with the rest of the web page document. It is the browser responsibility to parse and process the scripts. These scripts are widely used as a client side scripting languages.
2. What are Variants?
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.
3. What is the scope of a variable ?
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 available to the whole script as it is declared outside sub procedure so enhance his behaviour to the global as compared to the variable name age which is defined inside the sub procedure hence making his behaviour local and will be only accessed in this sub procedure only.
4. What is VBScript?
VB Script is a scripting language developed by Microsoft. With the help of this scripting language you can make your web pages more dynamic and interactive. VB Script is a light version of Visual basic and it has an easy syntax. VB Script is widely used and most popular as a client side scripting language. In html language you use < and > around the tags. But you can use many tags inside one pair of < % and % >. For Printing a variable you can use < % = % >.