Services
Discover
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
Big Java Binder Early Objects
Exam 20: Streams and Binary Inputoutput
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 61
Multiple Choice
In which of the following modes can a RandomAccessFiles be opened? I "r" II "rw" III "w"
Question 62
Multiple Choice
Which code stores an array buttonArray of JButton objects in a file named buttonFile? We ignore exceptions in this problem.
Question 63
Multiple Choice
How many bytes does the read method in the InputStream class get from the file?
Question 64
Multiple Choice
Which file storage method stores data in bytes?
Question 65
Multiple Choice
Which interface allows classes to be written to an ObjectOutputStream?
Question 66
Multiple Choice
Which class is used for input of text data?
Question 67
Multiple Choice
Given a RandomAccessFile that stores a set of records of class MyData, each needing MyData.RECORD_SIZE bytes for storage, which expression gets the offset to the beginning of the 25
th
record?
Question 68
Multiple Choice
If you want to process text data from a file, which keyword do you look for in classes that specialize in doing that?
Question 69
Multiple Choice
Which of these classes access sequences of characters? I readers II writers III streams
Question 70
Multiple Choice
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 24
th
record, which expression gets to the offset of the beginning of the 25
th
record?
Question 71
Multiple Choice
Which of the following statements enables you to write output to a text file?
Question 72
Multiple Choice
__________ access allows file access at arbitrary locations, without first reading the bytes preceding the access location.
Question 73
Multiple Choice
Which is not a method in the RandomAccessFile class?
Question 74
Multiple Choice
The ______ method returns an integer, either -1 (at the end of the file) or a byte between 0 and 255.
Question 75
Multiple Choice
Which line completes this code fragment so it creates a text file called "mychars.txt" and writes the characters 'A', 'B', and 'C' into the file? _____________________ Fw) write('A') ; Fw) write('B') ; Fw) write('C') ;