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 'Public' in VBScript?
Variables declared using 'Public' Keyword are available to all the procedures across all the associated scripts. When declaring a variable of type 'public', Dim keyword is replaced by 'Public'.
Q 2 - Which of the following operator can be used to do an XOR operation in VBScript?
XOR is used to do an XOR operation.
Q 3 - Which of the following is the correct syntax to create a cookie using VBScript?
document.cookie = 'key1 = value1; key2 = value2; expires = date'; is the correct option.
Q 4 - How will you get the absolute value of the given number in VBScript?
Using Abs function, which returns the absolute value of the given number.
Q 5 - How will you convert a string to upper case string using VBScript?
Using Ucase function, which returns the upper case of the specified string.
Q 6 - How will you split a string into an array in VBScript?
Using Split function, which returns an array that contains a specified number of values. Split will be based on a Delimiter.
Q 7 - Which of the following is correct about subprocedures in VBScript?
All of the above options are correct.
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 used to throw an error in VBScript?
Use Err.Raise to throw an error.
Q 10 - Which of the following is true about numeric value assignment in VBScript?
The numeric values should be assigned without double quotes.