adplus-dvertising
frame-decoration

Question

What will be the value of num after the following Visual Basic code is executed?
strName=”Veronica Yardley”
num=strName.Length

a.

15

b.

16

c.

14

d.

17

Posted under Visual Basic

Answer: (b).16

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What will be the value of num after the following Visual Basic code is executed?

Similar Questions

Discover Related MCQs

Q. _____________________ method allows you to insert anywhere in the string.

Q. ____________________ and ____________________ methods are used to align characters in a String.

Q. If the padCharacter is omitted from the syntax of the padLeft or PadRight, the default is ______________

Q. The ________________ method pads the string on left, that is, it inserts the padded characters at the beginning of string.

Q. To determine whether a string has specific sequence of characters, use _________________

Q. The ______________ argument in syntax of Contains method represents the sequence of arguments you are searching.

Q. The Contains Method returns ______________ value.

Q. The Indexof method returns ________________ value.

Q. ________________ method is used for accessing any number of characters in a String.

Q. _________________ argument in the Substring syntax specifies number of characters you want to access.

Q. The _______________ operator allows you to use pattern matching characters to determine whether one String is equal to another String.

Q. The ___________ in a pattern represents one character only.

Q. The _____________ in a pattern represents zero or more characters.

Q. The _____________ in a pattern represents a single digit.

Q. The Like operator returns _______________ value.

Q. Which of the following expressions evaluates to True when the strPart variable contains the string “123X45”?

Q. You use ______________ to include one or more menus on a Windows form.

Q. The list of items displayed by menu title are known as ________________

Q. Each of the options on the submenu are referred to as ________

Q. ______________ is used to visually group together related items on a menu or submenu.