Question Detail

What is getline() in c++

  • getline() extract the delimeter newline character from the input stream
  • getline() does not extract the delimeter newline character from the input stream
  • None of above
Similar Questions :

1. \r is used for

  • carriage return
  • new line
  • end of the line
  • vertical tab

2. Which among following has invalid syntax ?

  • #include
  • #include file
  • #include "file"
  • None of above

3. Which class has only one unique value for all the objects of class

  • this
  • friend
  • static
  • none of above

4. What is polymorphism

  • Ability to take more than one form
  • Ability to destroy destructor
  • Ability to create constructor
  • None of above

5. Which of the following cannot be inherited from the base class

  • Constructor
  • Friend
  • Both A and B cannot be inherited
  • Both A and B can be inherited
Read more from - C++ Programming Questions Answers - Chapter 1