Question: (TCO 13) To create an input file object, what kind of type would you use? (Points : 4) 1ifstream 2ofstream 3fstream4 instream Question 2.2. (TCO
(TCO 13) To create an input file object, what kind of type would you use? (Points : 4)
1ifstream 2ofstream 3fstream4 instream
Question 2.2. (TCO 13) What do the following statements accomplish?
ofstream theFile; theFile.open( myFile.txt , ios::app); (Points : 4)
1Opens myFile in read mode2 Opens myFile in append mode 3Creates an empty file named myFile4 Opens a file in input mode to write to
Question 3.3. (TCO 13) When a file is opened in the append mode, the file pointer is positioned _____. (Points : 4)
1at the end of the file 2 at the beginning of the file 3 in the middle of the file 4after the file header
Question 4.4. (TCO 13) Which of the following functions should be used to determine if a file was successfully closed? (Points : 4)
1 is_active 2 is_open 3 is_closed 4 is_ready
Question 5.5. (TCO 12) A variable type that contains a memory address of another variable is called a _____. (Points : 4)
1reference 2pointer 3memory variable4 memory array
Question 6.6. (TCO 11) Which of the following is false? (Points : 4)
1All elements of the array have the same data type. 2All elements in an array have the same name. 3All elements in an array have the same subscript.4 The first element of the array has a subscript of zero.
Question 7.7. (TCO 11) Which of the following techniques can be used to process the elements of a single-dimensional array? (Points : 4)
1Selection structure 2 Looping structure 3 Sequence structure 4 None of the above
Question 8.8. (TCO 11) In the following array, what is the value of table[2][1]? int table[4][3]={3,7,0,2,4,9,8,1,3,6,5,4}; (Points : 4)
4 7 6 1
Question 9.9. (TCO 10) To halt the execution of a program at a specific spot during debugging, you must use a _____. (Points : 4)
1scope resolution operator 2 step 3 break point 4comment
Question 10.10. (TCO 9) The programmer determines the fields and methods of an object and creates the _____ code. (Points : 4)
1 class 2procedural 3module 4None of the above
Question 11.11. (TCO 9) The class _____ starts with the word "Class" followed by the name of the class. (Points : 4)
1body 2definition 3return 4members
Question 12.12. (TCO 9) You should declare a data field private by using the _____ keyword. (Points : 4)
1clandestine 2concealed 3private 4Data fields cannot be private.
Question 13.13. (TCO 9) UML stands for _____. (Points : 4)
1United Modeling Language 2Unified Mega Language 3United Mega Language 4Unified Modeling Language
Question 14.14. (TCO 8) A value included in a function call that is passed to a function is called a(n) _____. (Points : 4)
1argument 2parameter 3initializer 4reference
Question 15.15. (TCO 7) What is wrong with this call statement? PrintName(string name); (Points : 4)
1It is missing void. 2The data type should be removed. 3The semicolon should be removed. 4Nothing is wrong with it.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
