1. Question: You are developing an application for a client residing in Hong Kong. You need to display negative currency
    values by using a minus sign.
    Which code segment should you use?

    A
    Dim culture As NumberFormatInfo = New CultureInfo("zh-HK").NumberFormat
    culture.NumberNegativePattern = 1
    Return numberToPrint.ToString("C", culture)

    B
    Dim culture As NumberFormatInfo = New CultureInfo("zh-HK").NumberFormat
    culture.CurrencyNegativePattern = 1
    Return numberToPrint.ToString("C", culture)

    C
    Dim culture As New CultureInfo("zh-HK")
    Return numberToPrint.ToString("()", culture)

    D
    Dim culture As New CultureInfo("zh-HK")
    Return numberToPrint.ToString("C", culture)

    Note: Not available
    1. Report
  2. Question: Which of the following are value types? (Choose all that apply.) - VB.NET

    A
    Decimal

    B
    String

    C
    System.Drawing.Point

    D
    Integer

    Note: Not available
    1. Report
  3. Question: Which is the correct declaration for a nullable integer? - VB.NET

    A
    Dim i As Nullable<Of Integer> = Nothing

    B
    Dim i As Nullable(Of Integer) = Nothing

    C
    Dim i As Integer = Nothing

    D
    Dim i As Integer(Nullable) = Nothing

    Note: Not available
    1. Report
  4. Question: Which of the following are reference types? (Choose all that apply.) - VB.NET

    A
    Types declared Nullable

    B
    String

    C
    Exception

    D
    All types derived from System.Object

    Note: Not available
    1. Report
  5. Question: What is the correct order for catch clauses when handling different exception types? - VB.NET

    A
    Most general to most specific

    B
    Most likely to occur to least likely to occur

    C
    Most specific to most general

    D
    Least likely to occur to most likely to occur

    Note: Not available
    1. Report
  6. Question: Of the following scenarios, which would be a good reason to use the String-Builder class instead of the String class?

    A
    When building a string from shorter strings

    B
    When working with text data longer than 256 bytes

    C
    When you want to search and replace the contents of a string

    D
    When a string is a value type

    Note: Not available
    1. Report
  7. Question: Why should you close and dispose of resources in a finally block instead of a catch block? - VB.NET

    A
    It keeps you from having to repeat the operation in each catch.

    B
    A finally block runs whether or not an exception occurs.

    C
    The compiler throws an error if resources are not disposed of in the finally block.

    D
    You cannot dispose of resources in a catch block.

    Note: Not available
    1. Report
  8. Question: You create an application with built-in exception handling. For some types of exceptions, you want to add an event to the Event Log that specifies the line of code that initiated the exception. Which Exception property should you use? - VB.NET

    A
    Message

    B
    StackTrace

    C
    Source

    D
    Data

    Note: Not available
    1. Report
  9. Question: You pass a value-type variable into a procedure as an argument. The procedure changes the variable; however, when the procedure returns, the variable has not changed. What happened? (Choose one.) - VB.NET

    A
    The variable was not initialized before it was passed in.

    B
    Passing a value type into a procedure creates a copy of the data.

    C
    The variable was redeclared within the procedure level.

    D
    The procedure handled the variable as a reference.

    Note: Not available
    1. Report
  10. Question: Which of the following statements are true? (Choose all that apply.) - VB.NET

    A
    Inheritance defines a contract between types.

    B
    Interfaces define a contract between types.

    C
    Inheritance derives a type from a base type.

    D
    Interfaces derive a type from a base type.

    Note: Not available
    1. Report