EDP Prefinals

5.0(2)
Studied by 25 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/81

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 1:15 AM on 11/4/25
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

82 Terms

1
New cards

streams

represent a source that provides a sequence of bytes, such as a file, an IO device, an interprocess communication pipe, or a TCP/IP socket

2
New cards
  • output streams

  • input streams

these are the two types of streams

3
New cards

output streams

refers to a printer, remote server location, or a printer where the data is written

4
New cards

input streams

refers to a file or any source where the data can be read and assigned to the memory variables in the program

5
New cards

System.IO

in C#, the ___ namespace contains classes that allow to write and read files. it needs to be included in all programs that use streams

6
New cards

byte-oriented

all files are ___, meaning the data is written or read into the files in terms of bytes

7
New cards

FileStream

is a class that is used to create a byte-oriented stream attached to a file

8
New cards

FileStream(string filename, FileMode mode)

this is the code to be used for creating a FileStream object

9
New cards

mode

this parameter specifies how the file needs to be opened

10
New cards

FileMode.Create

file mode that creates a new output file, which will be overwritten if a file already exists

11
New cards

FileMode.CreateNew

file mode that creates a new output file that is not existing

12
New cards

FileMode.Open

file mode that opens an existing file

13
New cards

FileMode.OpenOrCreate

file mode that opens an existing file. if not, it creates a new one

14
New cards

FileMode.Truncate

file mode that opens an existing file and truncates the content that already exists

15
New cards

FileStream constructor

this is used to open a file that has access to read or write. it also contains methods to perform read and write operations

16
New cards

ReadByte()

this method reads a single byte from a file and returns as an integer value

17
New cards

Read()

this method reads the specified number of bytes from a file into an array

18
New cards

WriteByte()

method that writes the specified byte into the file

19
New cards

Write()

method that writes an array of bytes into the file

20
New cards

Flush()

this method instantly writes the data into the file

21
New cards

void Close()

this method closes the file, releasing the system resources that are allocated to it

22
New cards

position the file pointer inside the file at the required location

how can we access a file randomly?

23
New cards

file pointer

this determines the location of the next read/write operation to take place on the file

24
New cards

Seek()

this is the method used to relocate the file pointer in the file

25
New cards

Seek()

a method that allows setting the file position indicator of file pointer to the preferred location in the file

26
New cards

long Seek(long n, SeekOrigin Location)

this is the syntax for the Seek() method

27
New cards

Position property of the Stream class

the file pointer can get or set the position using which property?

28
New cards
  • CanRead

  • CanSeek

  • CanTimeout

  • CanWrite

  • length

  • ReadTimeout

  • WriteTimeout

aside from the Position property, these 7 properties are commonly used

29
New cards

bool CanRead

this returns true if the stream can be read

30
New cards

bool CanSeek

returns true if the stream supports position requests

31
New cards

bool CanWrite

returns true if the stream can be written

32
New cards

long length

contains the size of the stream

33
New cards

int ReadTimeout

indicates the time before a timeout occurs for read operations

34
New cards

int WriteTimeout

indicates the time before a timeout occurs for write operations

35
New cards

true

(T/F) to perform a character-based file for managing text files, use character streams to read and write into the file

36
New cards

StreamReader, StreamWriter

since, internally, each file consists of bytes, the FileStream is wrapped inside either a ___ or a ___. these classes automatically convert a byte stream into a character stream, and vice versa

37
New cards

StreamWriter

this writes characters to a stream and contains several constructors

38
New cards

StreamWriter(Stream stream)

this StreamWriter constructor is used to create a character-based output stream

39
New cards

StreamWriter(string fileName)

this StreamWriter constructor is used to open a file directly

40
New cards

Close()

this method of the StreamWriter class closes the file

41
New cards

Flush()

this method of the StreamWriter class instantly saves the file content from buffer to memory

42
New cards

Write()

this method of the StreamWriter class writes into the specified file using a File stream class

43
New cards

WriteLine()

this method of the StreamWriter class writes into a file, line by line

44
New cards

StreamReader

is a class that reads characters from a byte stream

45
New cards

StreamReader(Stream stream)

this StreamReader constructor is the name of an open stream such as IO devices or a file

46
New cards

StreamReader(string fileName)

this StreamReader constructor specifies the name of the file to open

47
New cards

Flush()

this method of the StreamReader class instantly saves the file content from buffer to memory

48
New cards

Close()

this method of the StreamReader class closes the file and is mandatory to this class

49
New cards

Read()

this method of the StreamReader class reads the content from the file stream

50
New cards

ReadLine()

this method of the StreamReader class reads the content line by line from the given file stream

51
New cards

ReadToEnd()

this method of the StreamReader class reads all characters from the current location until the end of the stream

52
New cards

Peek()

this method of the StreamReader class returns the value in the stream without moving the file pointer

53
New cards

Seek()

this method of the StreamReader class sets the file pointer at the desired position in a file

54
New cards

assemblies

are files that contain compiled code targeted at the .NET framework

55
New cards

physical packages meant for distributing code

assemblies are basically ___

56
New cards

true

(T/F) the .NET classes are actually contained in several assemblies

57
New cards
  • metadata

  • manifest

an assembly has two sections, which are?

58
New cards

metadata

includes info about the data types of the program that are being used

59
New cards

manifest

holds the info of the assembly, which consists of the name, version, number, and type of mapping information

60
New cards
  • .exe

  • .dll

an assembly has two file extensions, which are?

61
New cards

.exe

file extension for standalone applications

62
New cards

.dll

file extension for reusable components

63
New cards

C:\Windows\assembly

the .NET frameworks’ core assemblies location can be found where?

64
New cards

private assembly

simplest type of assembly that can only be used within a software package that is intended to be used                    

65
New cards

no, since the application can only see classes that are mentioned in its private assembly

are two private assemblies with the same class name a problem?

66
New cards

true

(T/F) private assembles do not require registry entries

67
New cards

shared assemblies

are libraries that other applications can commonly use

68
New cards

yes, since any other software can access a shared assembly

are security precautions necessary when using shared assemblies?

69
New cards

name collision

is a common problem in shared assembly wherein other classes or variables have the same name that matches with the other shared assembly

70
New cards

true

(T/F) a different form of the same assembly might overwrite the shared assembly, and the new version might be incompatible with the existing code

71
New cards

shared assemblies are given a strong, unique name based on the private key cryptography

what is done to avoid name collision in shared assemblies?

72
New cards

global assembly cache (GAC)

this enables several applications to share shared assembly

73
New cards

true

(T/F) in GAC, it is required to add the assembly to the special directory

74
New cards

true

(T/F) GAC is the centralized storage location for .NET assemblies`

75
New cards

create a project containing a class file

this is the first step in creating a shared assembly

76
New cards

it contains the methods and properties that you want other applications to access

what does the class file contain?

77
New cards

generate a strong name for the project

this is the second step in creating a shared assembly

78
New cards

ShareAssemblyMessageKeyFile

the strong name for a shared assembly is saved in a strong key filename, such as what?

79
New cards

true

(T/F) the strong key file is created named ShareAssemblyMessageKeyFile.snk and located at the solutions explorer

80
New cards

specify the key filename in the project by indicating its strong key file name in the AssemblyInfo.cs file

this is the third step in creating a shared assembly

81
New cards

compile the project to generate an assembly

this is the fourth and last step in creating a shared assembly

82
New cards

true

(T/F) in compiling the project to generate an assembly, the assembly is generated with the extension .dll

Explore top notes

note
APES 5.6 Pest Control Methods
Updated 1125d ago
0.0(0)
note
Japanese Colours Vocab
Updated 122d ago
0.0(0)
note
Raw material to final product
Updated 591d ago
0.0(0)
note
IT EXAM OUTLINE
Updated 634d ago
0.0(0)
note
IB Physics - Ultimate Study Guide
Updated 127d ago
0.0(0)
note
Measurements
Updated 1246d ago
0.0(0)
note
APES 5.6 Pest Control Methods
Updated 1125d ago
0.0(0)
note
Japanese Colours Vocab
Updated 122d ago
0.0(0)
note
Raw material to final product
Updated 591d ago
0.0(0)
note
IT EXAM OUTLINE
Updated 634d ago
0.0(0)
note
IB Physics - Ultimate Study Guide
Updated 127d ago
0.0(0)
note
Measurements
Updated 1246d ago
0.0(0)

Explore top flashcards

flashcards
FINAL EXAM STATISTICS VOCAB
70
Updated 1054d ago
0.0(0)
flashcards
Pulm Clin Med Review
81
Updated 251d ago
0.0(0)
flashcards
Art Quiz
28
Updated 782d ago
0.0(0)
flashcards
The Human Body Systems
61
Updated 1029d ago
0.0(0)
flashcards
wikrent chem
35
Updated 921d ago
0.0(0)
flashcards
Stats Vocab - Unit 3
42
Updated 1219d ago
0.0(0)
flashcards
Government Lesgislative branch
31
Updated 839d ago
0.0(0)
flashcards
FINAL EXAM STATISTICS VOCAB
70
Updated 1054d ago
0.0(0)
flashcards
Pulm Clin Med Review
81
Updated 251d ago
0.0(0)
flashcards
Art Quiz
28
Updated 782d ago
0.0(0)
flashcards
The Human Body Systems
61
Updated 1029d ago
0.0(0)
flashcards
wikrent chem
35
Updated 921d ago
0.0(0)
flashcards
Stats Vocab - Unit 3
42
Updated 1219d ago
0.0(0)
flashcards
Government Lesgislative branch
31
Updated 839d ago
0.0(0)