- 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?
A - VBScript is an object-based scripting language and NOT an Object-Oriented Programming language.
Answer : D
Explaination
All of the above options are correct.
Q 2 - Which of the following operator is supported in VBScript?
Answer : D
Explaination
All of the above operators are supported in VBScript.
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 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 convert a string to upper case string using VBScript?
Answer : B
Explaination
Using Ucase function, which returns the upper case of the specified string.
Q 6 - What StrComp(String1, String2) returns if String1 is greater than String2 in lexicographical order?
Answer : C
Explaination
StrComp(String1, String2) returns 1 if String1 is greater than String2 in lexicographical order.
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 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 - Which of the following is correct about RegExp.Test method?
Answer : C
Explaination
Both of the above options are correct.
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.
To Continue Learning Please Login
Login with Google