- 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 can be used to do an XOR operation in VBScript?
Answer : C
Explaination
XOR is used to do an XOR operation.
Q 3 - Which of the following is the correct syntax to create a cookie using VBScript?
A - document.cookie = 'key1 = value1; key2 = value2; expires = date';
B - browser.cookie = 'key1 = value1; key2 = value2; expires = date';
C - window.cookie = 'key1 = value1; key2 = value2; expires = date';
D - navigator.cookie = 'key1 = value1; key2 = value2; expires = date';
Answer : A
Explaination
document.cookie = 'key1 = value1; key2 = value2; expires = date'; is the correct option.
Q 4 - How will you get the exponent of the given number in VBScript?
Answer : B
Explaination
Using Exp function, which returns the value of e raised to the specified number.
Q 5 - How will you trim the leading as well as trailing spaces of a string using VBScript?
Answer : A
Explaination
Using Trim function, which returns a string value after removing both leading and trailing blank spaces.
Q 6 - How will you increase the size of an array in VBScript?
Answer : A
Explaination
Using ReDim statement, we can declare dynamic-array variables and allocate or reallocate storage space.
Q 7 - How will you get a subset of a array in VBScript?
Answer : B
Explaination
Using Filter function, returns a zero based array that contains a subset of a string array based on a specific filter criteria.
Q 8 - Which of the following statements destroys an object in VBScript?
Answer : B
Explaination
Set obj = Nothing destroys an object.
Q 9 - Which of the following is correct about RegExp.Execute 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