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 true about VBScript?
All of the above options are correct.
Yes! VBScript can also manipulate cookies using the cookie property of the Document object.
Q 3 - How will you format a number in percetage format in VBScript?
Using FormatPercent function, which would return an expression formatted as a percent.
Q 4 - How will you get the exponent of the given number in VBScript?
Using Exp function, which returns the value of e raised to the specified number.
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 - 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 File object of Scripting.FileSystemObject class in VBScript?
File contains methods and properties that allow developers to create, delete or move a file.
Q 9 - Which of the following is used to throw an error in VBScript?
Use Err.Raise to throw an error.
& operator concatenates two values. So A + B will give 510.