Namespaces

Q1: If ListBox is class present in System.Windows.Forms namespace, then which of the following statements are the correct way to create an object of ListBox Class?
  1. using System.Windows.Forms; 
    ListBox lb = new ListBox();
  2. using LBControl = System.Windows.Forms;
    LBControl lb = new LBControl();
  3. System.Windows.Forms.ListBox lb = new System.Windows.Forms.ListBox();
  4. using LBControl lb = new System.Windows.Forms.ListBox;
  5. using LBControl = System.Windows.Forms.ListBox; 
    LBControl lb = new LBControl();

A 1, 3

B 2, 4, 5

C 1, 3, 5

D 5 only

ANS:A - 1, 3

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.