
- 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 correct about variable declared using 'Private' in VBScript?
B - When declaring a variable of type 'Private', Dim keyword is replaced by 'Private'.
Answer : C
Explaination
Variables that are declared as 'Private' have scope only within that script in which they are declared. When declaring a variable of type 'Private', Dim keyword is replaced by 'Private'.
Q 2 - What is the scope of a constant declared using Public in VBScript?
A - The Public constants are available for all the scripts and procedures.
B - The Public Constants are available within the procedure or Class.
Answer : A
Explaination
The Public constants are available for all the scripts and procedures.
Q 3 - Which of the following function of VBScript converts a given number of any variant subtype to Double?
Answer : A
Explaination
CDbl function converts a given number of any variant subtype to Double.
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 right of a string using VBScript?
Answer : D
Explaination
Using Rtrim function, which returns a string after removing the spaces on the right side of the specified 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 - 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 - What is the purpose of Drive object of Scripting.FileSystemObject class in VBScript?
B - Drive contains methods and properties that allow developers to create, delete or move a file.
C - Drive provides a list of all files contained within a folder.
D - Drive provides methods and properties that allow developers to create, delete or move folders.
Answer : A
Explaination
Drive contains methods and properties that allow you to gather information about a drive attached to the system.
Q 9 - What is the purpose of Folder object of Scripting.FileSystemObject class in VBScript?
B - Folder contains methods and properties that allow developers to create, delete or move a file.
C - Folder provides a list of all files contained within a folder.
D - Folder provides methods and properties that allow developers to create, delete or move folders.
Answer : D
Explaination
Folder provides methods and properties that allow developers to create, delete or move folders.
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.