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 exponent of two numbers in VBScript?
^ opeator is used to get the exponent of two numbers.
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 octal value of the given number in VBScript?
Using Oct function, which returns the octal value of the given 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 a combined string from array of string in VBScript?
Using Join function, which returns a String that contains a specified number of substrings in an array.
Q 7 - How will you check that a variable is an array in VBScript?
Using IsArray function, which returns a boolean value that indicates whether or not the input variable is an array.
Q 8 - Which of the following is correct about classes in VBScript?
All of the above options are correct.
Q 9 - Which of the following is correct about RegExp.Test method?
Both of the above options are correct.
+ operator concatenates two Values if values are string. So A + B will give VBScript.