Quiz


  1. Which of the following will ignore a leading newline character in the input buffer, the cin object with the stream extraction operator (>>), the get member function, or the getline member function?

  2. Which of the following will not leave a newline character in the input buffer, the cin object with the stream extraction operator (>>), the get member function, or the getline member function?

  3. Which of the following should you always follow with the no-argument ignore member function, the cin object with the stream extraction operator (>>), the get member function, or the getline member function?

  4. Which of the following should you never follow with the no-argument ignore member function, the cin object with the stream extraction operator (>>), the get member function, or the getline member function?

  5. Is the argument of the isdigit function a character, a C-string, or a C++ string class variable?

  6. Is the argument of the atoi function a character, a C-string, or a C++ string class variable?

  7. May a C++ string class variable use the atoi function to convert the string representation of a number to a number?

  8. Are the functions in the C++ standard library cctype used with characters , C-strings, or C++ string class variables ?

  9. Are the functions in the C++ standard library cstdlib used with characters, C-strings, or C++ string class variables?

  10. Can you use an assignment operator to assign the value of one C-string to another?




C++ Demystified(c) A Self-Teaching Guide
C++ Demystified(c) A Self-Teaching Guide
ISBN: 72253703
EAN: N/A
Year: 2006
Pages: 148

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net