- 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 - In Which of the following scope, variables are available to all the procedures across all the associated scripts in VBScript?
Answer : B
Explaination
In Public scope, variables are available to all the procedures across all the associated scripts.
Q 2 - Which of the following is used to create a constant in VBScript?
Answer : B
Explaination
Constants are declared using 'const' keyword.
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 natural logarithm of the given number in VBScript?
A - Using FormatNumber Function
Answer : D
Explaination
Using Log function, which returns the natural logarithm of the given number.
Q 5 - How will you trim the leading as well as trailing spaces of a string using VBScript?
Answer : A
Explaination
Using Trim function, which returns a string value after removing both leading and trailing blank spaces.
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 will you get a subset of a array in VBScript?
Answer : B
Explaination
Using Filter function, returns a zero based array that contains a subset of a string array based on a specific filter criteria.
Q 8 - What is purpose of Scripting.FileSystemObject class in VBScript?
B - This class provides methods to work with drives, folders and files.
Answer : A
Explaination
This class provides file system objects which help the developers to work with drives, folders and files.
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 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.