Exam 21: Advanced Input/Output

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

Fill in the blank in the following code snippet that displays the names of directories in the current directory. Fill in the blank in the following code snippet that displays the names of directories in the current directory.

(Multiple Choice)
4.9/5
(39)

Assume we have a RandomAccessFile object, file, which stores a set of records of class MyData, each needing MyData.RECORD_SIZE bytes for storage.If the file pointer is currently on the 24th record, which expression represents the offset to the beginning of the 25th record?

(Multiple Choice)
4.9/5
(33)

Which expression deletes the file named filename.txt?

(Multiple Choice)
4.9/5
(30)

Which methods are not in the Serializable interface? i.readObject II.writeObject III.serializeObject

(Multiple Choice)
4.7/5
(37)

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.For the encrypt method below, select the correct body.Assume the key shift property is accessible to the method. public int encrypt(int b) { __________ }

(Multiple Choice)
4.8/5
(41)

Which of the following is NOT a method of the Files class?

(Multiple Choice)
4.9/5
(37)

Fill in the blank in the following code snippet that displays the directory structure for the current directory, i.e., including the descendants of the current directory that are directories. Fill in the blank in the following code snippet that displays the directory structure for the current directory, i.e., including the descendants of the current directory that are directories.

(Multiple Choice)
4.7/5
(37)

Which interface allows classes to be written to an ObjectOutputStream?

(Multiple Choice)
4.9/5
(36)

Fill in the blank in the following code snippet that filters log warning messages to a file. Fill in the blank in the following code snippet that filters log warning messages to a file.

(Multiple Choice)
4.7/5
(38)

If you store information in binary form, as a sequence of bytes, you will use the ____ class(es) and their subclasses.

(Multiple Choice)
4.9/5
(35)

The read method of the FileInputStream class reads binary data.What type is actually returned from a call to read?

(Multiple Choice)
4.7/5
(30)

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 decryption of exmmv for a key = -3?

(Multiple Choice)
4.9/5
(45)

Which class is used for output of text data?

(Multiple Choice)
4.7/5
(42)

Which method in the RandomAccessFile class provides for random access?

(Multiple Choice)
4.8/5
(30)

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

(Multiple Choice)
4.8/5
(41)

Which class is used for input of text data?

(Multiple Choice)
4.9/5
(35)

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 key should you use to encrypt picture into mfzqrob?

(Multiple Choice)
4.9/5
(34)

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 picture for a key = -3?

(Multiple Choice)
4.9/5
(43)

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

(Multiple Choice)
4.9/5
(43)

Which statement reads the configuration file named config.txt into a collection for later processing?

(Multiple Choice)
4.7/5
(43)
Showing 61 - 80 of 90
close modal

Filters

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