- 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 true about VBScript?
Answer : D
Explaination
All of the above options are correct.
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 function of VBScript converts a given number of any variant subtype to Single?
Answer : D
Explaination
CSng function converts a given number of any variant subtype to Single.
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 - What StrComp(String1, String2) returns if String1 is less than String2 in lexicographical order?
Answer : A
Explaination
StrComp(String1, String2) returns -1 if String1 is less than String2 in lexicographical order.
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.
Answer : A
Explaination
Yes! A function can return multiple values separated by comma as an array assigned to the function name itself.
Q 8 - What is the purpose of File object of Scripting.FileSystemObject class in VBScript?
B - File contains methods and properties that allow developers to create, delete or move a file.
C - File provides a list of all files contained within a folder.
D - File provides methods and properties that allow developers to create, delete or move folders.
Answer : B
Explaination
File contains methods and properties that allow developers to create, delete or move a file.
Q 9 - What is the purpose of Folders object of Scripting.FileSystemObject class in VBScript?
A - Folders provides a list of all the folders within a Folder.
B - Folders contains methods and properties that allow developers to create, delete or move a file.
C - Folders provides a list of all files contained within a folder.
D - Folders provides methods and properties that allow developers to create, delete or move folders.
Answer : A
Explaination
Folders provides a list of all the folders within a Folder.
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