- VBScript - Home
- VBScript - Overview
- VBScript - Syntax
- VBScript - Enabling
- VBScript - Placement
- VBScript - Variables
- VBScript - Constants
- VBScript - Operators
- VBScript - Decisions
- VBScript - Loops
- VBScript - Events
- VBScript - Cookies
- VBScript - Numbers
- VBScript - Strings
- VBScript - Arrays
- VBScript - Date
- VBScript - Procedures
- VBScript - Dialog Boxes
- VBScript - Object Oriented
- VBScript - Reg Expressions
- VBScript - Error Handling
- VBScript - Misc Statements
- VBScript Useful Resources
- VBScript - Questions and Answers
- VBScript - Quick Guide
- VBScript - Useful Resources
- VBScript - Discussion
VBScript Online Quiz
Following quiz provides Multiple Choice Questions (MCQs) related to VBScript Framework. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.
Q 1 - Which of the following is a valid scope in VBScript?
Answer : D
Explaination
All of the above are valid scopes in VBScript.
Q 2 - Which of the following operator can be used to get the exponent of two numbers in VBScript?
Answer : B
Explaination
^ opeator is used to get the exponent of two numbers.
Q 3 - Which of the following function of VBScript converts a given number of any variant subtype to Hexadecimal?
Answer : A
Explaination
Hex function converts a given number of any variant subtype to Hexadecimal.
Q 4 - How will you get the absolute value of the given number in VBScript?
Answer : A
Explaination
Using Abs function, which returns the absolute value of the given number.
Q 5 - How will you replace a string with another string using VBScript?
Answer : C
Explaination
Using Replace function, which returns a string after replacing a string with another string.
Q 6 - How will you increase the size of an array in VBScript?
Answer : A
Explaination
Using ReDim statement, we can declare dynamic-array variables and allocate or reallocate storage space.
Answer : A
Explaination
Yes! A function can return multiple values separated by comma as an array assigned to the function name itself.
Q 8 - Which of the following event is triggered when an object is instantiated in VBScript?
Answer : A
Explaination
Class_Initialize is triggered whenever you instantiate an object based on the class.
Q 9 - Which of the following is used to capture a runtime Error in VBScript?
Answer : A
Explaination
If we want to capture the error, then Err Object is used.
Q 10 - Which of the following is true about date value assignment in VBScript?
A - The date values should be assigned without double quotes.
B - The date values should be enclosed within doublequotes(").
C - The date values should be enclosed within hash symbol(#).
Answer : C
Explaination
The date values should be enclosed within hash symbol.