PrepAway - Latest Free Exam Questions & Answers

10 Comments on “Hot Area:

  1. Xin Zhao says:

    Can someone explain this question to me? How do I know which serializer works for which class and which does not? Also, there is conflict between the answers of the commenters and the poster. This question came up the last time I attempted the exam(June 22 this year) so I would really like to know the right answer and why it is so. Thanks!




    0



    0
  2. Hedz says:

    If you try to use binaryformater on both classes you will receive exception:

    Class1′ in Assembly ‘TestApplication, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’ is not marked as serializable.’

    For DataContractSerializer it’s ok.




    0



    0
  3. David says:

    2017/Sep/28 New 70-483 Exam Questions and Answers:

    QUESTION 232
    Drag and Drop Question
    You have the following code.
    232_thumb[1]
    You need to return all of the products and their associated categories.
    How should you complete the code? To answer, drag the appropriate code elements to the correct targets in the answer area. Each code element may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.

    232-1_thumb[1]
    Answer:
    232-2_thumb[1]

    QUESTION 233
    You write the following method (line numbers are included for reference only):
    233_thumb[1]
    You need to ensure that the method extracts a list of URLs that match the following pattern:
    @http://(www\.)?([^\.]+)\.com;
    Which code should you insert at line 07?
    233-1_thumb[1]

    A. Option A
    B. Option B
    C. Option C
    D. Option D

    Answer: A
    Explanation:

    QUESTION 234
    Drag and Drop Question
    You have the following class. (Line numbers are included for reference only.)
    234_thumb[1]
    You need to complete the doOperation method to meet the following requirements:
    – If AddNumb is passed as the operationName parameter, the AddNumb function is called.
    – If SubNumb is passed as the operationName parameter, the SubNumb function is called.
    Which code should you insert at line 16? Develop the solution by selecting and arranging the required code blocks in the correct order. You may not need all of the code blocks.
    234-1_thumb[1]
    Answer:
    234-2_thumb[1]

    QUESTION 235
    You are developing a method named CreateCounters that will create performance counters for an application.
    The method includes the following code. (Line numbers are included for reference only.)
    235_thumb[1]
    You need to ensure that Counter2 is available for use in Windows Performance Monitor (PerfMon).
    Which code segment should you insert at line 16?

    A. CounterType = PerformanceCounterType.RawBase
    B. CounterType = PerformanceCounterType.AverageBase
    C. CounterType = PerformanceCounterType.SampleBase
    D. CounterType = PerformanceCounterType.CounterMultiBase

    Answer: C
    Explanation:

    QUESTION 236
    Drag and Drop Question
    You are developing an application that implements a set of custom exception types.
    You declare the custom exception types by using the following code segments:
    236_thumb[3]
    The application includes a function named DoWork that throws .NET Framework exceptions and custom exceptions. The application contains only the following logging methods:
    236-1_thumb[1]
    The application must meet the following requirements:
    – When ContosoValidationException exceptions are caught, log the information by using the static void Log (ContosoValidationException ex) method.
    – When ContosoDbException or other ContosoException exceptions are caught, log the information by using the static void Log(ContosoException ex) method.
    You need to meet the requirements.
    You have the following code:
    236-2_thumb[2]
    Which code segments should you include in Target 1, Target 2 and Target 3 to complete the code? (To answer, drag the appropriate code segments to the correct targets in the answer area. Each code segment may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.)
    236-3_thumb[1]
    Answer:
    236-4_thumb[1]

    More 70-483 Practice Questions can be viewed here for free: http://www.examcollections.info/?s=70-483




    0



    4
  4. Swapnil says:

    No
    No
    Yes .. Confirmed
    Class1 c1 = new Class1(“Sachin”);
    Class2 c2 = new Class2();
    BinaryFormatter formatter = new BinaryFormatter();
    FileStream fs = new FileStream(“D:\\swap.txt”, FileMode.OpenOrCreate);
    //formatter.Serialize(fs, c2);

    DataContractSerializer dc = new DataContractSerializer(typeof(Class2));
    dc.WriteObject(fs, c2);
    Console.WriteLine(“Object Serialized”);
    Console.ReadLine();




    3



    0
  5. Boubaker Echieb says:

    Both of two classes are can be serialized using DataContractSerializer.
    To Use BinaryFormatter classes should be marked as Serializable : [Serializable]




    3



    1

Leave a Reply