1. Question: Which of the following are examples of built-in generic types? (Choose all that apply.) - VB.NET

    A
    Nullable

    B
    Boolean

    C
    EventHandler

    D
    System.Drawing.Point

    Note: Not available
    1. Report
  2. Question: You create a generic class in which you store field members whose type is generic. What do you do to dispose of the objects stored in the fields? - VB.NET

    A
    Call the Object.Dispose method.

    B
    Implement the IDisposable interface.

    C
    Derive the generic class from the IDisposable class.

    D
    Use constraints to require the generic type to implement the IDisposable interface.

    Note: Not available
    1. Report
  3. Question: You’ve implemented an event delegate from a class, but when you try to attach an event procedure you get a compiler error that there is no overload that matches the delegate. What happened? - VB.NET

    A
    The signature of the event procedure doesn’t match that defined by the delegate.

    B
    The event procedure is declared Shared/static, but it should be an instance member instead.

    C
    You mistyped the event procedure name when attaching it to the delegate.

    D
    The class was created in a different language.

    Note: Not available
    1. Report
  4. Question: You are creating a class that needs to be sorted when in a collection. Which interface should you implement? - VB-NET

    A
    IEquatable

    B
    IFormattable

    C
    IDisposable

    D
    IComparable

    Note: Not available
    1. Report
  5. Question: Why should boxing be avoided? - VB.NET

    A
    It adds overhead.

    B
    Users must have administrative privileges to run the application.

    C
    It makes code less readable.

    Note: Not available
    1. Report
  6. Question: Structures inherit ToString from System.Object. Why would someone override that method within a structure? (Choose all that apply.) - VB.NET

    A
    To avoid boxing

    B
    To return something other than the type name

    C
    The compiler requires structures to override the ToString method

    D
    To avoid run-time errors caused by invalid string conversions

    Note: Not available
    1. Report
  7. Question: If there is no valid conversion between two types, what should you do when implementing the IConvertible interface? - VB.NET

    A
    Delete the ToType member that performs the conversion.

    B
    Throw an InvalidCastException.

    C
    Throw a new custom exception reporting the error.

    D
    Leave the member body empty.

    Note: Not available
    1. Report
  8. Question: With strict conversions enabled, which of the following would allow an implicit conversion? (Choose all that apply.) - VB.NET

    A
    Int16 to Int32

    B
    Int32 to Int16

    C
    Int16 to double

    D
    A double to Int16

    Note: Not available
    1. Report
  9. Question: You need to retrieve a list of subdirectories. Which class should you use? - VB.NET

    A
    FileInfo

    B
    DriveInfo

    C
    FileSystemWatcher

    D
    DirectoryInfo

    Note: Not available
    1. Report
  10. Question: Which of the following types of changes CANNOT be detected by an instance of FileSystemWatcher? - VB.NET

    A
    A text file that is appended

    B
    A USB flash drive connected to the computer

    C
    A directory added to the root of the C:\ drive

    D
    A file that is renamed

    Note: Not available
    1. Report
Copyright © 2024. Powered by Intellect Software Ltd