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 variable naming conventions in VBScript?
All of the above options are correct.
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 hexadecimal value of the given number in VBScript?
Using Hex function, which returns the hexadecimal 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 split a string into an array in VBScript?
Using Split function, which returns an array that contains a specified number of values. Split will be based on a Delimiter.
Yes! A function can return multiple values separated by comma as an array assigned to the function name itself.
Q 8 - What is purpose of Scripting.FileSystemObject class in VBScript?
This class provides file system objects which help the developers to work with drives, folders and files.
Q 9 - What is the purpose of TextStream object of Scripting.FileSystemObject class in VBScript?
TextStream enables developers to read and write text files.
& operator concatenates two values. So A & B will give VBScript.