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?
All of the above options are correct.
Q 2 - Which of the following is used to create a constant in VBScript?
Constants are declared using 'const' keyword.
Q 3 - Which of the following function of VBScript converts a given number of any variant subtype to Long?
CLng function converts a given number of any variant subtype to Long.
Q 4 - How will you get the exponent of the given number in VBScript?
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?
Using Trim function, which returns a string value after removing both leading and trailing blank spaces.
Q 6 - How will you get the largest subscript of an array in VBScript?
Using UBound function, which returns an integer that corresponds to the largest subscript of the given arrays.
Q 7 - How will you release the memory acquired by an array variable in VBScript?
Using Erase Function, which recovers the allocated memory for the array variables.
Q 8 - Which of the following event is triggered when an object is instantiated in VBScript?
Class_Initialize is triggered whenever you instantiate an object based on the class.
Q 9 - Which of the following is correct about RegExp.Replace method?
Both of the above options are correct.
Q 10 - Which of the following is true about date value assignment in VBScript?
The date values should be enclosed within hash symbol.