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 keyword is used to declare a variable in VBScript?
Variables are declared using 'dim' keyword.
Q 2 - Which of the following operator can be used to check if two numbers are equal or not in VBScript?
<> operator is used to check if two numbers are equal or not.
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 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 trim the spaces on the left of a string using VBScript?
Using Ltrim function, which returns a string after removing the spaces on the left side of the specified string.
Q 6 - How will you increase the size of an array in VBScript?
Using ReDim statement, we can declare dynamic-array variables and allocate or reallocate storage space.
Q 7 - How will you get a subset of a array in VBScript?
Using Filter function, returns a zero based array that contains a subset of a string array based on a specific filter criteria.
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.Execute method?
Both of the above options are correct.
+ operator concatenates two Values if values are string. So A + B will give VBScript.