MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

WEB TECHNOLOGY

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which VBScript function can compare two strings?
A
StringCompare
B
Compare
C
StrComp
D
StrCompare
Explanation: 

Detailed explanation-1: -The StrComp function compares two strings and returns a value that represents the result of the comparison. The StrComp function can return one of the following values:-1 (if string1 < string2) 0 (if string1 = string2)

Detailed explanation-2: -Visual Basic compares strings using the Like Operator as well as the numeric comparison operators. The Like operator allows you to specify a pattern. The string is then compared against the pattern, and if it matches, the result is True . Otherwise, the result is False .

Detailed explanation-3: -VBScript Comparison Operators Comparison operators are used to compare two values. Different comparison operators are ==, <>, <, >, <= and >=. Suppose, you have two variables a and b with values 5 and 9 respectively, then the results for the following comparison will be like this: a==b will return false.

Detailed explanation-4: -C strcmp() In this tutorial, you will learn to compare two strings using the strcmp() function. The strcmp() compares two strings character by character. If the strings are equal, the function returns 0.

Detailed explanation-5: -Performs a comparison by using the setting of the Option Compare statement. Performs a binary comparison. Performs a textual comparison.

There is 1 question to complete.