- 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 - Which of the following is correct about variable declared using 'Private' in VBScript?
B - When declaring a variable of type 'Private', Dim keyword is replaced by 'Private'.
Answer : C
Explaination
Variables that are declared as 'Private' have scope only within that script in which they are declared. When declaring a variable of type 'Private', Dim keyword is replaced by 'Private'.
Answer : A
Explaination
+ operator adds two Values as Variable Values are Numeric. So A + B will give 15.
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 absolute value of the given number in VBScript?
Answer : A
Explaination
Using Abs function, which returns the absolute value of the given number.
Q 5 - How will you get length of a string using VBScript?
Answer : B
Explaination
Using Len function, which returns the length of the given string.
Q 6 - How will you reverse a String in VBScript?
Answer : A
Explaination
Using StrReverse function, which returns a String after reversing the sequece of the characters of the given string.
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 - Which of the following is correct about classes in VBScript?
A - Class is a construct that is used to define a unique type.
Answer : D
Explaination
All of the above options are correct.
Q 9 - Which of the following is correct about RegExp.Replace method?
B - If there are no match then the original search-string is returned.
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.