Home C C++ Java Python Perl PHP SQL JavaScript Linux Online Test Forum

Home » C++ » Interview Questions on Namespaces in C++

Interview Questions on Namespaces in C++ : (6)


Question: 1

(A) :?
(B) ::
(C) ->
(D) .

Compiler Forum
Practitioner namespace[Posted by: Admin | Chicago, USA]



Question: 2

(A) namespace::a
(B) namesspace.a
(C) namespace->a
(D) namespace:a

Compiler Forum
Practitioner namespace[Posted by: Admin | Chicago, USA]



Question: 3

(A) Yes
(B) No

Compiler Forum
Beginner namespace[Posted by: Admin | Chicago, USA]



Question: 4

(A) Before all #include
(B) After #include<iostream>
(C) In middle of #includes
(D) After all #inludes

Compiler Forum
Beginner namespace[Posted by: Admin | Chicago, USA]



Question: 5

(A) Using the entire namespace, using only single name from namespace
(B) There is no difference
(C) We can't use only cout from std namespace

Compiler Forum
Beginner namespace[Posted by: Admin | Chicago, USA]



Question: 6

(A) Runtime Error
(B) Compilation Erro
(C) Nothing is printed
(D) CppBuzz.com

Compiler Forum
Beginner namespace[Posted by: Admin | Chicago, USA]



Compile C++ code here Upload your Questions

Browse C++ Categories

Loops Conditional Functions Operators Structure Enum FileHandling Data Types Inheritance Pointers Classes & Objects Vtable Type Casting New & Delete Namespaces Reference Variables Virtual Functions Abstract Class STL Singleton Class Exceptions C++ 11 C++ 14 C++ 17 gcc/g++ others

Switch to C Questions