Daily Archives: Monday, June 30, 2014

  • 2014 Latest 100% Pass Guaranteed Microsoft 70-511 Practice Tests (61-70)

    QUESTION 61
    You are developing a Windows Presentation Foundation (WPF) application. The application contains the following code in the code-behind file for an application window. (Line numbers are included for reference only.)
    01 StackPanel stack = new StackPanel () ;
    02 Content = stack;
    03 for (int i=0; i<10; i++)
    04 {
    05 Button btn = new Buttonf();
    06 btn.Name = ((char) (‘A’ + i)) .ToString ();
    07 btn.Content = btn.Name + "says ‘Click me’ ";
    08
    09 }
    You need to ensure that all of the Button controls that are defined in this code segment appear in the application window.
    Which code segment should you insert at line 08?

    A.    stack.Children.Add(btn);
    B.    stack.Children.Insert (i + 1, btn);
    C.    Content = btn;
    D.    Content = new Button() { Name = {‘A’ + i) . ToString() Content = (i + " says ‘Click me’ ").ToString()};

    Answer: A

    (more…)

  • 2014 Latest 100% Pass Guaranteed Microsoft 70-511 Practice Tests (51-60)

    QUESTION 51
    You are developing a Windows Presentation Foundation (WPF) application. You are implementing the security features for a function that requires File 10. The callers of this function that are higher in the stack do not have permission to read the C:\temp directory. The function also accesses other resources that require permission. You need to ensure that the function has the proper permissions to read the C:\temp directory, and that all other resources in the function can still be accessed. Which attribute should you include with the function?

    A.    [FileIOPermissionAttribute(SecurityAction.Demand,
    Read = "C:\\TEMP")]
    B.    [FileIOPermissionAttribute(SecurityAction.Assert,
    Read = "C:\\TEMP")]
    C.    [FileIOPermissionAttribute(SecurityAction.PermitOnly, Read = "C:\\TEMP")]
    D.    [FileIOPermissionAttribute(SecurityAction.InheritanceDemand, Read = "C:\\TEMP")]

    Answer: C

    (more…)