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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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