- 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?
Answer : D
Explaination
All of the above options are correct.
Q 2 - What is the scope of a constant declared using Private in VBScript?
A - The Private constants are available for all the scripts and procedures.
B - The Private Constants are available within the procedure or Class.
Answer : B
Explaination
The Private Constants are available within the procedure or Class.
Q 3 - How will you format a number in percetage format in VBScript?
A - Using FormatNumber Function
Answer : B
Explaination
Using FormatPercent function, which would return an expression formatted as a percent.
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 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 get a string with the specified character the specified number of times in VBScript?
Answer : D
Explaination
Using String function, which returns a String with a specified character the specified number of times.
Q 7 - Which of the following statements creates an object in VBScript?
A - Set obj = CreateObject("Scripting.Dictionary")
Answer : A
Explaination
Set obj = CreateObject("Scripting.Dictionary") creates an object.
Q 8 - Which of the following statements destroys an object in VBScript?
Answer : B
Explaination
Set obj = Nothing destroys an object.
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 string value assignment in VBScript?
A - The string values should be assigned without double quotes.
B - The string values should be enclosed within doublequotes(").
C - The string values should be enclosed within hash symbol(#).
Answer : B
Explaination
The string values should be enclosed within doublequotes.