Deck 9: Sequential Access Files and Printing
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/50
العب
ملء الشاشة (f)
Deck 9: Sequential Access Files and Printing
1
If a data file is not on the drive specified in an AppendText method, it is created by the computer.
True
2
When a program sends data to a file on a disk, this is referred to as "writing to the file."
True
3
The WriteLine method will generate a line feed and carriage return at the end of the data after execution.
True
4
The WriteLine method, when used to place data in a data file, positions the file pointer on the current line after the data is written to the data file.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
5
Records in a random file can only be retrieved randomly from the file.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
6
A binary file is always accessed sequentially, in other words, the data in the file is accessed consecutively from beginning to end.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
7
The CreateText method creates a new, empty sequential access file.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
8
A binary data file is also referred to as a text file.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
9
You use a StreamReader object to write a sequence of characters to a sequential access file.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
10
"Reading the file" refers to getting information from the file.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
11
The Exists method returns the path information for a file when it executes.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
12
A fixed-spaced font allows you to align the text that appears in a printout.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
13
The e.Graphics.DrawString method allows for both horizontal and vertical positioning on the page.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
14
Any attempt to use the OpenText method generates an error message if the file does not exist.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
15
The information in a sequential file is always accessed sequentially.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
16
The Write method, when used to place data in a file, positions the file pointer on the next line after the write instruction executes.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
17
The LookAhead method is used to look at the data file and see if additional data exists in the data file.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
18
The OpenText method allows data to be written to a data file.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
19
The Exists method can be used to determine if a data file on the disk has data records contained in it.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
20
The WriteLine method generates a line terminator character at the end of the line written.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
21
When writing records to a sequential access file, you typically write multiple records on each line in the file.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
22
The ____ method is used to look into the data file and determine if additional data exists.
A) LookAhead
B) Look
C) Peek
D) ReadLine
A) LookAhead
B) Look
C) Peek
D) ReadLine
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
23
You use the PrintPage event to indicate the information you want to print, and how you want the information to appear in the printout.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
24
Which is the appropriate function when ten blank spaces need to be inserted into a file?
A) Blanks(10)
B) Space(10)
C) Insert(10)
D) AddSpace(10)
A) Blanks(10)
B) Space(10)
C) Insert(10)
D) AddSpace(10)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
25
Where from the left edge of the paper will the following line of code begin printing? e.Graphics.DrawString("Report Header", New Font("tahoma", 14, FontStyle.Regular),Brushes.Black, 12, 15)
A) 10
B) 12
C) 14
D) 15
A) 10
B) 12
C) 14
D) 15
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
26
What font size will the following line of code print? e.Graphics.DrawString("Report Header", New Font("tahoma", 14, FontStyle.Regular),Brushes.Black, 12, 15)
A) 10
B) 12
C) 14
D) 15
A) 10
B) 12
C) 14
D) 15
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
27
Which of the following methods will allow data to be used as input from an existing data file?
A) OpenText
B) CreateText
C) AppendText
D) AddText
A) OpenText
B) CreateText
C) AppendText
D) AddText
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
28
Which of the following methods will allow data to be added to an existing data file?
A) OpenText
B) CreateText
C) AppendText
D) AddText
A) OpenText
B) CreateText
C) AppendText
D) AddText
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
29
Which of the following methods will erase data in an existing data file?
A) OpenText
B) CreateText
C) AppendText
D) CloseText
A) OpenText
B) CreateText
C) AppendText
D) CloseText
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
30
A record is one or more related fields that contain all of the necessary data about a specific person, place, or thing.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
31
To print data on the printer, you use the ____ method.
A) e.Print.Graphics
B) e.Graphics.Print
C) e.Graphics.DrawStrings
D) e.Printer.DrawStrings
A) e.Print.Graphics
B) e.Graphics.Print
C) e.Graphics.DrawStrings
D) e.Printer.DrawStrings
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
32
Where from the top edge of the paper will the following line of code begin printing? e.Graphics.DrawString("Report Header", New Font("tahoma", 14, FontStyle.Regular),Brushes.Black, 12, 15)
A) 10
B) 12
C) 14
D) 15
A) 10
B) 12
C) 14
D) 15
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
33
In most cases, you use a fixed-spaced font when printing a report on the printer.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
34
The PadLeft and PadRight methods can be used to align columns of information written to a sequential access file.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
35
A file that data is written to is referred to as a(n) ____ file.
A) report
B) text
C) output
D) data
A) report
B) text
C) output
D) data
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
36
From which of the following can data records be retrieved in any order?
A) binary access files
B) sequential access files
C) random access files
D) serial access files
A) binary access files
B) sequential access files
C) random access files
D) serial access files
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
37
A ____ access file is also referred to as a text file.
A) serial
B) random
C) binary
D) sequential
A) serial
B) random
C) binary
D) sequential
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
38
To close an input file after it has been used and is no longer necessary, use the ____ method.
A) CloseOutput
B) CloseInput
C) Close
D) Exit
A) CloseOutput
B) CloseInput
C) Close
D) Exit
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
39
You use the ____ method to read a line of text from a sequential access file.
A) Scan
B) ReadData
C) ReadLine
D) Peak
A) Scan
B) ReadData
C) ReadLine
D) Peak
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
40
To close an output file after it has been used and is no longer necessary, use the ____ method.
A) CloseOutput
B) CloseInput
C) Close
D) Exit
A) CloseOutput
B) CloseInput
C) Close
D) Exit
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
41
Assume that the variable amount contains the value 46. How many characters will be padded in the statement? amount=amount.ToString.PadLeft(5)
A) 2
B) 3
C) 4
D) 5
A) 2
B) 3
C) 4
D) 5
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
42
The method used to display a form on the screen before the Load Event procedure is completed is the ____ method.
A) Display
B) Show
C) Reveal
D) Output
A) Display
B) Show
C) Reveal
D) Output
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
43
What value does the Peek method return when there is no more data in the file being processed?
A) -1
B) 0
C) 1
D) Nothing
A) -1
B) 0
C) 1
D) Nothing
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
44
Which of the statements can be used to fill a string variable with asterisks resulting in the following; *****$675.89?
A) amount=amount.Fill(12,"*")
B) amount=amount.Insert(5,"*")
C) amount=amount.PadLeft(12,"*")
D) amount=amount.Space(5, "*")
A) amount=amount.Fill(12,"*")
B) amount=amount.Insert(5,"*")
C) amount=amount.PadLeft(12,"*")
D) amount=amount.Space(5, "*")
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
45
If a file is designated by name only, without a folder path, the computer will search in the current project's ____ folder.
A) program
B) bin
C) system
D) files
A) program
B) bin
C) system
D) files
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
46
A ____ is a single item of information about a person, place, or thing.
A) file
B) record
C) database
D) field
A) file
B) record
C) database
D) field
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
47
The font type that uses a varying amount of space for different characters is known as a ____ spaced font.
A) fixed
B) mono
C) proportionally
D) random
A) fixed
B) mono
C) proportionally
D) random
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
48
A file from which data is retrieved by the computer is referred to as a(n) ____ file.
A) storage
B) serial
C) input
D) report
A) storage
B) serial
C) input
D) report
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
49
To determine if a file is actually on a disk before an open statement is executed, you can execute the ____ method first.
A) Exists
B) Locate
C) Find
D) Peek
A) Exists
B) Locate
C) Find
D) Peek
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
50
A sequence of characters is referred to as a ____.
A) loop
B) stream
C) cycle
D) circuit
A) loop
B) stream
C) cycle
D) circuit
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck