Namespaces

Q1: Which of the following is correct way to rewrite the C#.NET code snippet given below?
using Microsoft.VisualBasic;
using System.Windows.Forms;
MessageBox.Show('Wait for a' + ControlChars.CrLf + 'miracle');

A
using System.Windows.Forms;
using CtrlChars = Microsoft.VisualBasic.ControlChars; 
MessageBox.Show('Wait for a' + CrLf + 'miracle');

B
using Microsoft.VisualBasic; 
using System.Windows.Forms; 
CtrlChars = ControlChars;
MessageBox.Show('Wait for a' + CtrlChars.CrLf + 'miracle');

C
using Microsoft.VisualBasic; 
using System.Windows.Forms; 
CtrlChars = ControlChars; 
MessageBox.Show ('Wait for a' + CrLf + 'miracle');

D using System.Windows.Forms; using CtrlChars = Microsoft.VisualBasic.ControlChars; MessageBox.Show('Wait for a' + CtrlChars.CrLf + 'miracle');

ANS:A -

using System.Windows.Forms;
using CtrlChars = Microsoft.VisualBasic.ControlChars; 
MessageBox.Show('Wait for a' + CrLf + 'miracle');

No answer description is available. Let's discuss.



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.