Sunday, October 3, 2010

BLOG TASK 1

Answer the following questions:


1. Which of the following methods can be used to open a sequential access file? ALL OF THE ABOVE
  1. AppendText
  2. CreateText
  3. OpenText
  4. all of the above


2. Which of the following writes the contents of the favouriteTuneTextBox’s Text property, followed by the newline character, to the sequential access file associated with the outFile variable?

MY ANSWER IS : outFile.Write(favouriteTuneTextBox.Text)
  1. outFile.Write(favouriteTuneTextBox.Text)
  2. outFile.WriteLine(favouriteTuneTextBox.Text)
  3. outFile.WriteNext(favouriteTuneTextBox.Text)
  4. none of the above


3. What does IO in the syntax stand for?

INPUT OUTPUT!

No comments:

Post a Comment