Spring Online Quiz


Advertisements


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.

Questions and Answers

Q 1 - In Which of the following scope, variables are available to all the procedures across all the associated scripts in VBScript?

A - Dim

B - Public

C - Private

D - All of the above.

Answer : B

Explaination

In Public scope, variables are available to all the procedures across all the associated scripts.

Q 2 - Which of the following operator is supported in VBScript?

A - Arithmetic Operators

B - Comparison Operators

C - Logical Operators

D - All of the above.

Answer : D

Explaination

All of the above operators are supported in VBScript.

Q 3 - How will you format a number in percetage format in VBScript?

A - Using FormatNumber Function

B - Using FormatPercent function

C - Using Int function

D - Using Log function

Answer : B

Explaination

Using FormatPercent function, which would return an expression formatted as a percent.

Q 4 - How will you get a random number between 0 and 1 in VBScript?

A - Using Oct function

B - Using Hex function

C - Using Rnd function

D - Using Sqr function

Answer : C

Explaination

Using Rnd function,which returns a random number between 0 and 1.

Answer : A

Explaination

Using StrComp function, which returns an integer value after comparing the two specified strings.

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 release the memory acquired by an array variable in VBScript?

A - Using Join function

B - Using Filter function

C - Using IsArray function

D - Using Erase Function

Answer : D

Explaination

Using Erase Function, which recovers the allocated memory for the array variables.

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 used to throw an error in VBScript?

A - Err.raise

B - throw Err.

C - Both of the above.

D - None of the above.

Answer : A

Explaination

Use Err.Raise to throw an error.

Q 10 - What is the output of A + B in VBScript if A = "VB" and B = "Script"?

A - VBScript

B - Error

Answer : A

Explaination

+ operator concatenates two Values if values are string. So A + B will give VBScript.


vbscript_questions_answers.htm

Advertisements