Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Namespaces Questions
Which of the following statements is correct about namespaces in C#.NET?
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();
Which of the following is NOT a namespace in the .NET Framework Class Library?
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 following statements is correct about a namespace used in C#.NET?
Which of the following statements are correct about a namespace used in C#.NET? Classes must belong to a namespace, whereas structures need not. Every class, struct, enum, delegate and interlace has to belong to some or the other namespace. All elements of the namespace have to belong to one file. If not mentioned, a namespace takes the name of the current project. The namespace should be imported to be able to use the elements in it.