1. Question: You are developing a large .NET Framework 2.0 application that is required to provide
    support for culture-specific information. You are required to parse a date and time string generated for a
    custom culture and to help the success of the parse operation you designate parse patterns that tare
    likely to succeed. You must additionally prevent the operation from failing whilst you select the method to
    use for parsing the string. What should you do? -(VB.NET)

    A
    The ParseExact method should be used

    B
    The Parse method should be used

    C
    The TryParseExact method should be used

    D
    The TryParse method should be used

    Note: Not available
    1. Report
  2. Question: You are developing a utility screen for a new client application. The utility screen displays
    a thermometer that conveys the current status of processes being carried out by the application. You
    need to draw a rectangle on the screen to serve as the background of the thermometer as shown in the
    exhibit.
    The rectangle must be filled with gradient shading. Which code segment should you choose?
    Exhibit: -(VB.NET)

    A
    Dim rectangle As New Rectangle(10, 10, 450, 25)
    Dim rectangleBrush As New LinearGradientBrush(rectangle, Color.AliceBlue,
    Color.CornflowerBlue, LinearGradientMode.ForwardDiagonal)
    Dim rectanglePen As New Pen(rectangleBrush)
    Dim g As Graphics = Me.CreateGraphics()
    g.DrawRectangle(rectanglePen, rectangle)

    B
    Dim rectangle As New Rectangle(10, 10, 450, 25)
    Dim rectangleBrush As New LinearGradientBrush(rectangle, Color.AliceBlue,
    Color.CornflowerBlue, LinearGradientMode.ForwardDiagonal)
    Dim rectanglePen As New Pen(rectangleBrush)
    Dim g As Graphics = Me.CreateGraphics()

    g.FillRectangle(rectangleBrush, rectangle)

    C
    Dim rectangle As New RectangleF(10F, 10F, 450F, 25F)
    Dim points As Point() = New Point() {New Point(0, 0), New Point(110, 145)}
    Dim rectangleBrush As New LinearGradientBrush(rectangle, Color.AliceBlue,
    Color.CornflowerBlue, LinearGradientMode.ForwardDiagonal)
    Dim rectanglePen As New Pen(rectangleBrush)
    Dim g As Graphics = Me.CreateGraphics()
    g.DrawPolygon(rectanglePen, points)

    D
    Dim rectangle As New RectangleF(10F, 10F, 450F, 25F)
    Dim rectangleBrush As New SolidBrush(Color.AliceBlue)
    Dim rectanglePen As New Pen(rectangleBrush)
    Dim g As Graphics = Me.CreateGraphics()
    g.DrawRectangle(rectangleBrush, rectangle)

    Note: Not available
    1. Report
  3. Question: You are developing a .NET Framework 2.0 application that will be used to manipulate
    graphics files in GIF, JPG and PNG formats. You are required to choose an appropriate data type to store
    graphic files whilst your solution must use the least amount of code. What should you do? -(VB.NET)

    A
    The Icon class should be used

    B
    The Metafile class should be used

    C
    The Image class should be used

    D
    The Bitmap class should be used

    Note: Not available
    1. Report
  4. Question: Certkiller .com uses Visual Studio.NET 2005 as its application development platform. You
    are in the process of storing numerical values up to 2,100,000,000 into a variable and may require storing
    negative values using a .NET Framework 2.0 application. You are required to optimize memory usage
    What should you do? -(VB.NET)

    A
    Int32

    B
    UInt16

    C
    UInt32

    D
    Int16

    Note: Not available
    1. Report
  5. Question: You are currently in the process of creating a class that stores data about Certkiller .com's
    customers.
    Certkiller.com customers are assigned unique identifiers and various characteristics that may include
    aliases, shipping instructions, and sales comments.
    These characteristics can change in both size and data type.
    You start by defining the Customer class as shown below:
    public class Customer{
    private int custID;
    private ArrayList attributes;
    public int CustomerID {      -(VB.NET)

    A
    Use the following code to declare the FindAttribute method:
    Public Function FindAttribute(att As T) As T
    'Find attribute and return the value
    End Function

    B
    Use the following code to declare the FindAttribute method:
    Public Function FindAttribute(att As Object) As Object
    'Find attribute and return the value
    End Function

    C
    Use the following code to declare the FindAttribute method:
    Public Function FindAttribute(Of T)(att As T) As T
    'Find attribute and return the value
    End Function

    D
    Use the following code to declare the FindAttribute method:
    Public Function FindAttribute(att As String) As String
    'Find attribute and return the value
    End Function

    Note: Not available
    1. Report
  6. Question: You are creating a custom exception class named ProductDoesNotExistException so that
    custom exception
    messages are displayed in a new application when the product specified by users is unavailable.
    This custom exception class will take the ProductID as an argument to its constructor and expose this
    value through the ProductID.
    You are now in the process of creating a method named UpdateProduct.
    This method will be used to generate and manage the ProductDoesNotExistException exception if the
    ProductID variable contains the value 0.
    You need to ensure that use the appropriate code for the UpdateProduct method.
    What should you do? -(VB-.Net)

    A
    Make use of the following code:
    Public Sub UpdateProduct()
    Try
    If ProductID = 0 Then
    Throw New ProductDoesNotExistException(ProductID)
    End If
    Catch ex As ProductDoesNotExistException
    MessageBox.Show("There is no Product" + ex.ProductID)
    End Try
    End Sub

    B
    Make use of the following code: .
    Public Sub UpdateProduct()
    Try
    If ProductID = 0 Then
    Throw New Exception("Invalid ProductID")
    End If
    Catch ex As ProductDoesNotExistException
    MessageBox.Show(ex.Message)
    End Try
    End Sub

    C
    Make use of the following code:
    Public Sub UpdateProduct()
    If ProductID = 0 Then
    Throw New ProductDoesNotExistException(ProductID)
    End If
    End Sub

    D
    Make use of the following code:
    Public Sub UpdateProduct()
    If ProductID = 0 Then
    Throw New Exception("Invalid ProductID")
    End If
    End Sub

    Note: Not available
    1. Report
  7. Question: You work as the application developer at Certkiller .com. Certkiller .com uses Visual
    Studio.NET 2005 as its application development platform. You have recently finished development of a
    class named TestReward and package the class in a .NET 2.0 assembly named TestObj.dll. After you
    ship the assembly and it is used by client applications, you decide to move the TestReward class from
    TestObj.dll assembly to the TestRewardObj.dll Assembly. You are to ensure when you ship the updated
    TestObj.dll and TestRewardObj.dll assemblies that the client applications continue to work and do not
    require recompiling. What should you do? -(VB.NET)

    A
    The TypeForwardedTo attribute should be used

    B
    The TypeConvertor.ConvertTo method should be used

    C
    The InternalsVisibleTo attribute should be used

    D
    The Type Convertor.ConvertFrom method should be used

    Note: Not available
    1. Report
  8. Question: You have recently created a custom collection class named ShoppingList for a local
    supermarket.
    This custom class will include ShoppinItem objects that have the public properties listed below.
    * Name
    * AisleNumber
    * OnDiscount
    You are required to enable users of your class to iterate through the ShoppingList collection, and to list
    each product name and aisle number using the foreach statement. You need to achieve this by declaring
    the appropriate code.
    What code should you use? -(VB.NET)

    A
    Public Class ShoppingList
    Implements ICollection
    ' Class implementation
    End Class

    B
    Public Class ShoppingList
    Implements IEnumerator
    Implements IEnumerable
    ' Class implementation
    End Class

    C
    Public Class ShoppingList
    Inherits Ilist
    ' Class implementation
    End Class

    D
    Public Class ShoppingList
    Inherits [Enum]
    ' Class implementation
    End Class

    Note: Not available
    1. Report
  9. Question: You are developing a .NET Framework 2.0 application used to store a type-safe list of
    names and e-mail addresses. The list will be populated all at ones from the sorted data which means you
    well not always need to perform insertion or deletion operations on the data. You are required to choose a
    data structure that optimizes memory use and has good performance.
    What should you do? -(VB.NET)

    A
    The System.Collections.Generic.SortedList class should be used

    B
    The System.Collections.HashTable class should be used

    C
    The System.Collections.Generic.SortedDictionary class should be used

    D
    The System.Collections.SortedList class should be used

    Note: Not available
    1. Report
  10. Question: You are currently in the process of reviewing an application that was created by a fellow
    developer.
    The application that you are reviewing includes a declaration for a collection named EmployeeList, which
    stores Employee objects.
    The declaration is shown below:
    Public Class EmployeeList
    Inherits Enumerator
    Implements IEnumerable
    ' Class implementation
    End Class
    You require the ability to iterate through the EmployeeList with minimum development effort.
    What should you do? -(VB.NET)

    A
    Utilize the Switch statement

    B
    Utilize the Do While statement

    C
    Utilize the For Each statement

    D
    Utilize the If statement

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