To which namespace does the file class belong

Assignment Help Computer Engineering
Reference no: EM132218402

Question 1 : Which class allows you to use the Read() and ReadLine() methods to retrieve data from a text file?

Select one:

a. BinaryReader

b. FileReader

c. StreamReader

d. File

e. TextReader

Question 2 : Which of the following would store an integer in a binary file?

Select one:

a. Write7BitEncodedInt()

b. WriteInt()

c. WriteLine()

d. StoreInt()

e. none of the above

Question 3 : Which class allows you to use the Write () and WriteLine () methods to write data to a text file?

Select one:

a. File

b. FileWriter

c. BinaryWriter

d. StreamWriter

e. TextWriter

Question 4 : When you are finished processing a text file, you should:

Select one:

a. call the Finished() method

b. call the Close() method

c. reset the file

d. throw an exception

e. erase the file

Question 5 : To which namespace does the File class belong?

Select one:

a. System.Object

b. System.FileSystem

c. System.IO

d. Object

e. Object.IO

Question 6 : All of the following are exceptions classes that are thrown in conjunction with files, except:

Select one:

a. FileNotFoundException

b. EndOfStreamException

c. DirectoryNotFoundException

d. IOException

e. InvalidDataFileException

Question 7 : In Visual Studio, if you do not specify the full path of a file, what directory is used?

Select one:

a. C:\WorkDirectory

b. the project directory

c. C:\App_Data

d. bin\Debug or bin\Release

e. C:\

Question 8 : Using the verbatim string, you could write the full path of

C:\CSharpProjects\ ChI0\ WorkDirectory as:

Select one:

a. @"C:\CSharpProjects\ChI0\WorkDirectory"@

b. @"C:\\CSharpProjects\\ChI0\\WorkDirectory"

c. @"C:\CSharpprojects\ChI0\WorkDirectory"

d. "@C:\CSharpprojects\ChI0\WorkDirectory"

e. none of the above

Question 9 : All of the following methods of the BinaryReader class could be used to retrieve data, except:

Select one:

a. ReadChar()

b. Read()

c. ReadString()

d. ReadChars()

e. ReadInt()

Question 10 : Which of the following methods could be used to retrieve a decimal value from a binary file?

Select one:

a. ReadDoubleValue()

b. ReadDecimalValue()

c. ReadDec()

d. ReadNumber()

e. ReadDecimal()

Reference no: EM132218402

Questions Cloud

Write some code that counts the number of times the value : Write some code that counts the number of times the value associated with student_id appears in the list associated with incompletes.
Identify the different target markets : Identify the different target markets and, using segmentation characteristics and any other applicable concepts, evaluate and explain your reasons.
Write matlab code that will start with a positive integer : Write MATLAB code that will start with a positive integer and run through this process until a 1 is reached.
Accept a string parameter representing a file name : Write a function named input_stats that accepts a string parameter representing a file name, then opens/reads that file's contents and prints information.
To which namespace does the file class belong : Which of the following methods could be used to retrieve a decimal value from a binary file? To which namespace does the File class belong?
Which method will be executed as a result : If a method in a subclass has the same signature as a method in the superclass, the subclass method overloads the superclass method.
What is the global cpi for each implementation : What is the global CPI for each implementation? Find the clock cycles required in both cases.
Post a working approach for the topic you chose : Read: "Topics and Approaches to the Literary Essay" in the Resources folder. Choose one of the topics provided for you, or email the professor for approval.
What kind of behavior and characteristics do other expect : Write at least a full paragraph (9 sentences) describing Staples' socially prescribed role as an African American male. In other words, what kind of behavior.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Cidr notation

Utilizing the CIDR notation show how to subdivide address block allocated to the provider into four different address blocks allocated to each of the four customers.

  The first element of the array gets a value equal

Fill yourArray with the values from myArray in reverse order. Declare any additional variables you need.

  What is the lumpiness of segmented markets

What is the Lumpiness of segmented markets and how can they be overcome explain with an example? What are the other features that relates to technology.

  What is the return type for this function

Use the code below for this question: What is the return type for this function?

  Define sending emails from it and caused all sorts of mayhem

We saw a case a while back where someone used their yahoo account at a computer lab on campus

  Write a put statement to print in dollars and cents

Assume a float variable called Pay contains the amount 327.66101. Write a Put statement to print it in dollars and cents with three leading blanks.

  1 complete the partial code provided with this lab that

1. complete the partial code provided with this lab that implements a simple group communication application using

  Perform full evaluation of the classification algorithms

CS909: Exercise: Perceptron, SVM, ensemble methods, classifier evaluation, clustering, text classification. Perform full evaluation of classification algorithms

  What are the various benchmark tests that are available

What are the various benchmark tests that are available for testing a computer system or computer network?

  Find the impulse response for an ideal bandpass filter

Find the impulse response for an ideal bandpass filter. Show that the tilter bandwidth is in- versely proportional to the width of the impulse response.

  How net neutrality will affect data networks

Based on your article review and the assigned reading, discuss how net neutrality will affect data networks and the availability of information to businesses.

  What are the three time stamps maintained in the inode

What are the three time stamps maintained in the inode, and how do you display two of them for the file foo?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd