Question
a.
namespace CompSciBitsConsoleApplication
{
class MyProgram
{
static void Main(string[] args)
{
import n1;
Point x = new Point();
x.fun();
import n2;
Point y = new Point();
y.fun();
}
}
}
b.
import n1;
import n2;
namespace CompSciBitsConsoleApplication
{
class MyProgram
{
static void Main(string[] args)
{
n1.Point x = new n1.Point();
x.fun();
n2.Point y = new n2.Point();
y.fun();
}
}
}
c.
namespace CompSciBitsConsoleApplication
{
class MyProgram
{
static void Main(string[] args)
{
using n1;
Point x = new Point();
x.fun();
using n2;
Point y = new Point();
y.fun();
}
}
}
d.
using n1;
using n2;
namespace CompSciBitsConsoleApplication
{
class MyProgram
{
static void Main(string[] args)
{
n1.Point x = new n1.Point();
x.fun();
n2.Point y = new n2.Point();
y.fun();
}
}
}
Posted under C# programming
using n2;
namespace CompSciBitsConsoleApplication
{
class MyProgram
{
static void Main(string[] args)
{
n1.Point x = new n1.Point();
x.fun();
n2.Point y = new n2.Point();
y.fun();
}
}
}
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. 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?
Similar Questions
Discover Related MCQs
Q. Which of the following statements is correct about namespaces in C#.NET?
View solution
Q. Which of the following statements is correct about the using statement used in C#.NET?
View solution
Q. Which of the following CANNOT belong to a C#.NET Namespace?
View solution
Q. Which of the following statements is correct about a namespace used in C#.NET?
View solution
Q. Which of the following C#.NET code snippets will correctly print "Hello C#.NET"?
View solution
Q. Which of the following is not a namespace in the .NET Framework Class Library?
View solution
Q. Which is the correct statement about the namespaces in C#.NET?
View solution
Q. Which among the following does not belong to the C#.NET namespace?
View solution
Q. Which among the following is a correct statement about namespace used in C#.NET?
View solution
Q. Which among the following statements are not correct about a namespace used in C#.NET?
View solution
Q. Which among the following is a .NET namespace?
View solution
Q. If ListBox is the class of System.Windows.Forms namespace.Then,correct way to create an object of ListBox class is?
View solution
Q. Which among the following is the correct statement about the using statement used in C#.NET?
View solution
Q. Choose the symbol which begins a preprocessor directive in C#.NET?
View solution
Q. What is meant by preprocessor directive in C#.NET?
View solution
Q. What is meant by preprocessor directive #define?
View solution
Q. Select the defined preprocessor in C#.NET?
View solution
Q. What does preprocessor directive #if and #endif explains?
View solution
Q. Which preprocessor directive among the following forces the compiler to stop the compilation?
View solution
Q. Which among the following is not a preprocessor directive?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond C# programming? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!