ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Programming Languages  >>  C++  >>  OOPS
 
 


 

 
 STL interview questions  STL Interview Questions
 OOPS interview questions  OOPS Interview Questions
 C++ General interview questions  C++ General Interview Questions
Question
What is namespace?
 Question Submitted By :: Tribhuvan Sharma
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is namespace?
Answer
# 1
A namespace is an abstract container or environment created 
to hold a logical grouping of unique identifiers (i.e., 
names). 
Namespaces allow to group entities like classes, objects 
and functions under a name.
 
Is This Answer Correct ?    17 Yes 2 No
Kiruthika
 
  Re: What is namespace?
Answer
# 2
namespace is a one of the problems solved by namespaces, 
that of conflicting class names
 
Is This Answer Correct ?    2 Yes 12 No
Kumarasamy
 
 
 
  Re: What is namespace?
Answer
# 3
it is used to solve the problem when there is conflict 
between class names
 
Is This Answer Correct ?    4 Yes 11 No
Naveen Kumar
 
  Re: What is namespace?
Answer
# 4
namespace is used to avoid class name collision.
 
Is This Answer Correct ?    14 Yes 4 No
Vadivel
 
  Re: What is namespace?
Answer
# 5
Namespace is logical group of classes.It can span multiple 
assembly.
 
Is This Answer Correct ?    4 Yes 9 No
Ritesh Kumar Rawat
 
  Re: What is namespace?
Answer
# 6
Namespace is a group of classes, structures, interfaces, 
enumerations, and delegates, organized in a logical 
hierarchy by function, that enable you to access the core 
functionality you need in your applications. 
Namespaces are the way that .NET avoids name clashes 
between classes. A namespace is no more than a grouping of 
data types, but it has the effect that the names of all 
data types within a namespace automatically get prefixed 
with the name of the namespace. It is also possible to nest 
namespaces within each other.
 
Is This Answer Correct ?    20 Yes 2 No
Ritesh Kumar Rawat
 
  Re: What is namespace?
Answer
# 7
namespace is a collectoin of classes ...and without 
declaring the namespace we can't use the fionctionality of 
programming language.
 
Is This Answer Correct ?    4 Yes 6 No
Kumarvikash1985
 
  Re: What is namespace?
Answer
# 8
Namespace is a one of the collection of classes, 
structures, objectives and functions under a part of 
functions. In this namespaces allow the Entity for All 
functiions like classes, structures, and objectives.
But Namespaces are Avoid the class name Collision..
 
Is This Answer Correct ?    2 Yes 2 No
Kalaiselvan
 
  Re: What is namespace?
Answer
# 9
A namespace uniquely identifies a set of names so that there
is no ambiguity when objects having different origins but
the same names are mixed together.
 
Is This Answer Correct ?    3 Yes 1 No
Srikanth
 

 
 
 
Other OOPS Interview Questions
 
  Question Asked @ Answers
 
what is multithreading in c++ , what is difference between multithreading and singlethreading.  3
write a program in c++ to overload the function add (s1,s2) where s1 and s2 are integers and floating point values.  1
tell about copy constructor Siemens3
for example A,B,C,D are class all the 4 class contain one method who() but the method who() implementaion is differnet among each class. the relation among the 4 class are A is base class and is inherited by B and C.and from this two B and C where D is inherited. the question is i want to display the output who() method in all the classes(A,B,C,D)the output of who() method is diferrent amond all the class(A,B,C,D) ------A------ virtuval who(print a) override | | who(print b) B C override who(print c) | | -------D------ override who(print d)  2
should we use linear search or binary search if elements are placed in random order or mixed?in both cases? i need a little bit detail ans?thnks  2
What is extreme programming?  2
What is the correct syntax for inheritance? 1) class aclass : public superclass 2) class aclass inherit superclass 3) class aclass <-superclass  5
What is Iteration Hierarchy? What is what is Object behavioral concept?  1
what is the difference between virtual function and destoctor?  1
Why do we use virtual functions?  3
What is the difference between declaration and definition?  13
what is the virtual function overhead, and what is it used for ? i hope i can get and appropriate answers, thanks a lot....  6
Write 7 differences between "Public" function and "Private" function? IBM2
can we create and enter the data & hide files using programmes ? Wipro1
Difference between over loading and over ridding? CTS11
Write a program to get the binary tree. ABC1
how to swap to variables without using thrid variable in java?  5
write a c++ program to find maximum of two numbers using inline functions.  2
what is an instance of a class  5
Difference between realloc() and free? HP4
 
For more OOPS Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com