Questions

  1. Which syntax should we use to append text to a file?
    1. File.CreateText
    2. FileInfo.Create
    3. File.Create
    4. File.AppendText
  2. Which syntax should we use if the application needs to wait for asynchronous calls from multiple sources?
    1. async
    2. await
    3. Task
    4. Task.WhenAll
  3. Which one of the following statements is incorrect?
    1. StreamWriter only works with text; however, FileStream works with bytes.
    2. We can lock files in .NET.
    3. If we have an asynchronous function, it can have one of three return types: Task, Task<TResult>, and Void.
    4. DirectoryNotFoundException is thrown when the directory in the file path is no longer available.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.129.211.166