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 - What is the output of A + B in VBScript if A = 5 and B = 10?

A - 15

B - 510

Answer : A

Explaination

+ operator adds two Values as Variable Values are Numeric. So A + B will give 15.

Answer : C

Explaination

Using Int function, which returns the integer part of the given number.

Q 4 - How will you get the octal value of the given number in VBScript?

A - Using Oct function

B - Using Hex function

C - Using Rnd function

D - Using Sqr function

Answer : A

Explaination

Using Oct function, which returns the octal value of the given number.

Q 5 - How will you replace a string with another string using VBScript?

A - Using Trim function

B - Using Len function

C - Using Replace function

D - Using Space function

Answer : C

Explaination

Using Replace function, which returns a string after replacing a string with another string.

Q 6 - How will you split a string into an array in VBScript?

A - Using ReDim statement

B - Using LBound function

C - Using UBound function

D - Using Split function

Answer : D

Explaination

Using Split function, which returns an array that contains a specified number of values. Split will be based on a Delimiter.

Q 7 - How will you check that a variable is an array in VBScript?

A - Using Join function

B - Using Filter function

C - Using IsArray function

D - Using Erase Function

Answer : C

Explaination

Using IsArray function, which returns a boolean value that indicates whether or not the input variable is an array.

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
E-Books Store