- 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 correct about variable declared using 'Dim' in VBScript?
Answer : C
Explaination
Variables declared using 'Dim' keyword at a Procedure level are available only within the same procedure. Variables declared using 'Dim' Keyword at script level are available to all the procedures within the same script.
Q 2 - Which of the following operator can be used to get the exponent of two numbers in VBScript?
Answer : B
Explaination
^ opeator is used to get the exponent of two numbers.
Q 3 - How will you get the integer part of a number in VBScript?
A - Using FormatNumber Function
Answer : C
Explaination
Using Int function, which returns the integer part of the given number.
Q 4 - How will you get the hexadecimal value of the given number in VBScript?
Answer : B
Explaination
Using Hex function, which returns the hexadecimal value of the given number.
Q 5 - How will you compare two strings in VBScript?
Answer : A
Explaination
Using StrComp function, which returns an integer value after comparing the two specified strings.
Q 6 - Which of the following is a correct way to declare array in VBScript?
Answer : D
Explaination
All of the above options are correct.
Q 7 - Which of the following is correct about subprocedures in VBScript?
A - Sub procedures do not return a value while functions may or may not return a value.
B - Sub procedures can be called without call keyword.
C - Sub procedures are always enclosed within Sub and End Sub statements.
Answer : D
Explaination
All of the above options are correct.
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.
Answer : B
Explaination
& operator concatenates two values. So A + B will give 510.