C++ Programming Question and Answers

36. What is the use of cout object?
 
  • Cout pronounced as (C out) is a predefined object of standard output stream.
  • The standard output stream normally flows to the screen display- although it can be redirected to several other output devices.
 
Your Name Your Email-ID
Your Answer
37. What is istream.h and ostream.h?
 
  • The declarations for the object cin are available in a header file called as istream.h
  • The basic input/output operations are managed by a set of declarations available in the istream.h and ostream.h header files.
  • Iostream.h file comprises the combined properties of istream and ostream.
 
Your Name Your Email-ID
Your Answer
38. What is mean by data hiding?
  The members and functions declared under private are not accessible by members outside the class, this is referred to data hiding.
 
Your Name Your Email-ID
Your Answer
39. Who coined the name C++?
 
  • The name C++ was coined by Rick Mascitti where ++ is the C increment operator.
 
Your Name Your Email-ID
Your Answer
40. What is string literal?
 
  • String Literal is a sequence of characters surrounded by double quotes.
  • String literals are treated as an array of characters.
  • Each string literal is by default added with a special character ‘ ’ which marks the end of string.
 
Your Name Your Email-ID
Your Answer
123456789101112


131415 Page 8 of 15