Download presentation
1
AP Computer Science DYRT Quiz 17.01-06 Key
Take out a piece of paper and PEN. The quiz starts TWO minutes after the tardy bell rings. You will have 30 seconds per question.
2
Title the quiz as shown below The quiz starts in ONE minute.
Name Period Date Quiz 1. 8. 2. 9.
3
Question 01 The fundamental building block of all computer
information is the bit. byte. field. record. file.
4
Question 02 One character is stored in one or two Bit(s). Byte(s).
Field(s). Record(s). File(s).
5
Question 03 A _____ is a sequence of records of the same type. bit.
byte. field. record. file.
6
Question 04 A _____ is one specific unit of information, such
as size, age, name date, etc. bit. byte. field. record. file.
7
Question 05 A _____ consists of a set of fields for some
specific purpose. bit. byte. field. record. file.
8
Question 06 What type of file only allows access in the order
that the data is stored externally? random access files internal access files sequential access files external access files
9
Question 07 What is the purpose of the File class?
It transfers data for input. It transfers data for output. It makes a file read-only. It determines various properties of a file.
10
Question 08 The exists method determines if a specified file is
located in external storage. transferred to RAM. a read-only file. a read/write file.
11
Question 09 The length method returns the number of
lines in a text file. bytes in a text file. bits in a text file. records in a text file.
12
Question 10 Method createNewFile transfers new file information.
closes existing files and creates a new file. opens a file for input transfer. creates a new external, empty data file.
13
Question 11 The BufferedWriter and FileWriter classes combine
to transfer data from internal memory to external storage. external storage to internal memory internal memory to file buffer. file buffer to internal memory.
14
Question 12 The BufferedReader and FileReader classes
combine to transfer data from internal memory to external storage. external storage to internal memory. internal memory to file buffer. file buffer to internal memory.
15
Question 13 Which method converts an int value to a String object?
valueOf parseInt xyz.dat new FileWriter(“xyz.dat”)
16
Question 14 Which method converts a String value to an int value?
valueOf parseInt xyz.dat new FileWriter(“xyz.dat”)
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.