
WEB TECHNOLOGY- Q&A
UNIT – I
2 MARKS
1. How constants are defined in VBScript?
Constants are defined in VBScript as follows
[Public | Private]ConstConstant_Name =Value
2. What are the coding conventions to be followed in VBScript?
Coding conventions can include the following:
Naming conventions for objects, variables, and procedures.
Commenting conventions.
Text formatting and indenting guidelines.
3. Give the purpose of dialog box.(NOV-2012,14)
Dialog boxes can be used to raise an alert, or to get confirmation on any input or to have a kind of input
from the users.
4. How objects are defined in HTML?
The <object> tag defines an embedded object within an HTML document. Use this element to embed
multimedia (like audio, video, Java applets, ActiveX, PDF, and Flash) in your web pages. You can also use the
<object> tag to embed another webpage into your HTML document.
5. List the logical operators used in VBScript
Operator Description
And Performs a logical conjunction on two expressions (if both expressions
evaluate to True, result is True. If either expression evaluates to False,
result is False)
Or Performs a logical disjunction on two expressions (if either or both
expressions evaluate to True, result is True).
Not Performs logical negation on an expression.
Xor Performs a logical exclusion on two expressions (if one, and only one, of
the expressions evaluates to True, result is True. However, if either
expression is Null, result is also Null).
6. How variables are defined in VBScript (NOV-2013,APR-2013)
Variables are declared using “dim” keyword. Since there is only ONE fundamental data type, all the
declared variables are variant by default. Hence, a user need notmention the type of data during declaration.
Example 1: In this Example, IntValue can be used as a String, Integer or even arrays.
Dim var