- VBScript Tutorial
- 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 Advanced
- 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 correct about variable declared using 'Dim' in VBScript?
Answer : C
Explaination
Variables declared using 'Dim' keyword at a Procedure level are available only within the same procedure. Variables declared using 'Dim' Keyword at script level are available to all the procedures within the same script.
Answer : A
Explaination
Yes! VBScript can also manipulate cookies using the cookie property of the Document object.
Q 3 - Which of the following function of VBScript converts a given number of any variant subtype to Integer?
Answer : B
Explaination
CInt function converts a given number of any variant subtype to Integer.
Q 4 - How will you get the hexadecimal value of the given number in VBScript?
Answer : B
Explaination
Using Hex function, which returns the hexadecimal value of the given number.
Q 5 - How will you trim the spaces on the left of a string using VBScript?
Answer : C
Explaination
Using Ltrim function, which returns a string after removing the spaces on the left side of the specified string.
Q 6 - Which of the following is a correct way to declare array in VBScript?
Answer : D
Explaination
All of the above options are correct.
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 is correct about classes in VBScript?
A - Class is a construct that is used to define a unique type.
Answer : D
Explaination
All of the above options are correct.
Q 9 - Which of the following is used to throw an error in VBScript?
Answer : A
Explaination
Use Err.Raise to throw an error.
Q 10 - Which of the following is true about numeric value assignment in VBScript?
A - The numeric values should be assigned without double quotes.
B - The numeric values should be enclosed within doublequotes(").
C - The numeric values should be enclosed within hash symbol(#).
Answer : A
Explaination
The numeric values should be assigned without double quotes.