100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

Mis3370 Practice Exam 2 Final Questions And 100% Well Answered Solutions.

Rating
-
Sold
-
Pages
21
Grade
A+
Uploaded on
15-05-2025
Written in
2024/2025

With the DataInputStream class: a) the read method can only read one character at a time. b) the read method can read only one record at a time. c) the read method can read more than one record at a time. d) the read method can read only one field at a time. - Answer D Which of the following is true? a) You open a file by creating the appropriate object. b) You close a file by deleting the appropriate object. c) Two of these answers are correct. d) The DataOutputStream class is used to write to a printer. e) The BufferedInputStream class is used to read characters from a file. - Answer A An object of the File class is required a) in order to read data from or write data to files. b) in order to get information about files. c) in order to read data from but NOT write data to files.

Show more Read less
Institution
NSG 3370
Course
NSG 3370










Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
NSG 3370
Course
NSG 3370

Document information

Uploaded on
May 15, 2025
Number of pages
21
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

Mis3370 Practice Exam 2 Final
Questions And 100% Well Answered
Solutions.
With the DataInputStream class:



a) the read method can only read one character at a time.



b) the read method can read only one record at a time.



c) the read method can read more than one record at a time.



d) the read method can read only one field at a time. - Answer D



Which of the following is true?



a) You open a file by creating the appropriate object.



b) You close a file by deleting the appropriate object.



c) Two of these answers are correct.



d) The DataOutputStream class is used to write to a printer.



e) The BufferedInputStream class is used to read characters from a file. - Answer A



An object of the File class is required



a) in order to read data from or write data to files.



b) in order to get information about files.

,d) in order to write data to but NOT read data from files.



e) two of these answers are correct. - Answer B



With the following code:

filePosition = employeeID%100;

employeeFile.seek(filePosition * RECORDSIZE);



a) The maximum random access record size is 100 characters.



b) The maximum number of random access records depends on the values of filePosition and
RECORDSIZE.



c) The maximum number of random access records depends on the value of RECORDSIZE.



d) The maximum number of random access records is 100.



e) The maximum number of random access records cannot be determined with this code. -
Answer D



How many records will be written to the newMasterFile?



a) Cannot calculate this based on the code.



b) The same as that in the oldMasterFile.



c) An amount equal to that in the oldMasterFile plus the transaction file.



d) The same as that in the transactionFile. - Answer B



How many fields are there in each transactionFile record?

, c) There are one to three fields, depending on the record.



d) There are zero to two fields. - Answer B



What would happen if you replaced



payRate = oldMasterFile.readFloat();

ytdGrossPay = oldMasterFile.readFloat();

with

ytdGrossPay = oldMasterFile.readFloat();

payRate = oldMasterFile.readFloat();



a) Everything would work OK.



b) There would be a compile error.



c) The program would run but calculations would be wrong.



d) The program would stop with an error when

ytdGrossPay = oldMasterFile.readFloat(); was executed - Answer C



If you opened the oldMasterFile in TextPad, which fields would you be able to understand?



a) payRate and ytdGrossPay only



b) you would not be able to understand any fields.



c) oldMastKey and address only.



d) All fields - Answer C
R282,98
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached


Document also available in package deal

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
TestSolver9 Webster University
Follow You need to be logged in order to follow users or courses
Sold
751
Member since
2 year
Number of followers
124
Documents
24586
Last sold
13 hours ago
TESTSOLVER9 STORE

TOPNOTCH IN LEARNING MATERIALS,(EXAMS,STUDYGUIDES NOTES ,REVIEWS,FLASHCARDS ,ALL SOLVED AND PACKAGED.OUR STORE MAKE YOUR EDUCATION JOURNEY EFFICIENT AND EASY.WE ARE HERE FOR YOU FEEL FREE TO REACH US OUT .

3,6

131 reviews

5
59
4
19
3
22
2
9
1
22

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card or EFT and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions