
- 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
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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 variable naming conventions in VBScript?
A - Variable name must begin with an alphabet.
B - Variable names cannot exceed 255 characters.
Answer : D
Explaination
All of the above options are correct.
Answer : A
Explaination
+ operator adds two Values as Variable Values are Numeric. So A + B will give 15.
Q 3 - How will you format a number upto 3 decimal places in VBScript?
A - Using FormatNumber Function
Answer : A
Explaination
Using FormatNumber function, which would return an expression formatted as a number.
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 - 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 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 will you check that a variable is an array in VBScript?
Answer : C
Explaination
Using IsArray function, which returns a boolean value that indicates whether or not the input variable is an array.
Q 8 - What is the purpose of Files object of Scripting.FileSystemObject class in VBScript?
B - Files contains methods and properties that allow developers to create, delete or move a file.
C - Files provides a list of all files contained within a folder.
D - Files provides methods and properties that allow developers to create, delete or move folders.
Answer : C
Explaination
Files provides a list of all files contained within a folder.
Q 9 - Which of the following is correct about RegExp object?
Answer : D
Explaination
All of the above options are correct.
Answer : B
Explaination
& operator concatenates two values. So A + B will give 510.