- 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 - 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 - Is it required to specify the type of variable during declaration in VBScript?
Answer : B
Explaination
No! Since there is only ONE fundamental data type, all the declared variables are variant by default.
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 - 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 octal value of the given number in VBScript?
Answer : A
Explaination
Using Oct function, which returns the octal value of the given number.
Q 5 - What StrComp(String1, String2) returns if String1 is same as String2?
Answer : B
Explaination
StrComp(String1, String2) returns 0 if String1 is same as String2.
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.
Answer : A
Explaination
Yes! A function can return multiple values separated by comma as an array assigned to the function name itself.
Q 8 - Which of the following is correct about classes in VBScript?
A - VBScript classes are enclosed within Class .... End Class
B - Classes can contain variables, which can be of private or public.
C - Variables within classes should follow VBScript naming conventions.
Answer : D
Explaination
All of the above options are correct.
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 time value assignment in VBScript?
A - The time values should be assigned without double quotes.
B - The time values should be enclosed within doublequotes(").
C - The time values should be enclosed within hash symbol(#).
Answer : C
Explaination
The time values should be enclosed within hash symbol.