Exam 14: File Processing

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Which of the following is not true about files?

Free
(Multiple Choice)
4.9/5
(38)
Correct Answer:
Verified

D

To write fixed-length records, use file open mode:

Free
(Multiple Choice)
4.9/5
(43)
Correct Answer:
Verified

D

Which of the following does not have a stream associated with it?

Free
(Multiple Choice)
5.0/5
(31)
Correct Answer:
Verified

C

Which of the following is not a disadvantage of trying to modify a sequential access file?

(Multiple Choice)
4.8/5
(34)

Which of the following functions would not be used to write data randomly to a random access file?

(Multiple Choice)
4.8/5
(28)

When used with ofstream objects, operator! is not:

(Multiple Choice)
4.8/5
(32)

Select the proper object type. __________ file("file.dat", ios::in | ios::out);

(Multiple Choice)
4.9/5
(41)

For an ifstream object A, a class type B and a local variable of type B called C, the proper way to read in one B object from A into C is:

(Multiple Choice)
4.7/5
(29)

Select the false statement. The reinterpret_cast operator:

(Multiple Choice)
4.9/5
(39)

A random access file is organized most like a(n):

(Multiple Choice)
4.8/5
(39)

In order to perform file processing in C++, which header files must be included?

(Multiple Choice)
4.7/5
(37)

Random access files are more effective than sequential files for:

(Multiple Choice)
4.8/5
(45)

What is not true about this code segment? location = fileObject.tellg();

(Multiple Choice)
4.9/5
(30)

Select the false statement. The write function:

(Multiple Choice)
4.8/5
(36)

Which file open mode would be used to write data only at the end of an existing file?

(Multiple Choice)
4.8/5
(30)

The new C++14 stream manipulator ________ enables a program to read quoted text from a stream, including any white space characters in the quoted text, and discards the double quote delimiters. For example, if we read 100 "Janie Jones" 24.98 Using InClientFile>> account>> quoted(name)>> balance; The first stream extraction reads 100 into the int variable account, the second reads Janie Jones as one string and stores it in the string variable name without the double-quote delimiters, and the third stream extraction reads 24.98 into the double variable balance.

(Multiple Choice)
4.9/5
(37)

Select the false statement.

(Multiple Choice)
4.9/5
(41)

Which of the following will not change the file-position pointer to the same position as the others? Assume a 10-byte file size and a current position at byte # 1.

(Multiple Choice)
4.9/5
(27)

Which of the following statements is true?

(Multiple Choice)
4.9/5
(35)
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)