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   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Programming Languages  >>  C++  >>  C++ General
 
 


 

 
 STL interview questions  STL Interview Questions
 OOPS interview questions  OOPS Interview Questions
 C++ General interview questions  C++ General Interview Questions
Question
In C++ cout is:
a) object
b) class
c) something else
 Question Submitted By :: Seeker
I also faced this Question!!     Rank Answer Posted By  
 
  Re: In C++ cout is: a) object b) class c) something else
Answer
# 1
Stream Object
 
Is This Answer Correct ?    1 Yes 0 No
Sanjay Makwana
 
  Re: In C++ cout is: a) object b) class c) something else
Answer
# 2
ANSWER IS C. COUT IS AN BUID IN OPERATOR THAT WAS DEFINED 
IN HEADER FILE: <IOSTREAM.H>
SINCE, IN C++ COUT IS AN CONSOLE OUTPUT OPERATOR.
 
Is This Answer Correct ?    1 Yes 1 No
Sriram
 
 
 
  Re: In C++ cout is: a) object b) class c) something else
Answer
# 3
cout is an object of class ostream that represents the 
standard output stream. It corresponds to the cstdio stream 
stdout.

By default, most systems have their standard output set to 
the console, where text messages are shown, although this 
can generally be redirected.

Because cout is an object of class ostream, we can write 
characters to it either as formatted data using for example 
the insertion operator (ostream::operator<<) or as 
unformatted data using the write member function
 
Is This Answer Correct ?    2 Yes 0 No
Chandra
 
  Re: In C++ cout is: a) object b) class c) something else
Answer
# 4
The answer is someting else.

cout is an ostream opertor.
 
Is This Answer Correct ?    0 Yes 2 No
Manju
 
  Re: In C++ cout is: a) object b) class c) something else
Answer
# 5
Its an Object of class OStream, thats why we add its 
corresponding header file that is <iostream.h>, Open this 
header file you wil get complete infomation.
 
Is This Answer Correct ?    0 Yes 0 No
Reejusri
[********]
 
  Re: In C++ cout is: a) object b) class c) something else
Answer
# 6
C++ treats everything as an object.me,u,we,cout all are 
object in C++.So cout is an object.
 
Is This Answer Correct ?    0 Yes 0 No
Kiruthika
 
  Re: In C++ cout is: a) object b) class c) something else
Answer
# 7
a, it is an object in C++
 
Is This Answer Correct ?    0 Yes 0 No
Ganesh
 
  Re: In C++ cout is: a) object b) class c) something else
Answer
# 8
ans is a) it is an object of ostream_withassign.
 
Is This Answer Correct ?    0 Yes 0 No
Hemant Majithia
 
  Re: In C++ cout is: a) object b) class c) something else
Answer
# 9
object of ostream_withassign. (a) is the right answer.
 
Is This Answer Correct ?    0 Yes 0 No
Shakti Singh Khinchi
 
  Re: In C++ cout is: a) object b) class c) something else
Answer
# 10
cout is an object.....
 
Is This Answer Correct ?    0 Yes 0 No
Vaibhav Meena
 

 
 
 
Other C++ General Interview Questions
 
  Question Asked @ Answers
 
What happens if an exception is throws from an object's constructor and from object's destructor? TCS2
wrong statement about c++ a)code removably b)encapsulation of data and code c)program easy maintenance d)program runs faster  8
what is difference between static and non-static variables  4
What is the output of printf("%d")? HCL25
what is pulse code modulation? Wipro1
Shall we use 'free' to free memory assigned by new, What are the further consequences?? Symphony4
How to reduce a final size of executable?  1
Can inline functions have a recursion? Give the reason?  1
What and all can a compiler provides by default? HP3
What is difference between initialization and assignment? HP4
What is "map" in STL?  1
What are the different operators in C++? HP1
What compiler was used? Intel3
What are advantages and disadvantages of Design patterns? IBM3
string somestring ; Which of the following choices will convert a standard C++ string object "somestring" to a C string? a) Copy.somestring () ; b) somestring.c_str () c) &somestring [1] d) std::cstring (somestring) e) (char *) somestring Quark1
class X { public: int x; static void f(int z); }; void X::f(int y) {x=y;} What is the error in the sample code above? a) The class X does not have any protected members. b) The static member function f() accesses the non-static z. c) The static member function f() accesses the non-static x. d) The member function f() must return a value. e) The class X does not have any private members. Quark1
How do you test your code? Microsoft3
Is structure can be inherited? HP3
what is static function Patni2
What is Object Oriented programming.what is the difference between C++ and C? Infosys5
 
For more C++ General 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