VBScript Online Quiz
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?
Answer : B
Explaination
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 do an XOR operation in VBScript?
Answer : C
Explaination
XOR is used to do an XOR operation.
Q 3 - Which of the following function of VBScript converts a given number of any variant subtype to Hexadecimal?
Answer : A
Explaination
Hex function converts a given number of any variant subtype to Hexadecimal.
Q 4 - How will you get the natural logarithm of the given number in VBScript?
A - Using FormatNumber Function
Answer : D
Explaination
Using Log function, which returns the natural logarithm of the given number.
Q 5 - What StrComp(String1, String2) returns if String1 is same as String2?
Answer : B
Explaination
StrComp(String1, String2) returns 0 if String1 is same as String2.
Q 6 - How will you reverse a String in VBScript?
Answer : A
Explaination
Using StrReverse function, which returns a String after reversing the sequece of the characters of the given string.
Q 7 - How will you get a subset of a array in VBScript?
Answer : B
Explaination
Using Filter function, returns a zero based array that contains a subset of a string array based on a specific filter criteria.
Q 8 - What is purpose of Scripting.FileSystemObject class in VBScript?
B - This class provides methods to work with drives, folders and files.
Answer : A
Explaination
This class provides file system objects which help the developers to work with drives, folders and files.
Q 9 - Which of the following is correct about RegExp object?
Answer : D
Explaination
All of the above options are correct.
Q 10 - Which of the following is true about numeric value assignment in VBScript?
A - The numeric values should be assigned without double quotes.
B - The numeric values should be enclosed within doublequotes(").
C - The numeric values should be enclosed within hash symbol(#).
Answer : A
Explaination
The numeric values should be assigned without double quotes.