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 - Is it required to specify the type of variable during declaration in VBScript?
No! Since there is only ONE fundamental data type, all the declared variables are variant by default.
Q 2 - Which of the following operator can be used to get the modulus of two numbers in VBScript?
MOD opeator is used to get the modulus of two numbers.
Q 3 - How will you format a number upto 3 decimal places in VBScript?
Using FormatNumber function, which would return an expression formatted as a number.
Q 4 - How will you get the natural logarithm of the given number in VBScript?
Using Log function, which returns the natural logarithm 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 - Which of the following is a correct way to assign a value to an array element in VBScript?
arr(0) = "VBScript" is the correct way.
Yes! A function can return multiple values separated by comma as an array assigned to the function name itself.
Q 8 - What is the purpose of Drive object of Scripting.FileSystemObject class in VBScript?
Drive contains methods and properties that allow you to gather information about a drive attached to the system.
Q 9 - What is the purpose of RegExp object in VBScript?
Both of the above options are correct.
Q 10 - Which of the following is used to clear error in VBScript?
Err.Clear clear an error.