VISUAL BASIC

VISUAL PROGRAMMING

VISUAL BASIC

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Assume that the value of the string message is “Happy New Year". What value would message.IndexOf("New") yield?
A
-1
B
2
C
6
D
7
Explanation: 

Detailed explanation-1: -The contains() method checks whether a string contains a sequence of characters. Returns true if the characters exist and false if not.

Detailed explanation-2: -Explanation: Each menu element is considered an object; therefore, each has a set of properties associated with it. The most commonly used properties for a menu element are the Name and Text properties. The programmer uses the Name property to refer to the menu element in code.

Detailed explanation-3: -Returns a Boolean value that indicates whether an expression contains no valid data (Null). The required expressionargument is a Variant containing a numeric expression or string expression. IsNull returns True if expression is Null; otherwise, IsNull returns False.

There is 1 question to complete.