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 a valid scope in VBScript?
All of the above are valid scopes in VBScript.
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 true about cookie handling in VBScript?
Both of the above options are correct.
Q 4 - How will you get a random number between 0 and 1 in VBScript?
Using Rnd function,which returns a random number between 0 and 1.
Q 5 - How will you replace a string with another string using VBScript?
Using Replace function, which returns a string after replacing a string with another 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 statements creates an object in VBScript?
Set obj = CreateObject("Scripting.Dictionary") creates an object.
Q 8 - Which of the following statements destroys an object in VBScript?
Set obj = Nothing destroys an object.
Q 9 - What is the purpose of TextStream object of Scripting.FileSystemObject class in VBScript?
TextStream enables developers to read and write text files.
Q 10 - Which of the following is used to get error details in VBScript?
Err.Number gives the error number and Err.Description gives error description.