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 2 - Which of the following operator can be used to check if two numbers are equal or not in VBScript?

A - !=

B - <>

C - not

D - None of the above.

Answer : B

Explaination

<> operator is used to check if two numbers are equal or not.

Q 4 - How will you convert a string to lower case string using VBScript?

A - Using Lcase function

B - Using Ucase function

C - Using Ltrim function

D - Using Rtrim function

Answer : A

Explaination

Using Lcase function, which returns the lower case of the specified string.

Q 5 - What StrComp(String1, String2) returns if String1 is same as String2?

A - -1

B - 0

C - 1

D - None of the above.

Answer : B

Explaination

StrComp(String1, String2) returns 0 if String1 is same as String2.

Q 6 - How will you get a string with the specified character the specified number of times in VBScript?

A - Using Replace function

B - Using Compare function

C - Using InStr function

D - Using String function

Answer : D

Explaination

Using String function, which returns a String with a specified character the specified number of times.

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.

Answer : C

Explaination

Both of the above options are correct.

Q 10 - Which of the following is used to get error details in VBScript?

A - Err.Number

B - Err.Description

C - Both of the above.

D - None of the above.

Answer : C

Explaination

Err.Number gives the error number and Err.Description gives error description.


vbscript_questions_answers.htm

Advertisements