1.How do you add a quotation mark to VB script string?
The first method uses two quotation marks in a row to create a single quotation mark. The second method uses the ASCII value of the quotation mark character
2.How do you break a single VBScript Statement into multiple lines?
A single VBScript Statement can be broken into multiple lines by using the _underscore character.
3.What is the proper method of comparing strings in VBScript?
The first method uses VBScript function with the vbTextCompare constant. The second method forces both strings into uppercase.
4. How do you re-enable errors after using ON ERROR RESUME NEXT?
<<>>
5. How do you prevent My Script from timing out?
You can extend the amount of time a script is allowed to run by using the ScriptTimeout property of the Server object.
6.When do you need to explicitly convert a variable to a particular data type?
If you are comparing numbers or dates and there is a danger that VBScript might interpret the values as strings; one of the VBScript conversion functions should be used.
7. When should one pass a variable by value and when by reference?
When you pass a variable by value to a subordinate or function, a new instance of the variable is created. Any changes made to the value of the variable do not affect the value of the original variable. On the other hand, whne you pass a variable by reference, changes made to the variable do affect the value of the original variable.
8.How can you add a space between the output of two variables?
<<>>
9. Does ASP support dynamic includes?
It does not support.
10. How do you use the option Explicit statement in an ASP?
It must be used before nay other VBScript statement or HTML content in a script, else it will generate and error.
No comments:
Post a Comment