EVENT DRIVEN PREFINALS_

full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/34

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

35 Terms

1

B. Metadata

This section of an assembly contains information
about the data types of the program that are being
used
A. Manifest
B. Metadata
C. Private
D. Public

2

A. FileMode

This parameter determines how the file needs to be
opened.
A. FileMode
B. FileStream
C. StreamWriter
D. StreamReader

3

A. Manifest

This section of an assembly consists of name,
version number, and type of mapping information.
A. Manifest
B. Metadata
C. Namespace
D. Cache

4

B. System.IO

This namespace contains classes that allow reading
and writing files.
A. System.File
B. System.IO
C. System.Data.File
D. System.Data

5

A. CanRead

This property validates that if the stream can be
read, it retums true.
A. CanRead
B. CanSeek
C. Read
D. HasRead

6

A. ReadTimeout

This property indicates the time before a timeout
occurs for read operations.
A. ReadTimeout
B. TimeoutRead
C. Timeout
D. Read

7

C. .exe

Which file extension is used for standalone
applications?
A. .mdf
B. .Idf
C. .exe
D. .dll

8

D. Close()

This method releases the system resources that are
allocated when it ends the file.
A. Release()
B. Read()
C. Flush()
D. Close()

9

B. FileMode.Truncate

This FileMode opens the existing file and trims the
content that already exists.
A. FileMode.Trim
B. FileMode.Truncate
C. FileMode.Exist
D. FileMode.Read

10

B. Private Assembly

This assembly can only be used within the software
package that is intended to be used.
A. Protected Assembly
B. Private Assembly
C. Public Assembly
D. Shared Assembly

11

B. Assemblies

These files contain compiled code targeted at the
.NET Framework?
A. Enumerations
B. Assemblies
C. Packages
D. Namespaces

12

C. FileStream

Which of the following .NET classes is used to
create a byte-oriented stream attached to a file?
A. File class
B. Flush
C. FileStream
D. Seek

13

A. Streams

These represent a source that provides a sequence
of bytes such as an I/O device.
A. Streams
B. Files
C. Assemblies
D. Readers

14

A. File pointer

It determines the location of the next read/write
operation to take place on the file.
A. File pointer
B. Location
C. Stream
D. Directory

15

B. Output stream

Which of the following types of stream refers to the 
objects where the data is written?
A. Object stream
B. Output stream 
C. Data stream
D. Input stream

16

B. StreamReader(string fileName)

This code specifies the name of the file to be
opened.
A. StreamWriter(string fileName) 
B. StreamReader(string fileName)
C. StreamReader(Stream stream, string FileName)
D. StreamWriter(Stream stream, string fileName)

17

A. It can only be used within the software package.

Which of the following statements is TRUE about
private assembly?
A. It can only be used within the software package.
B. It requires registry entries to use in the program.
C. It will encounter an error if there are two (2)
assemblies that have the same class name.
D. None of the above

18

B. public override bool CanSeek {get: }

Which of the following codes retrieves a value that
the current stream supports seeking?
A. public override string seek { set; }
B. public override bool CanSeek {get: }
C. public override bool CanSeek { get; set }
D. public override string seek {get; }

19

A. StreamWriter(Stream stream)

Which syntax is used to create a character-based
output stream?
A. StreamWriter(Stream stream)
B. StreamWriter(string fileName)
C. StreamWriter(bool stream)
D. StreamWriter(File file)

20

B. public override void Flush ();

Which syntax clears all buffers for the current writer
and causes any buffered data to be written to the
stream?
A. public override void Close ();
B. public override void Flush ();
C. public override void Clear ();
D. public override void Remove ();

21

A. public override bool CanRead( get; }

Which of the following codes retrieves the value that
the current stream supports reading?
A. public override bool CanRead( get; }
B. public override string Canread { get; set; }
C. public override bool GetRead { get; }
D. public override string GetRead { get; set; }

22

C. public abstract bool CanRead { get;}

Which of the following lines of code retrieves a
value even if the current stream supports reading or
not?
A. public abstract bool CanRead () { get; set; )
B. public abstract bool Read () { set; }
C. public abstract bool CanRead { get;}
D. public abstract bool Read() { get; set; )

23

C. public StreamWriter (string path);

Which syntax initializes a new instance of the
StreamWriter class for a stated name of file to write
to?
A. public bool StreamWriter (string path);
B. public StreamWriter (bool path);
C. public StreamWriter (string path);
D. public string StreamWriter (string path);

24

A. public virtual int ReadTimeout { get; set;}

This syntax can be used retrieve or set value
which determines the stream's time to read before
timing out.
A. public virtual int ReadTimeout { get; set;}
B. public virtual int Timeout { get; set; }
C. public virtual int Read { get; set }
D. Public virtual int ReadTimer { get; set;}

25

A. StreamReader varStream = new
StreamReader("TextFile.txt")

Which of the following codes instantiates a
StreamReader?
A. StreamReader varStream = new
StreamReader("TextFile.txt")
B. StreamReader varStream;
C. StreamReader = new Stream("File.txt");
D. StreamReader str = new Stream():

26

C. public abstract long length { get; }

Which of the following codes retrieves the length of
the stream?
A. public abstract long length{ get; set; }
B. public abstract string length { get; set; )
C. public abstract long length { get; }
D. public abstract length {}

27

D. public override void Write (string value);

Which of the following syntaxes can write a string
value into the stream?
A. public override bool Write (bool value);
B. public override bool Write (string value);
C. public override string Write (File value);
D. public override void Write (string value);

28

D. These have two (2) sections that include
information about the data types of the program
and hold the information of the assembly.

Which of the following statements is TRUE about
assemblies?
A. These are files that contain projects for the
.NET Framework.
B. These have three (3) types that can be
identified: private assembly, protected assembly,
and shared assembly.
C. These can only be compiled in the .dil file
extension.
D. These have two (2) sections that include
information about the data types of the program
and hold the information of the assembly.

29

D. int val = streamReader.Read();
Console.WriteLine(val);

Which of the following is the CORRECT syntax to
read content from the input stream?
A. int val = streamReader();
Console.WriteLine(val);
B. int val = ReadByte();Console.WriteLine(val);
C. int val = Read(): Console.WriteLine(val);
D. int val = streamReader.Read();
Console.WriteLine(val);

30

D. public virtual bool CanTimeout { get;}

This syntax can be used to retrieve the value that
will determine the current stream time out
A. public virtual bool CanTimeout { get; set}
B. public virtual bool CanTimer( get; set;){}
C. public virtual bool Timeout { get; }
D. public virtual bool CanTimeout { get;}

31

C. public override bool CanWrite {get; }

Which of the following codes retrieves a value that
the current stream supports writing?
A. public override bool Write(get;)
B. public override bool Writing( get; )
C. public override bool CanWrite {get; }
D. public override bool GetWrite{ get; }

32

A. long Seek(long varNum, SeekOrigin position)

Which of the following FileStream methods is used
to move the file pointer to a specific location in the
stream?
A. long Seek(long varNum, SeekOrigin position)
B. long Seek(SeekOrigin)
C. long Seek(long position)
D. long Seek(SeekOrigin, long n)

33

D. FileStream(string fileName, FileMode fileMode)

Which of the following is the correct syntax for
creating a FileStream object to open or create a file
using the System.IO namespace?
A. FileStream(FileMode fileMode)
B. FileStream()
C. FileStream(File file, string fileName)
D. FileStream(string fileName, FileMode fileMode)

34

A. public override int Read(byte[] arr, int offset, int
count)

Which method reads a block of bytes from the
current stream into a byte array?
A. public override int Read(byte[] arr, int offset, int
count)
B. public override int GetRead(byte[] arr, int offset,
int count)
C. public override int Read() {byte [] arr, int offset,
int count}
D. public override int ReadByte()

35

B. Shared assemblies have security precautions
when they are used since any other software
can access the file.

Which of the following statements is TRUE when
using shared assemblies?
A. Shared assemblies can only be used within a
software package.
B. Shared assemblies have security precautions
when they are used since any other software
can access the file.
C. Shared assemblies do not require registry
entries.
D. Shared assemblies do not require a unique
name