adplus-dvertising
frame-decoration

Question

What output will be returned if the following Visual Basic code is executed?
strCityState = "Nashville, TN"
intCharIndex = strCityState.IndexOf("TN")

a.

True

b.

False

c.

11

d.

12

Answer: (c).11

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What output will be returned if the following Visual Basic code is executed?

Similar Questions

Discover Related MCQs

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.

Q. Each menu element is considered as _______________

Q. The programmer use ______________ property to refer to menu element in code.

Q. The ____________ indicates the purpose of the menu element.

Q. ________________ capitalization is used for menu item captions.

Q. Each menu title should have an unique ______________

Q. Each menu item should have an _______________ that is unique within its menu.

Q. A simple variable, also called as a ________ variable, is one that is unrelated to any other variable in memory.

Q. When you group together related variables, the group is referred to as _________