Vidyalelo
Computer Science · Q493

Visual Basic MCQs: Test Your Proficiency in Visual Basic Programming

Engineering and GATE · Computer Science · question 493

Q493

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 &
Answer
D.
Should have ended with a ;

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board