Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Home
»
C# Programming
»
Namespaces
Which of the following statements is correct about namespaces in C#.NET?
Namespaces can be nested only up to level 5.
A namespace cannot be nested.
There is no limit on the number of levels while nesting namespaces.
If namespaces are nested, then it is necessary to use using statement while using the elements of the inner namespace.
Nesting of namespaces is permitted, provided all the inner namespaces are declared in the same file.
Correct Answer:
There is no limit on the number of levels while nesting namespaces.
Next Question→
More Questions from
Namespaces
Which of the following is absolutely neccessary to use a class Point present in namespace Graph stored in library?
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();
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?
Which of the following statements is correct about the using statement used in C#.NET?
Which of the following CANNOT belong to a C#.NET Namespace?
Which of the following statements is correct about a namespace in C#.NET?
Which of the followings are NOT a .NET namespace? System.Web System.Process System.Data System.Drawing2D System.Drawing3D
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");
Which of the following C#.NET code snippets will correctly print "Hello 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();
Discussion & Comments
No comments yet. Be the first to comment!
Name:
Comment:
Post Comment
Join Discussion
Discussion & Comments