If a class called Point is present in namespace n1 as well as in namespace n2, then which of the following is the correct way to use the Point class?
namespace IndiabixConsoleApplication
{
class MyProgram
{
static void Main(string[] args)
{
import n1;
Point x = new Point();
x.fun();
import n2;
Point y = new Point();
y.fun();
}
}
}import n1;
import n2;
namespace IndiabixConsoleApplication
{
class MyProgram
{
static void Main(string[] args)
{
n1.Point x = new n1.Point();
x.fun();
n2.Point y = new n2.Point();
y.fun();
}
}
}namespace IndiabixConsoleApplication
{
class MyProgram
{
static void Main(string[] args)
{
using n1;
Point x = new Point();
x.fun();
using n2;
Point y = new Point();
y.fun();
}
}
}using n1;
using n2;
namespace IndiabixConsoleApplication
{
class MyProgram
{
static void Main(string[] args)
{
n1.Point x = new n1.Point();
x.fun();
n2.Point y = new n2.Point();
y.fun();
}
}
}Which of the following statements are correct about a namespace used in C#.NET?
If a namespace is present in a library then which of the following is the correct way to use the elements of the namespace?
Which of the followings are NOT a .NET namespace?
Which of the following CANNOT belong to a C#.NET Namespace?
Which of the following is NOT a namespace in the .NET Framework Class Library?
Which of the following statements is correct about namespaces in C#.NET?
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");using System.Windows.Forms;
using CtrlChars = Microsoft.VisualBasic.ControlChars;
MessageBox.Show("Wait for a" + CrLf + "miracle");using Microsoft.VisualBasic;
using System.Windows.Forms;
CtrlChars = ControlChars;
MessageBox.Show("Wait for a" + CtrlChars.CrLf + "miracle");using Microsoft.VisualBasic;
using System.Windows.Forms;
CtrlChars = ControlChars;
MessageBox.Show ("Wait for a" + CrLf + "miracle");using System.Windows.Forms;
using CtrlChars = Microsoft.VisualBasic.ControlChars;
MessageBox.Show("Wait for a" + CtrlChars.CrLf + "miracle");Which of the following statements is correct about a namespace used in C#.NET?
Which of the following statments are the correct way to call the method Issue() defined in the code snippet given below?
namespace College
{
namespace Lib
{
class Book
{
public void Issue()
{
// Implementation code
}
}
class Journal
{
public void Issue()
{
// Implementation code
}
}
}
}
College.Lib.Book b = new College.Lib.Book();
b.Issue();
Book b = new Book();
b.Issue();
using College.Lib;
Book b = new Book();
b.Issue();
using College;
Lib.Book b = new Lib.Book();
b.Issue();
using College.Lib.Book;
Book b = new Book();
b.Issue();
Which of the following statements is correct about the using statement used in C#.NET?
Which of the following C#.NET code snippets will correctly print "Hello C#.NET"?
import System;
namespace IndiabixConsoleApplication
{
class MyProgram
{
static void Main(string[] args)
{
Console.WriteLine("Hello C#.NET");
}
}
}using System;
namespace IndiabixConsoleApplication
{
class MyProgram
{
static void Main(string[ ] args)
{
WriteLine("Hello C#.NET");
}
}
}using System.Console;
namespace IndiabixConsoleApplication
{
class MyProgram
{
static void Main (string[ ] args)
{
WriteLine("Hello C#.NET");
}
}
}using System;
namespace IndiabixConsoleApplication
{
class MyProgram
{
static void Main(string[] args)
{
Console.WriteLine("Hello C#.NET");
}
}
}Which of the following statements is correct about a namespace in C#.NET?
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?
using System.Windows.Forms;
ListBox lb = new ListBox();
using LBControl = System.Windows.Forms;
LBControl lb = new LBControl();
System.Windows.Forms.ListBox lb = new System.Windows.Forms.ListBox();
using LBControl lb = new System.Windows.Forms.ListBox;
using LBControl = System.Windows.Forms.ListBox;
LBControl lb = new LBControl();
Which of the following is absolutely neccessary to use a class Point present in namespace Graph stored in library?