Exam 21: Advanced Input/Output

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

A file pointer is a position in a random access file.Because files can be very large, the file pointer is of type _______.

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

C

A byte is composed of ____ bits and can denote ____ values.

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

A

A Caesar cipher uses a shift of each character by a key with a value between 1 and 255.An a with a shift of 3 becomes a d.A z with a shift of 3 would become a c, wrapping around the alphabet.Which is the encryption of shadow for a key = 3?

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

B

Which of the following cannot be serialized? i.ArrayList<String> II.String III.Integer

(Multiple Choice)
4.7/5
(36)

Which of the following is NOT a method of the Path type?

(Multiple Choice)
4.9/5
(35)

Which class is used for input of binary data from a file?

(Multiple Choice)
4.8/5
(36)

Which is NOT a method in the RandomAccessFile class?

(Multiple Choice)
4.9/5
(41)

__________ access allows file access at arbitrary locations, without first reading the bytes preceding the access location.

(Multiple Choice)
4.9/5
(42)

Which class is used for output of binary data to a file?

(Multiple Choice)
4.9/5
(39)

Which code reads an array of Student objects from a file named studentFile.bin? We ignore exceptions in this problem.

(Multiple Choice)
4.7/5
(40)

Which class is used for output of text data to a file?

(Multiple Choice)
4.9/5
(39)

If serializing object obj requires 12 bytes, how many bytes are required to serialize obj 3 times?

(Multiple Choice)
4.9/5
(34)

What is the lowest value for a signed (negative and positive) byte?

(Multiple Choice)
4.9/5
(45)

Which expression determines whether there is a configuration file named config.txt?

(Multiple Choice)
4.9/5
(34)

The two IO classes used for serialization are _______ and ________.

(Multiple Choice)
4.8/5
(32)

Streams access sequences of ____.

(Multiple Choice)
4.9/5
(32)

Which of these classes access sequences of characters? i.readers II.writers III.streams

(Multiple Choice)
4.9/5
(50)

Assume we have a RandomAccessFile object, file, which stores a set of records of class MyData, each needing MyData.RECORD_SIZE bytes for storage.Which expression calculates the number of records in the file?

(Multiple Choice)
4.8/5
(37)

Based on the code below, the statement that would move the file pointer to byte n counted from the beginning of the file is ___________________. RandomAccessFile test = new RandomAccessFile("record.bat", "r");

(Multiple Choice)
4.7/5
(49)

If you access and store information in binary form in files, you will use the ____ class(es).

(Multiple Choice)
4.9/5
(40)
Showing 1 - 20 of 90
close modal

Filters

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