
- 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 true about VBScript?
A - VBScript is an object-based scripting language and NOT an Object-Oriented Programming language.
Answer : D
Explaination
All of the above options are correct.
Q 2 - Which of the following operator can be used to get the modulus of two numbers in VBScript?
Answer : A
Explaination
MOD opeator is used to get the modulus of two numbers.
Q 3 - How will you format a number upto 3 decimal places in VBScript?
A - Using FormatNumber Function
Answer : A
Explaination
Using FormatNumber function, which would return an expression formatted as a number.
Q 4 - How will you get the square root of the given number in VBScript?
Answer : D
Explaination
Using Sqr function, which returns the square root of the given number.
Q 5 - How will you convert a string to upper case string using VBScript?
Answer : B
Explaination
Using Ucase function, which returns the upper case of the specified 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.
Q 7 - How to pass argument by reference to a function in VBScript?
Answer : B
Explaination
If ByRef is specified, then the arguments are sent as by reference when the function or procedure is called.
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 correct about RegExp object?
Answer : D
Explaination
All of the above options are correct.
Q 10 - Which of the following is used to get error details in VBScript?
Answer : C
Explaination
Err.Number gives the error number and Err.Description gives error description.