stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Pre-final- Quiz (Event Driven) Flashcards | StudBud
Explore
/
Pre-final- Quiz (Event Driven)
Pre-final- Quiz (Event Driven)
30 terms
·
StudBud Administration
·
145 plays
Test your knowledge on file handling concepts and operations in programming
Flashcards
30 cards
F
Practice quiz
P
Host live
L
Questions
30
Answers
1
What does StreamWriter do?
Deletes files
Creates byte stream
Writes characters
Reads characters
2
What is the purpose of the Global Assembly Cache (GAC)?
Stores private assemblies
Prevents name collision in shared assemblies
Enables sharing of shared assemblies
Centralized storage for .NET Assemblies
3
What is the name collision problem in shared assemblies?
Overwriting of shared assemblies
Accessing shared assemblies by other software
Classes or variables with the same name
Incompatible versions of the same assembly
4
What are assemblies in .NET?
Standalone and reusable components
Metadata and manifest sections
Physical packages for distributing code
Files containing compiled code
5
What does Flush() do?
Creates new file
Reads data
Writes data instantly
Closes the file
6
What is a private assembly used for?
Accessible to any software
Stored in the Global Assembly Cache
Shared by other applications
Used within a software package
7
True or false: Write() writes an array of bytes.
False
True
8
What are the steps to creating a shared assembly?
Compile project, generate strong name, specify key filename, create project
Generate strong name, specify key filename, compile project, create project
Specify key filename, compile project, generate strong name, create project
Create project, generate strong name, specify key filename, compile
9
What does CanSeek return?
True if writable
True if closed
True if seekable
True if readable
10
What does FileStream do?
Deletes files
Compresses data
Encrypts files
Creates byte-oriented stream
11
True or false: FileMode.CreateNew overwrites existing files.
False
True
12
True or false: StreamWriter can write line by line.
False
True
13
True or false: CanRead returns true if stream is writable.
False
True
14
What is the purpose of a manifest in an assembly?
Enables sharing of assembly
Avoids name collision in shared assembly
Contains data types information
Holds assembly information
15
Which method reads until the end?
ReadToEnd()
Read()
ReadLine()
Peek()
16
Which method reads a single byte?
Flush()
ReadByte()
Write()
Read()
17
What is a shared assembly?
Used within a software package
Stored in the Global Assembly Cache
Accessible to any software
Library commonly used by other applications
18
What is the purpose of a manifest in an assembly?
Holds assembly information
Avoids name collision in shared assembly
Enables sharing of assembly
Contains data types information
19
True or false: Input streams write data.
True
False
20
What are the steps to creating a shared assembly?
Create project, add to GAC, compile, generate strong name
Create project, specify key filename, generate strong name, compile
Create project, specify key filename, compile, add to GAC
Create project, generate strong name, specify key filename, compile
21
True or false: Seek() sets file pointer position.
False
True
22
What is the purpose of a manifest in an assembly?
Maps the assembly to its dependencies
Holds information about the assembly
Specifies the version number of the assembly
Contains metadata about the program
23
True or false: Write() writes an array of bytes.
True
False
24
True or false: Read() reads a single byte.
False
True
25
What does CanSeek return?
False
True
26
Where can the core assemblies of .NET Framework be found?
Shared assembly
Global Assembly Cache
C:\Windows\assembly
Private assembly
27
Where can the core assemblies of .NET Framework be found?
C:\Program Files\assembly
C:\Users\assembly
C:\ProgramData\assembly
C:\Windows\assembly
28
What is the file extension for standalone applications in an assembly?
.cs
.exe
.dll
.net
29
What does CanTimeout indicate?
Stream is readable
Stream can timeout
Stream is closed
Stream is writable
30
True or false: StreamReader writes characters to a stream.
True
False