Exam2_08.8 - b. is a constructor with no arguments c....

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
46. Using the open flags ios::in|ios::out|ios::binary opens a file for a. appending input, truncating output, binary format b. binary input/output c. truncation of binary input/output d. adding binary input/output at the end of the file e. none of the above 47. The output of cout << scientific << setprecision(4) << 12.3456; is a. 1.2346e+001 b. 12.2345 c. 1.2345e+001 d. 12.35 e. 0.124e+002 48. Knowing the bit pattern for the text character '4' has a decimal value of 52, which choice pertains to a text file and not a binary file? a. 01010010 b. 00000100 c. 00110100 d. any of the above e. none of the above 49. A default constructo r a. is automatically supplied if there are no constructors defined
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: b. is a constructor with no arguments c. should be defined if there is a non-default constructor defined d. all of the above e. none of the above 50. To convert a double value x to a string in a program use a. string s; ostringstream oss(s); oss << x; b. istringstream iss(x); string s; iss >> s; c. string s = x; d. any of the above e. none of the above OPTIONAL EXTRA CREDIT 51. A const variable a. is illegal in C++ b. may be assigned to, but not initialized c. may be initialized, but not assigned to d. may only be assigned to inside a constructor e. none of the above...
View Full Document

This note was uploaded on 02/18/2012 for the course CSCE 121 taught by Professor Walter daugherity during the Fall '09 term at Texas A&M.

Ask a homework question - tutors are online