- 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 - 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 operator can be used to do an XOR operation in VBScript?
Answer : C
Explaination
XOR is used to do an XOR operation.
Q 3 - Which of the following is true about cookie handling in VBScript?
A - VBScript can manipulate cookies using the cookie property of the Document object.
Answer : C
Explaination
Both of the above options are correct.
Q 4 - How will you get the last occurrence of one string within another string using VBScript?
Answer : D
Explaination
Using InStrRev function, which returns the first occurrence of one string within another string. The search happens from right to left.
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 get the largest subscript of an array in VBScript?
Answer : C
Explaination
Using UBound function, which returns an integer that corresponds to the largest subscript of the given arrays.
Q 7 - How to pass argument by value to a function in VBScript?
Answer : A
Explaination
If ByVal is specified, then the arguments are sent as by value when the function or procedure is called.
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 used to clear error in VBScript?
Answer : A
Explaination
Err.Clear clear an error.
To Continue Learning Please Login
Login with Google