Ovido
Language
  • English
  • Spanish
  • French
  • Portuguese
  • German
  • Italian
  • Dutch
  • Swedish
Text
  • Uppercase

User

  • Log in
  • Create account
  • Upgrade to Premium
Ovido
  • Home
  • Log in
  • Create account

c# SEASON TWO FINAL CHAP 15 pt 2

One of the static methods of the File class is ____________. Prior to writing program statements that access data in a file, you should always check to make sure the file is available by invoking this method.

Exists( )

The ____________ class provides static methods that aid in creating and moving through folders and subdirectories.

Directory

If you attempt to access a file and have an invalid path listed in the constructor, a(n) ____________ exception is thrown.

IOException

Assume that an object of the DirectoryInfo is instantiated using the identifier dirListing. How could you retrieve the names of all files stored in dirListing that have a file extension of .cs?

foreach(FileInfo fil in dirListing.GetFiles("*.cs"))

BinaryReader and BinaryWriter classes ____.

offer streaming functionality oriented toward binary data types

If a StreamReader object named reader is instantiated and associated with a file stored in the project directory named "test.dta", which of the following statements would check to see if the "test.dta" exists?

if (File.Exists(reader))

Every member of the File class is static—meaning methods are called ____.

with the class name

The StreamWriter method(s) that clears all buffers for the current writer and causes any buffered data to be written to the underlying stream is ____.

Flush( )

Which of the following class has public constructors?

StreamReader

File and Directory classes add functionality to their method members beyond that of FileInfo and DirectoryInfo classes.

FALSE

After an application is debugged and you are ready to deploy or distribute it, you can build the most optimized solution,a Release version. To switch to the Release version, select Release from the Solution Configurations list box on the Standard Visual Studio toolbar.

TRUE

Values can be processed in any order. The fifth data record can be retrieved and processed before the first record is processed when ____________ access is used.

random

The StreamReader class extends the ____ class.

TextReader

To avoid fully qualifying references to objects of the StreamReader class, include a using statement with the System.StreamReader namespace.

FALSE

TextReader is an abstract class used to write primary data types as binary values.

FALSE

The ____________ method of the StreamReader class enables you to retrieve one line of text from the file.

ReadLine( )

NET Framework includes the ____________ namespace, which provides basic file and directory support classes. It also contains types that enable you to read and write files and data streams.

System.IO

If an invalid path is included with the constructor for a StreamWriter object, ____.

an IOException exception is thrown

Which method, used with the StreamWriter class, can be invoked to write characters to the stream, followed by a line terminator?

WriteLine( )

The abstract classes of Stream, TextWriter, and TextReader are defined for dealing with files in the ____ namespace.

System.IO

Instead of hard coding the actual filename and file path, you could prompt the user for the name of the file using subclasses of the FileDialog class.

TRUE

Streams are also used in C# to read and write data to binary files.

TRUE

The files created using the ____________ class are readable by the computer but, unlike the files created by the StreamWriter class, you cannot simply open and read the contents of the file using Notepad. A program is needed to interpret the file contents.

BinaryWriter

Binary files can not be read using notepad.

TRUE

Prior to writing program statements that access data in a file, you should always check to make sure the file is available using the Available( ) method.

FALSE

The ____________ class makes it easy to write data to a file because it has implementations for the Write( ) and WriteLine( ) methods.

StreamWriter( )

Quiz
c# SEASON TWO FINAL CHAP 15 pt 1
c# SEASON TWO FINAL CHAP 14 pt 3
17.2 Openbaar vervoer
c# SEASON TWO FINAL CHAP 14 pt 2
c# SEASON TWO FINAL CHAP 14 pt 1
Riptide/formation
c# SEASON TWO FINAL CHAP 12 pt 2
media theorists
Art App
c# SEASON TWO FINAL CHAP 12 pt 1
historia
animal transport
17.1 Personenverkeer
5. Financial Instruments
ancient china
Pride & Prejudice
새 단어 15과 3급
Unité 4 Volet 3
L3 S2 : Histoire du droit social : Partie 1 : Chap 1 : rév libérale (2)
GLANDULAS SALIVALES
DISFONIA
Ingles- Wake me up song the weekend
მულტიკულტურული განათლება
Stability of Monarchy
services
atoms
ICCF
Premier courant: 1534-1900 - Les écrits de la Nouvelle-France
Carbohydrates
laapal
Atomic structure
particle model
mains electricity
paekisonne✅
Test tradizionale
Philo
SNC
wiso
bb
Hidroterapia
Random words
jobs
RINOSINUSITIS
vocab test RIPA
Oncología Parcial
micro
biology
PY2507.6 ~ {The Frontal lobe syndrome + Agnosia & Amnesia}
INCONSCIENT
CONSCIENCE