VBScript 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 - Is it required to specify the type of variable during declaration in VBScript?

A - true

B - false

Answer : B

Explaination

No! Since there is only ONE fundamental data type, all the declared variables are variant by default.

Q 2 - Which of the following operator can be used to do an XOR operation in VBScript?

A - ~

B - ^

C - XOR

D - None of the above.

Answer : C

Explaination

XOR is used to do an XOR operation.

Q 3 - Which of the following function of VBScript converts a given number of any variant subtype to Hexadecimal?

A - Hex

B - CInt

C - CLng

D - CSng

Answer : A

Explaination

Hex function converts a given number of any variant subtype to Hexadecimal.

Q 4 - How will you get the natural logarithm of the given number in VBScript?

A - Using FormatNumber Function

B - Using FormatPercent function

C - Using Int function

D - Using Log function

Answer : D

Explaination

Using Log function, which returns the natural logarithm of the given number.

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.

Answer : A

Explaination

Using StrReverse function, which returns a String after reversing the sequece of the characters of the given string.

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 : A

Explaination

This class provides file system objects which help the developers to work with drives, folders and files.

Answer : A

Explaination

The numeric values should be assigned without double quotes.


vbscript_questions_answers.htm

Advertisements