adplus-dvertising
frame-decoration

Question

What is wrong with the below statement?
Msg.Text=”This is an example”&ControlChars.NewLine&“Example”.

a.

Used double quotes, should have used single quotes

b.

No errors

c.

There should be spaces before and after each &

d.

Should have ended with a ;

Posted under Visual Basic

Answer: (c).There should be spaces before and after each &

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is wrong with the below statement?

Similar Questions

Discover Related MCQs

Q. What is the specialty of the Default button?

Q. The Cancel Button’s procedure is accessed by __________ key.

Q. How many default buttons can a form have?

Q. How is a default button designated?

Q. What is the correct syntax to designate a default button?

Q. __________ is used to add a GroupBox to the interface.

Q. __________ is used to separate related controls from other controls in the form.

Q. When you delete a groupbox the controls inside it are __________

Q. Use __________ for the optional label entered in the groupbox’s text property.

Q. The __________ method creates a periodic payment on either a loan or an investment.

Q. The number that appears after the period in the __________ value indicates the order in which the controls were added to the groupbox.

Q. The TabIndex value of a group box is 5. If the txtName control was the first control added to the group box, its TabIndex value will be __________

Q. Which of the following calculates the quarterly payment on a loan of $6000 for 3 years at 9% interest? Payments should be expressed as a negative number.

Q. An application communicates with the user through __________

Q. One can display a message box using the __________ method.

Q. When referring to the method’s return value in code, one should use the __________ value rather than the integer.

Q. You use the __________ constant to include the Exclamation icon in a message box.

Q. The text box’s __________ event procedure prevents user from entering a specified character.

Q. A control’s KeyPress event occurs every time __________

Q. The procedure associated with the KeyPress event has __________ parameters.