Get 100% Real Exam Questions, Accurate & Verified Answers By IT Experts
Fast Updates & Instant Download!
Download Free 70-511 Exam Questions
Exam | 70-511 - TS: Windows Applications Development with Microsoft .NET Framework 4 |
Size: | 225.65 KB |
Posted Date: | Thursday, May 26, 2011 |
# of downloads: | 2 |
Free Download: | This file is outdated. Browse other 70-511 VCE Files |
Top Microsoft Certification Exams
Site Search:
Only Registered Members Can Download VCE Files or View Training Courses
Please fill out your email address below in order to Download VCE files or view Training Courses. Registration is Free and Easy - you simply need to provide an email address.
Log into your ExamCollection Account
Please Log In to download VCE file or view Training Course
Only registered Examcollection.com members can download vce files or view training courses.
SPECIAL OFFER: GET 10% OFF
Pass your Exam with ExamCollection's PREMIUM files!
SPECIAL OFFER: GET 10% OFF
Use Discount Code:
MIN10OFF
A confirmation link was sent to your e-mail.
Please check your mailbox for a message from support@examcollection.com and follow the directions.
Download Free Demo of VCE Exam Simulator
Experience Avanset VCE Exam Simulator for yourself.
Simply submit your e-mail address below to get started with our interactive software demo of your free trial.
Other Question I remember.
add GroupDescription to ListBox in Xaml
Then another Question Related to Easing Animation(I only remember Option not question)
1)BackEase
2)BounceEase
3)CubicEase
4)SineEase
Then another question regarding
A. <DataTemplate DataType = {x:key. x:Type = clr:String}.>
<Textbox binding and formatting a string>
<Textbox binding and formatting decimal>
</DataTemplate>
B. <DataTemplate {x:key. .>
<Textbox binding and formatting a string>
<Textbox binding and formatting decimal>
</DataTemplate>
Then Another is Templete Background Binding in List
<ItemsControl.Template>
<ControlTemplate TargetType="ItemsControl">
<Border BackGround={Binding TempleteBiding..}>
<ItemsPresenter/>
</Border>
</ControlTemplate>
</ItemsControl.Template>
<ItemsControl.Template>
<ControlTemplate TargetType="ItemsControl">
<Border BackGround={Binding TempleteBiding..}>
<ContentPresenter/>
</Border>
</ControlTemplate>
</ItemsControl.Template>
Then Another Questin Regarding applying style to all control what you use as Taget Style
1)FrameworkElement
2)UIElement
3)Visual
4).
I have passed it 754.
got 30+ quesition from outside dump.
The questions i remember which are not in dump:
One is for xml data provider in XAML,BindContact to List,
you need to choose Right Source for XmlDataProvider
<XmlDataProvider x:Key="contacts" Source="Contacts.xml" XPath="/NewDataSet">
</XmlDataProvider>
Then Which is the best way to manage fix size control
1)grid
2)stack
3)Dock
4).
From difficultes of 3-rd objective two questions.
First about grouping items in the ListBox:
A. StackPanel.GroupDescription.. <not correct>
B. ListBox.GroupDescription.. <not correct>
c. CollectionViewSource.GroupDescription(propertyName) + some attributes <is correct!>
D. ..
Second about sorting List<> on last name property.
public class Person
{
string firstName;
string lastName;
public string FirstName
{
get { return firstName; }
set { return firstName; }
}
public string LastName
{
get { return lastName; }
set { return lastName; }
}
}
public List<Person> Persons = new List<Person>();
Persons.Add(..);
..
Persons.Add(..);
Which of actions should you perform to sort on LastName property?
Long time I've hesitate betweeen
IEnumerable newPersons = (IEnumerable)(Persons.Sort(Comparer))
and
IEnumerable newPersons = (IEnumerable)(Persons.Sort(Comparer).ToList())
but here I was mistaken (1 from 13)
Practice show, that enough simple Persons.Sort(Comparer), but I not remember two more answer variantes.
Good luck!
3)You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
You need to display the image from file myImage.jpg inside rounded bounds.
Which of actions should you perform?
A. Create the myImageBrush as a resource. Set ImageSource property to location of myImage.jpg file. Fill the interior of the ellipse with myImageBrush.
B. Create the myImageBrush as a resource. Set ImageSource property to location of myImage.jpg file. Fill the interior of the rectangle with myImageBrush.
C. Set ClipRegion rpoperty of Image to ellipse.
D. Set ClipRegion rpoperty of Image to rectangle.
Correct is A.
From difficultes of 1-st objective I remember a question with the easing functions
The answers there are:
A. BounceEase
B. ElastiEase
C. BackEase
D. SineEase
Don't catch the question context, but not A and not C. About ElastiEase and SineEase advise take the practice to find out correct answer during test.
Passed last week with 850. About half were new questions.
1)You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
You have defined two styles - Red and Black as resources. The variables BorderThickness and CornerRadius are common for both styles.
The styles also use Background variable. You need to define BorderThickness and CornerRadius only once in XAML.
What should you do?
A. Define both styles in one file. Assign BorderThickness and CornerRadius in Red style. Use BasedOn property in the Red style.
B. Define both styles in one file. Assign BorderThickness and CornerRadius in Red style. Use BasedOn property in the Black style.
C. Define styles in two files. Assign BorderThickness and CornerRadius in Black style. Use MergedDictionaries where first must be file with Red style.
C. Define styles in two files. Assign BorderThickness and CornerRadius in Black style. Use MergedDictionaries where first must be file with Black style.
Correct is B.
PS. The style names if fact was Green and Blue, but i don,t remember their order. To avoid of answers mismathing i've changed this names.
2)You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
The application contains the DockPanel and three panels inside it. You need to reverse the order in which the panels are displayed.
What should you do?
A. Set the HorizontalAlignment property of DockPanel to Right.
B. Set the FlowDirection property to RightToLeft for each of child panels.
C. Set the DockPanel.Dock property to Right for each of child panels.
D. Set the LayoutTransform property of DockPanel to System.Windows.Media.Transform.Inverse.
Correct is C.
To make clear one more thing:
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application has a window named MainWindow that has a StackPanel control named sp as the root element.
You want to create a Button control that contains a TextBlock control with the "Save" Text property.
You need to create the control dynamically and add the control to sp.
Which code segment should you write in the constructor of the MainWindow class?
Button btn = new Button();
TextBlock text = new TextBlock();
text.Text = "Save";
btn.Content = text;
sp.Children.Add(btn); <Correct!!!>
Button btn = new Button();
TextBlock text = new TextBlock();
text.Text = "Save";
btn.ContentTemplateSelector.SelectTemplate(text, null);
sp.Children.Add(btn); <Is not correct>
Very good chat!
I agree with almost all. But I want review next question:
You are developing a Windows Presentation Foundation (WPF) application.
You need to display HTML content from a Web Page on the WPF form. What should you do?
A. Add a FlowDocumentReader control to the design surface. Then create a FlowDocument control.
B. Add a DocumentViewer control to the design surface. The create a FixedDocument control.
C. Add a WebBrowser control to the design surface. The use the Navigate method to navigate the URI object.
D. Add a ContentControl control to the design surface. The reference a WebClient object to return an HTML string.
I added WebBrowser, ContentControl and Button to MainWindow. In button1_Click event handler wrote code:
private void button1_Click(object sender, RoutedEventArgs e)
{
webBrowser1.Navigate(@"http://www.google.com");
System.Net.WebClient wc = new System.Net.WebClient();
contentControl1.Content = wc.DownloadString(@"http://www.google.com");
}
When button is clicked - you can see: HTML only in ContentControl -
so CORRECT IS D.
Hi friends, thanks for the dumps..Cleared MCTS 70-511 on 26th July 2012..It was tough because only around 25 questions were directly out of the dumps but still the dumps and comments were of huge help. Other questions were also somewhat similar..My advice to all who wants to give the certification is to study through all topics in the syllabus once along with dumps and also solve the questions at the end of each chapter if you have the book..Even I can mail you the ebook to whoever needs it. Thanks a lot once again for everyone who comment here..
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application that
allows users to arrange images.
You need to ensure that users can arrange child elements in a panel without affecting the size of the
elements.
You also need to ensure that child elements are oriented horizontally.
Which control should you use?
A. ListBox
B. DockPanel
C. WrapPanel
D. StackPanel
i think anwser is C ,but the answer is D
plz verify me the answer, i m confused between C and D.
Passed last friday with 962. Check the last dump and the ones from @daex21's comment
Passed today with 850, dump is still valid with comments!
@guripa && @george : new questions ? even considering the ones on comments ?
is true, failed yesterday with 672 points. many new questions
this dump is not valid, the exam has changed, 24 of 41 new questions. I failed today whith 587 points.
Hi all,
I have created a new vcf file containing all Jeroen questions,all from comments below( as acurate as posible). They sey the file my take up to 3 days to be online. Anyway, file name is: Microsoft.Test4Pass.70-511.by.Cris.115q.vce
Please fill free to contribute to an emproved later version.
I did it today with 962 points.
there were some tricky questions but nothing really new.
what i remember that you should really have a look:
the data template thing:
A. <DataTemplate DataType = {x:key. x:Type = clr:String}.>
<Textbox binding and formatting a string>
<Textbox binding and formatting decimal>
</DataTemplate>
B. <DataTemplate {x:key. .>
<Textbox binding and formatting a string>
<Textbox binding and formatting decimal>
</DataTemplate>
because i maybe failed there
and also prepare for a question that asks you to filter a collectionView, with the following syntax
myCollectionView.Filter = new Predicate<object>(Contains);
you need to know ho it works and if the filter method has to return true or false.
they give you some methods that return all false and one with lamda syntax that i think returned the right value for the wanted filter.
Also an other tricky question was one that asked to bind a routed command binding to a button. The aim was to play the sound with a mediaplayer object. And to call a handler with the following signature:
void OpenCmdExecuted(object target, ExecutedRoutedEventArgs e)
{
mediaPlayer.play
}
They give you codebehind code to register the right event. You should know how this could be done and witch events you can use for that.
I picked the answer with the Executed event because that was the ony one that maked sense to me, but dont kow whats the right solution. Other Options were CanExecute etc.
Read more here: (this is really near to the question)
http://msdn.microsoft.com/de-de/library/system.windows.input.commandbinding.executed.aspx
Passed with 925. About 25 questions from this Dump. About 13 questions from http://pro.ingens.ru/2011/11/prepearing-for-70-511.html and about 3 new. Good luck.
I looks like question 7 (answer A) is not right (about highlighting a button yellow when mouse is over and content is null). To make this work, you should have the MultiTrigger.Setter set (where you set the properties of the button). I tried answer A, but it doesn't work
Pass today with score of 850. About 23 of 41 from this dump, around15 from comments and 3 or 4 were new.
One think more, i am100% sure that i did all the answers as per dump and comment. so there are some question with invalid answer in dump or comments.
Good luck to all..!!!!!!!!!!!!
Passed the Exam yesterday by scoring 812 points. Preparation from dumps was a very valuable thing. 80% of the questions came from dumps inclusive of comments, remaining were new with few questions almost same as the old ones. Good Luck!
Passed today with 887. Half of the questions were from this dump and 2/3 of the other half were from this comments, so make sure you read all the comments!
Good luck!
Passed today, 887. About 5-6 questions not listed here. Dump is valid with comments/
Passed today with 925, All the questions came from the dump and the comments.
many answers from comments are answered here http://pro.ingens.ru/2011/11/prepearing-for-70-511.html
nu sunt Karamian) nici aproape. Ada pe mine in skype, login meu este jetartiom
Thanks for the quick answers, i also think the same for the XBAP question and the FileIOPermission, i was inclined to go for Dispacher.BeginInvoke(Priority.Background), but now i'm more inclined for the ThreadPool option.
Good luck for the exam and thanks again.
Noroc si tie maestre, vine de la Artiom Karamian numele tau? :) Numa' bine!
Floosty
about computations is described here http://pro.ingens.ru/2011/11/prepearing-for-70-511.html
answer should be about ThreadPool
About XBAP - as far as I could find - the answer is to rebuild the application.
Restart whole IIS - mhm, don't think so,
to use command - mmm, also not,
and without any rebuild probably changes won't take effect. But that is just my opinion.
CodeAccessPermission.Assert
Declares that the calling code can access the resource protected by a permission demand through the code that calls this method, even if callers higher in the stack have not been granted permission to access the resource. Using Assert can create security issues.
----> It's right (as far as we can see).
CodeAccessPermission.Demand
Forces a SecurityException at run time if all callers higher in the call stack have not been granted the permission specified by the current instance.
This method is typically used by secure libraries to ensure that callers have permission to access a resource. For example, a file class in a secure class library calls Demand for the necessary FileIOPermission before performing a file operation requested by the caller. - So, it's not right
-----> not
CodeAccessPermission.PermitOnly
Prevents callers higher in the call stack from using the code that calls this method to access all resources except for the resource specified by the current instance.
PermitOnly is similar to Deny, in that both cause stack walks to fail when they would otherwise succeed. The difference is that Deny specifies permissions that will cause the stack walk to fail, but PermitOnly specifies the only permissions that do not cause the stack walk to fail.
----> not
Noroc floosty (sunt din Moldova)
Can someone enlighten me with the answers to the following 3 questions?
1.You have a function which has permissions to read "c: emplogfile.txt". It also must access other resources. Callers of your function higher in the call stack do not have permissions to read this file.
What attribute must you assign to your function to enable it to access this file and other resources with the correct permissions :
a) FileIOPermission[SecurityData.Demand, .]
b) FileIOPermission[SecurityData.Assert,.]
c) FileIOPermission[SecurityData.PermitOnly, .]
d) .inherited something
2.You deploy XBAP application then change some files. You want to make it work. What should you do:
a) Restart IIS
b) use mage -cc
c) Delete all server files. Rebuild project and manually deploy it.
d) Delete all server files. Put the all files again (without recompiling?).
3.There is a window that has a method doing long time computations. The class is defined as follows:
public class MainWindow: Window{
public void DoSth(SomeEvent e){
var result = DoLongComputations();
}
}
This method is called when the window is loaded. What should you do to perform calculations and enable to UI not to freeze. What mechanism should you use:
a) sth. Thread(2,2)
b) ThreadPool.QueueUserWorkItem
c) Dispatcher.BeginInvoke with DispatcherPriority.Normal
d) Dispatcher.BeginInvoke with DispatcherPriority.Background
Thanks
Passed yesterday with 887. I've read the book, practiced with this dump and looked into the comments. 12 new questions and most of them are discussed, but you have to find out for yourself what's the correct answer on these questions.
Passed yesterday with 737.
15 new questions. All of them commented in this thread.
.contd. (part 3)
8. Styles for an application are kept in another assembly (Themes.dll). You need to apply style that was in the other assembly, named "BlueBorderStyle" defined in "BlueStyles.xaml". The style should be available to the application.
The method of solving this was to find out the proper method of calling the style from other assembly. The next thing was to locate where to inlcude this style:
a) Windows.Resources -> "/themes;component/BlueStyle.xaml"
b) Windows.Resources -> pack"//,,,;component/BlueStyle.xaml"
c) Border.Resources -> . another variation
d) Border.Resources -> . another variation
Answer: B. (Windows resource so style available to the whole application).
9. New question on playing Media files using a button click.
What code should be added in the codebehind to call the following function :
Player_Execute (object sender, RoutedEventArgs e)
{
MediaPlayer.Play();
}
Things to consider were :
- Use a command binding or RoutedEvent or RoutedUIEvent ?
- Use CanExecute or Execute ?
(Not CanExecute as the event args on the function above would have to be ' CanExecuteRoutedEventArgs)'
Good Luck. !!
.contd. (part2)
5) How do you format a phone number as (###) - ### ### in a function call used by a converter, to convert a long (phone number) to a formatted string (text proprety of a textblock) ?
<TextBlock Text ={Binding Path=Phone number, Source=aValueConverter}>
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
return String.Format(": (###) - ### ###", (long)value);
}
Question is asking:
-use Convert or Convertback ?
- Convert parameter or value to a long ?
I think the answer is : Convert and (long)value
6) Question on using DataTemplates to format string and decimal values.
This question is asking about the syntax of setting up a data templates for the following resources eg:
xmlns:clr="clr-namespace:System;assembly=mscorlib">
<.Resources>
<clr:String .>
<clr:Decimal.>
</.Resources>
Which code can be used to format the strings (unchanged)and decimals (as Currency).
A. <DataTemplate DataType = {x:key. x:Type = clr:String}.>
<Textbox binding and formatting a string>
<Textbox binding and formatting decimal>
</DataTemplate>
B. <DataTemplate {x:key. .>
<Textbox binding and formatting a string>
<Textbox binding and formatting decimal>
</DataTemplate>
etc.
I think i may have got this wrong. Learn the syntax for data templates .
7. A mouseover event on a button causes it to :
- change background colour
- increase in size
When the mouse leaves the button, it returns to normal.
Answer : Create a template. Assign a Visual State.
I passed with 900+. About 28 questions from this dump (or Watson or Nekol) + about 8 from comments and 1 or 2 new. You can pass by revising the dumps and comments.
Here's what i remember of those from the comments here and the new questions :
1) You have a function which has permissions to read "c: emplogfile.txt". It also must access other resources. Callers of your function higher in the call stack do not have permissions to read this file.
What attribute must you assign to your function to enable it to access this file and other resources with the correct permissions :
a) FileIOPermission[SecurityData.Demand, .]
b) FileIOPermission[SecurityData.Assert,.]
c) FileIOPermission[SecurityData.PermitOnly, .]
d) .inherited something
I think i got this one wrong - i think the correct answer may be:
either B.'SecurityData.Assert' or ' C. SecurityData.PermitOnly'.
A. would cause a security exception as callers higher in the stack do not have the correct permissions.
(B. can give rise to security issues though).
2) How to add all buttons to a stackpanel which is the content of a text block (buttons are added to a stack):
Answer : stackpanel.Children.Add(btn)
3) 'Based on' style inheritance between header and text styles :
Answer: 'Based On'
4) Presentation Trace Source should be output to which window :
Answer: Output
Good luck.
All, I passed the exam with the score of 925 day before y'day. Out of 41 questions 30plus questions are from this dumps. Try your luck!!
Passed with 962. 7 from comments 7 new.
1. Transparency violation:
- Handle all exceptions
- SecurityAction.Assert
- SecurityAction.Demand
- ScurityAction.PermitOnly
. have no idea about the answer. I checked first.
2. Two textboxes: header and . both with styles. Almost alike. Need to inherit all changes. I checked BasedOn.
3. In ClickOnce deployment. Where the client havent upodated checked mage.exe -cc. mage -cc clears clickonce cache.
i had a 2 qeustion s related from ValidationRules class
All questions were from here (dump or comments);defenetly pass by reading this dump and comments.Today I got 887 marks
Passed with almost maximum points.
All questions were from here (dump or comments) with perhaps a maximum or 5 new (but they were similar to what is already here). What I remember:
- style x:Key="s1" x:Name="s2" inside resource - how to load it from code. There is FindName or FindResource ("s1" or "s2")
- a very long code segment which binds hierarchical data template to context menu items (2 root items are Color and Fonts). Context menu must be assigned to a TextBlock.3/4 answers assign it to Window (Window.ContextMenu) but just one to TextBlock (TextBlock.ContextMenu) - that answer is correct
Tooday passed with 700!! :) 41 questons
A lot of questions from your comments :( and this dump
Aditional question about tunneling (and bubling) events
Failed. with 658 marks. i read dumps and all the comments question given below, but only 15 question came from the dumps and 4Q came from the below comments. that too not with the correct answer. Need a new dumps. upload new dumps or some questions with correct answer
Failed with this dump in Spain! More than 20 questions are new.
passed with 775.
11 new question
Hi xa! This exam i already valid to pass? is identical? i´m from Spain too ;)
Thanks for your help Ja . and congrat u too!!
Since everyone who took the exam recently were kind enough to remember the new questions, can someone please build a new vce file using 'em?
Congrats xa hope some of the questions I gave you came up and were of some use to you :)
Passed with 900.
4. There was a questions with loading Style from other Themes.dll assembly. You need to apply style that was in the other assembly and it name was "BlueBorderStyle" defined in "BlueStyles.xml".
There was given piece of code sth. like <style BasedOn={StaticResource BlueBorderKey"}>.</Style>
The method of solving this was to find out the proper method of calling the style from other assembly. The next thing was to locate where to inlcude this style:
a) Windows.Resources -> "/themes;component/BlueStyle.xaml"
b) Windows.Resources -> pack"//,,,;component/BlueStyle.xaml"
c) Button.Resources -> . another variation
d) Button.Resources -> . another variation
=========================================================
5. There is a window that has a method doing long time computations. The class is defined as follows:
public class MainWindow: Window{
public void DoSth(SomeEvent e){
var result = DoLongComputations();
}
}
This method is called when the window is loaded. What should you do to perform calculations and enable to UI not to freeze. What mechanism should you use:
a) sth. Thread(2,2)
b) ThreadPool.QueueUserWorkItem
c) Dispatcher.BeginInvoke with DispatcherPriority.Normal
d) Dispatcher.BeginInvoke with DispatcherPriority.Background
=========================================================
6. You deploy XBAP application then change some files. You want to make it work. What should you do:
a) Restart IIS
b) use mage -cc
c) Delete all server files. Rebuild project and manually deploy it.
d) Delete all server files. Put the all files again (without recompiling?).
Hi all. Today passed with 812/1000. Many questions came from this dump, but there were some that have not been listed here yet. I post here what I have remembered, but it is not exactly word by word what was in the exam. Order of the answers can be not correct as well.
1. You develop a control that contains (inherits from) Button. The control exposes IsActive property. There is also a business object that you want to bind its property to the IsActive control property. What should you do:
a) Implement INotifyPropertyChanged interface on business object
b) Define IsActive as DependancyProperty
c) Define IsActive as .NET CLR property
d) .
=========================================================
2. There is DataGridView. You want to prevent user from leaving blank column cell. When leaving the field and it is empty you want to stay on this field and focus it. Which event should you use:
a) Validating
b) CellValidating ?
c) .
d) CellRowEdit
=========================================================
3. You want to attach context menu to the TextBox (TextBlock? - does not matter) scope. The data in the menu should be ordered hierarchically . Which syntax should you use?
(There were 3 or 4 resources, one for fonts, one for sizes of fonts, one for HierarchicalDataTemplate).
There were 4 variations with placing ContextMenu. Find out how to apply ContextMenu.
Passed today with 812 using this dump and the questions which I have put in the comments. Did not read the book so this dump plus comments is more than sufficient to pass the exam
Hi guys, just passed today with 875/1000.
Got about 26/41 questions from this dump. It's pretty much impossible to pass the exam with only this exam dump.
Hi Xa,
Thanks for that and good luck to you too :-)
thanks Jay.
i have exam 70-511 exam tomorow too. if u have any problem u write here.
thanks and lucky
Hi Xa,
The questions you are talking about now are the ones I need also. Just wish I could find the actual questions and answers now as I have my 70-511 resit tomorrow.
Found this on the dynamic button add might give you some clue:
http://arcanecode.com/2007/09/07/adding-wpf-controls-progrrammatically/
Think the answer for the gridcolumn one is just to set the span to 2
Not sure about the other two questions they baffled me last week lol
thanks Jay.
the other question in .how to catch transparency exceptions???
2 . and how to deploy project with validation key (suposed with Setup project).
and
2. phone number as 0:### #### #### #### ??
3. Grid with control set to left have to centre in top of grid (Grid.Columnspan=2)
4. Adding dynamic buttons to a stack panel (i think btn,content(text))
tanksss Jay
Hi Xa,
1.
=========================================================
FileIOPermission.Demand() gives you temporary access to a file that lacks set IO permissions.
2.
========================================================
Which of the following examples of the pack URI syntax accesses a file named
myImage.jpg in a folder named MyFolder in another assembly named myAssembly?
A.
Pack://application:,,,/myAssembly;component/MyFolder/myImage.jpg
B.
Pack://application:,,,/myAssembly;MyFolder/component/myImage.jpg
C.
Pack://application:,,,;component/myAssemby/MyFolder/myImage.jpg
D.
Pack://application:,,,/myAssembly;component/myImage.jpg
You can also use the pack URI syntax to access resources embedded in other assemblies. The
following example demonstrates the basic pack URI syntax for accessing embedded resources
in other assemblies:
pack://application:,,,/<AssemblyName>;component/<Folder>/<FileName>
Thus, if you wanted to locate a file named myPic.bmp in the folder myFolder in another assembly named myAssembly, you would use the following pack URI:
Pack://application:,,,/myAssembly;component/myFolder/myPic.bmp
As with other pack URIs, if the embedded file does not exist within a folder, the folder is omitted in the URI.
3:
========================================================
Can you give me anymore information on the CollectionView.Filter question as I dont seem to have it?
Passed with 925.
about 15 new questions from 41.
Material:
MCTS Self-Paced Training Kit 70-511 book,
MCTS Self-Paced Training Kit 70-511 tests,
and this exam dump.
Experience:
Beginner in wpf. Almost no practice, only knowledge.
hi Jay!
Do u know the next questions.
catch transparency security?
one question for FileIOPermission attribute.
- Resource dictionary from other assembly (Themes.dll) - how to set source attribute
- CollectionView.Filter (the question is a little tricky there are correct syntax just with swapped condition - correct answer is with inline delegate)
You are developing a Windows Presentation Foundation (WPF) application. An event triggers a workflow such that a parent control executes the event handlers before the child controls. You need to ensure that if a parent controls event handler encounters an error, the subsequent handlers are not called. What should you do?
A. Use handlers for a tunneling routed event and mark the event as handled in the case of a problem.
B. Use handlers for a tunneling routed event and make the event as handled in the finally portion of a try-catch-finally code block.
C. Use handlers for a bubbling routed event and mark the event as handled in the case of a problem.
D. Use handlers for a bubbling routed event and set the Handled property of the RoutedEventArgs object to true in the catch portion of a try-catch-finally code block.
CORRECT ANSWER A
You are developing a Windows Presentation Foundation (WPF) application that displays financial data. The following style is applied to every Label control that displays currency.
01 <Style x:Key = "CurrencyLabel"
02 BasedOn = "{StaticResource {x:Type Label}}"
03 TargetType = "{x:Type Label}">
04 <Setter Property = "Template">
05 <Setter.Value>
06
07 </Setter.Value>
08 </Setter>
09 </Style>
You need to ensure that the style is updated to meet the following requirements regarding currency:
- It must be right aligned
- It must display the number with the regional currency settings
Which markup segment should you insert at line 06?
A. <ControlTemplate TargetType = "{x:Type Label}"> <ContentPresenter
HorizontalAlignment = "Right" ContentStringFormat="{}{0:C}"></ControlTemplate>
B. <ControlTemplate> <ContentPresenter HorizontalAlignment = "Right"
ContentStringFormat = "{}{0:C}"/></ControlTemplate>
C. <ControlTemplate TargetType = "{x:Type Label}" <Label HorizontalAlignment = "Right"
Content = "{Binding StringFormat = {}{0:C}}"/></ControlTemplate>
D. <ControlTemplate> <Label HorizontalAlignment = "Right" Content = "{Binding
StringFormat = {}{0:C}}"/></ControlTemplate>
CORRECT ANSWER A
You are developing a Windows Presentation Foundation (WPF) application. You need to use XAML to create a custom control that contains two Button controls. From which base class should you inherit?
A. FrameworkElement
B. UIElement
C. UserControl
D. Button
CORRECT ANSWER C
You use Microsoft .Net Framework 4 to create a Windows Form application.
You created a new application, you then wrote the code below:
Thread.CurrentThread.CurrentUICulture = Thread.CurrentThread.CurrentCulture
Which of the following options are TRUE?
A. The user interface will make use of the currently configured culture settings in the Control Panel at present.
B. The user interface will make use of new culture settings.
C. The user interface will have no culture settings.
D. The user interface will make use of the culture settings that were installed with the operating system.
CORRECT ANSWER A
You are developing a Windows Presentation Foundation (WPF) application.
You are implementing a test strategy for the application.
You need to ensure that the test class can repeat user input.
From which base class should the test class inherit.
A. AutomationElementIdentifier
B. AutomationPeer
C. Keyboard
D. UICues
CORRECT ANSWER B
You are developing a Windows Presentation Foundation (WPF) application.
You need to display HTML content from a Web Page on the WPF form. What should you do?
A. Add a FlowDocumentReader control to the design surface. Then create a FlowDocument control.
B. Add a DocumentViewer control to the design surface. The create a FixedDocument control.
C. Add a WebBrowser control to the design surface. The use the Navigate method to navigate the URI object.
D. Add a ContentControl control to the design surface. The reference a WebClient object to return an HTML string.
CORRECT ANSWER C
Passed with 925, about 20 new questions.
Passed !
But it was hard. It would be impossible with just this dump.
Passed with 812, but it was hard. 19 new questions. It would be impossible with just this dump. You need to read the Information mentioned here :
-CollectionView.Filter (correct answer is the one with lambda expression on it)
- Style inheritance question (correct answer is BASED ON)
- PresentationTrace output (Correct answer is output)
-Resource dictionary from other assembly (Themes.dll)
FileIOPermission attribute.
- command binding question
- INotifyPropertyChange implementation
- Grid.ColumnSpan
- Resource dictionary from other assembly (Themes.dll) - how to set source attribute
- Dynamic adding button to stack panel in code behind
- CollectionView.Filter (the question is a little tricky there are correct syntax just with swapped condition - correct answer is with inline delegate)
- Style inheritance question
- PresentationTrace output
Routed events: bubbling or tunneling
Plz help me to know the answers.
How to catch transparency violations (catch all violations, use
1-SecurityData.Demand, SecurityData.Assert etc.).?
2-Style inheritance how posssible.?(based on, etc)
3-what kind of project will you use to deploy a project you need user to enter a validation key. options are 1. XBAP 2. One Click 3. SetUp 4. XCopy..?
Hi soon to take the test.
Anyone got an idea of these?`
- transparency violations
- Updating GUI with Dispatcher or Thread(2,2)
- deploying project with validation key
- XBAP when you copy files manually and it doesn't work (use mage -cc, restart server and try again, copy mannually etc.)
Passed. It would be impossible with just this dump without experience and some extra research.
12 new questions.
Almost everything that was mentioned here in addition to the dump appeared in the test.
- transparency violations
- WPF Calendar
- Updating GUI with Dispatcher or Thread(2,2)
- Adding a Background from the referenced Themes.dll (how to set source)
- deploying project with validation key
- XBAP when you copy files manually and it doesn't work
- WPF Grid.ColumnSpan=2 to center the textblock
- Button event so the host gets it before the button - bubbling or tunneling
- XBAP when you copy files manually and it doesn't work (use mage -cc, restart server and try again, copy mannually etc.)
so, there are no answers to some of these questions here, and I do not know how many of those I have got right. So do the research on your own on MSDN, book, and so on. And good luck to everyone!
PS MeasureUp and SelfTest is a great tool to prepare. It's not cheap though. You will not find any dump-type questions (to memorize) there but rather similar. MeasureUp together with SelfTest are recommended by Microsoft themselves:
http://www.microsoft.com/learning/en/us/exam.aspx?ID=70-511&locale=en-us#tab3
Just passed the exam!
prepared with MeasureUp too.
Advices:
1. Microsoft Test4Pass 70-511 v2011-05-26 by JRoen 88q.vce is a good dump. Over 50% came from this. But it's tricky. You have to read it for MANY times because some questions are very similar inside the dump and you'll get confused. So be very careful!
2. MeasureUp it's usefull to learn. the explications are very good. A few questions where very similar or relates the same story/case. So you need to really understand the question and the explications.
3. Questions posted on this site are also very important. Even if it's not the complete question, you know where to look to learn. I did so.
THANK YOU people!
Have anyone used Measureup test to prepare for this exam? I Have bought one, and try to prapare using in in combination with this dump.
Passes today 887. Risky dump.19-20 new questions, some of them listed on the page..even so it's hard because on the page everybody just posts the idea of the question, not the whole question..and by the way the question with the date range selection the question it's very easy: The options are: a Calendar WPF control, an windows form DateTimeTicker control and some other two which are not important.so the answer to this question becomes very simple because the DateTimePicker win form won't do the job ..
[quote]BlewSkrin,have you got all question except this dumps like the calendar problem?[/quote]
Not at all. I have a lot of experience with WPF, MVVM and so on but I haven't been using WinForms for a long time. In addition I haven't touch much of the security or deployment areas. There are some other areas like globalization/localization or Testing Strategies that I haven't spend too much time on.What I am trying to do is to get as many possible questions as possible to get clues what the questions might be about.
Unless you are really lucky and get all the question from the dump, without the experience it's really hard to pass the exam. But the dump helps you understand the way the questions are structured.
Pay attention that something that is stated in one question might include the answer to another question, so it might be a good idea to go through all the questions and read them before starting answering them.
By the way, there is a training on CBT Nuggets on 70-511, and on their website you can watch some of the videos for free. If you have some spare time try to look through them:
http://www.cbtnuggets.com/it-training-videos/microsoft/series/msft_70_511
Thanks Motasim.
I tested it, and, as you said, various options are available. And SelectionMode="SingleRange" works perfectly.
screenshot: http://i54.tinypic.com/voylp3.png
So, WPF Calendar control fits the purpose perfectly.
Failed for the second time now. There are more than 18 new questions.Please update the dumps and posted here.Help !!
BlewSkrin, I calendar control of WPF provides multiple modes for selection. You can set the SelectionMode property to SingleDateSingleRange, MultipleRanges or None. Like,
<Calendar SelectionMode="MultipleRange" />
so i think there is no need to use WinForm, MonthCalendar control for date range selection
BlewSkrin,have you got all question except this dumps like the calendar problem?
What to use when you want a user to select date ranges in WPF (datetimepicker, calendat, use winForm calendar etc.).?
I think that if one needs that right away, without implementing a combined/custom user control, the only way is to go via WinForms:
(from MSDN discussion: http://bit.ly/nqaivp)
The WinForm control MonthCalendar supports date range selection. You can use the MonthCalendar control via a WindowsFormsHost control on your WPF Window.
As about IDataErrorInfo question, the right one is AF, I believe since the line F is the implementation part of the interface on line A.
Try it yourself, and you will see :)
here is a screenshot: http://i52.tinypic.com/mhahvp.jpg
I mean the question with:
A.Replace line 01 with the .IDataErrorInfo
B..........ValidationRule
C..........INotifyPropertyChanging
D.Add the fallowind code segment at line 04. PropertyChangingEventHandler
E.set{
If this.property.
F.Public string Error{
Public string this.
get{
.
I think the question no 87 does not have the correct answer.
Is AE instead of AF.
What do you think? 10x
Dynamic adding button to stack panel in code behind .? I choosen stackpanel.children.add(abutton).
The question is roughly like:
for i=0 to 5 do
dim abutton as new button
..
end
Not sure about others because i didn't get those question during my test but you can search from msdn.
Dont worry too much with enough study ms press, msdn, and dump here should be enough to pass. i didn't spend much time on practice.
Julius and BlewSkrin, plz help me to now the right answer of below qs.
Plz ans these qs if know.
How to catch transparency violations (catch all violations, use SecurityData.Demand, SecurityData.Assert etc.).?
Dynamic adding button to stack panel in code behind .?
What to use when you want a user to select date ranges in WPF (datetimepicker, calendat, use winForm calendar etc.).?
Using this.Dispatcher.BeginInvoke and what parametere to pass (normal, background, or use thread(2,2).?
As about
Binding Path=Data/Name VS Binding Path=Data.Name, sorry I did not read the posting to the end. I tried the project myself and to my surprise, the right answer is "Path=Data/Name" Here is the screenshot: http://i54.tinypic.com/2qa1is8.jpg
I guess that's how the current item gets selected from the collection and there is no need to have an extra property for SelectedItem to bind to. I learned something here as well :). Thanks guys!
In the following question the correct answer A is the same as D
--------------------------------
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
You add a ListBox to show grouped data.
The ListBox is data-bound to a collection of items. Each item has the Name and State properties.
You need to ensure that the ListBox meets the following requirements:
Names grouped by State
Names sorted in ascending order
States sorted in descending order
Which code fragment should you use?
confirm with Dmitry from Russian Federation
----------------------------------------------------
You use Microsoft Visual Studio 2010 and Microsoft .
NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
You create a WPF window in the application.
You add the following code segment to the application.
public class ViewModel
{
public CollectionView Data { get; set; }
}
public class BusinessObject
{
public string Name { get; set; }
}
The DataContext property of the window is set to an instance of the ViewModel class.
The Data property of the ViewModel instance is initialized with a collection of BusinessObject objects.
You add a TextBox control to the Window.
You need to bind the Text property of the TextBox control to the Name property of the current item of the CollectionView of the DataContext object.
You also need to ensure that when a binding error occurs, the Text property of the TextBox control is set to N/A .
Which binding expression should you use?
..
{Binding Path=Data/Name, FallbackValue='N/A'} - not this right, this syntax
{Binding Path=Data.Name, FallbackValue='N/A'} - THE RIGHT ANSWER
..
Took the test today, passed 850.
still valid, 29 of 41 from this dump. others are posted here.
Still valid. Passed 775.
Plz ans these qs if know.
How to catch transparency violations.?
Resource dictionary from other assembly.?
How to catch transparency violations (catch all violations, use SecurityData.Demand, SecurityData.Assert etc.).?
Using this.Dispatcher.BeginInvoke and what parametere to pass (normal, background, or use thread(2,2).?
Hi Julius and Bilal
i try to write the code with the answer D but the Compiler throw an Exception
the right answer is B
The answer from other dump for this question is D, i have same confusion. i myself will choose B but i think the keyword is "to create the control dynamically" so the answer D will suit better.
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application has a window named MainWindow that has a StackPanel control named sp as the root element.
You want to create a Button control that contains a TextBlock control with the "Save" Text property.
You need to create the control dynamically and add the control to sp.
Which code segment should you write in the constructor of the MainWindow class
A. Button btn = new Button();
TextBlock text = new TextBlock();
text.Text = "Save";
btn.Content = text;
sp.DataContext = btn;
B. Button btn = new Button();
TextBlock text = new TextBlock();
text.Text = "Save";
btn.Content = text;
sp.Children.Add(btn);
C. Button btn = new Button();
TextBlock text = new TextBlock();
text.Text = "Save";
sp.Children.Add(btn);
sp.Children.Add(text);
D. Button btn = new Button();
TextBlock text = new TextBlock();
text.Text = "Save";
btn.ContentTemplateSelector.SelectTemplate(text, null);
sp.Children.Add(btn);
plz verify me the answer, i m confused between B and D.
I passed this exam on July 30. 20 of 41 questions were new. Passed barely with 700. (phew!, LUCKY~~)
Passed with 967 today. 16 new question described on this page.
Passed with 962. I followed below meterial.
1. MCTS 70-502 Training Kit.
2. MCTS 70-511 Training Kit.
3. This Dump.
4. and comments on this page.
Passed with 850. There were 11 new questions, e.g.:
- where can you check the value of a dependency property? (in Locals, in WPF tree visualizer, in Watch and a fourth one)
- Where to put the NotifyPropertyChanged call within the setter (before or after the propertyfield = value call) and the its parameter (Propertyname or Fieldname)
- The correct usage of a DataTemplate for a certain DataType
Passed with 887, but it was hard. 15 new questions, 11 of them were totaly new (not listed on this page). So I recommend to learn the new questions listed on this page as much as possible.
The questions i remember:
1. Which control should i use to show a web site (WPF-Project)? Answer: WebBrowser (i guess)
2. Exception: a problem occurs in a WPF (i guess) project. What do you have to do?
A) Throw an exception, when the problem occurs (right answer, i guess)
B) When the problem occurs, put a certain code (don't remember which code exactly) in the finalize block of a exception
3. You want to create a control with two buttons. What control do you have to inherite from?
A) Button
B) User Control (right answer, i guess)
C) UIElement (I guess)
@tariq Mehmood: http://www.examcollection.com/microsoft/Microsoft.TestKiller.70-515.v2011-05-16.by.AshishSachdeva.111q.vce.file.html. Btw, I did the exam on the 30th of June 2011.
@lahiruagar- From where did u get the dump of 515 ..please give me the details ..
I really need a valid dump of this exam. Why isn't this a popular exam? I did the 70-515 and had 970/1000. All questions were from the dump I got from this website.
Questions are outdated. 14 new questions
Questions are outdated. 11 new questions of 41 in the exam, so you must have some knowledge of the .net 4 programming stuff to pass. the questions alone might not be enough.Passed the exam with 850 points on friday 2011-07-15
please upload new dump questions:( ascab can you tell me other sources from where i can study i have my test on saturday. please tell is this dump still valid
Passed with 925
Around 15 new questions, this dump helps but reading the book and having some practice could improve your results
Got 14 extra question which are not in this dump. All of them are disscussed in comments below, except one which is on what kind of project will you use to deploy a project you need user to enter a validation key. options are 1. XBAP 2. One Click 3. SetUp 4. XCopy
pass today 737/1000 risky dump
About 16 to 20 new questions.
How to catch transparency violations (catch all violations, use SecurityData.Demand, SecurityData.Assert etc.)
Using this.Dispatcher.BeginInvoke and what parametere to pass (normal, background, or use thread(2,2)
Path for accessing assembly
XBAP when you copy files manually and it doesn't work (use mage -cc, restart server and try again, copy mannually etc..)
What to use when you want a user to select date ranges in WPF (datetimepicker, calendat, use winForm calendar etc.)
Several more on XAML and propertys.
Study the PREP book, use msdn documentation, and have experience. Good luck.
Failed today. 10 questions were different form this dump.
failed with 530 marks, 15 to 16 new questions
Passed today with 887.
14 new questions. All of them commented in this same thread.
String questions: Formatting String and Currency inside the same object, format a decimal.
- CollectionView.Filter (correct answer is the one with lambda expression on it)
- Style inheritance question (correct answer is BASED ON)
- PresentationTrace output (Correct answer is output)
File permissions: Users higher in the stack do not have properties to access the resource location C: emp. 4 options: Deny, Assert, and 2 other that i cant remember.
Command Binding. 4 command handler definitions. The Key is to differentiate between RoutedHandler, CanExecute Command handlers, and command handler. The parameters of every handler give the solution since you will notice CanExecute handler parameters in a normal one and such.
failed with 678,, 14-15 new questions out of 41 questions, today
i passed with 775. 13 different question of 41
Passed with 775
about 10 new questions
couldnt have done it with out this dump
the book is for learning, the dump is for passing, dont get them confused :)
hello friends thank jroen for his dump. This is 100 percent valid.
I wrote exam today and passed with 850.
I got some 10 new questions but the rest came from this dump alone which is more than enough to pass the exam
can some one pls comment on this question in this q bank?
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
You create a Button control for the application.
You need to ensure that the application meets the following requirements:
When the mouse pointer is over the Button control, the background color of the button is set to red and
the Button control appears bigger.
When the mouse pointer is not over the Button control, the button returns to its original state.
What should you do?
A. Create a template. Declare a VisualState element in the template.
B. Create a StoryBoard animation. Add an EventTrigger class to the Button control that begins the
StoryBoard animation.
C. Create a ScaleTransform class. Bind the ScaleX and ScaleY properties of the Button control to the
Background property by using a custom value converter.
D. Add a method named ChangeAppearance in the code-behind file. Subscribe the ChangeAppearance
method to the MouseEnter event of the Button control.
Answer: A
one of my mentor told the answer is B. can someone pls explain
Just passed 775!
There was 14 new questions, i can remember:
- Routed events: bubbling or tunneling
- Style inheritance
- Resource dictionary from other assembly (Themes.dll) - how to set source attribute
- Grid.ColumnSpan
- Something about XBAP
- ..
Just passed this one with 850.. as Dmitry said, the book is not enough to get over 700 neither this dump but its worth the reading!
The new questions I remember..
String and Decimal formatting in XAML.
Setting the source property to get a resource from another assembly.
Something about permissions to access a directory from XAML.. i cant remember the enumeration but has something like SecurityPermissions.
How to add a control to a stackpanel.
CollectionViewSource filtering.
CommandBindings
Style inheritance, BasedOn
Can't remeber anything else, experience is REALLY needed for this one!
I'm going to make the exam on 28th. I'm a bit confused with the last 2 comments one score 657 and other 925?? with only one day of difference.
The next week I'll report my experience! but now I'm a scared xDD
Failed 657 !! this dumb is not valid
Passed with 925
There were 41 questions (14 new questions)
- FileIOPermission attribute (temp directory)
- Grid.ColumnSpan
- Resource dictionary from other assembly (Themes.dll)
- Dynamic adding button to stack panel in code behind
- CollectionView.Filter
- Style inheritance question
- PresentationTrace output
Answer on stackoverflow.com about binding syntax
http://stackoverflow.com/questions/6414321/wpf-binding-syntax
Yes, I'm sorry. I'm checked it too.
Right answer with / syntax.
In book from Exam kit nothing about this using. There using / only with XPath. Exam kit book - shit. Nothing about security. If anybody want - I can upload it.
Answer in the dump is correct Dmitry, just checked in a running project.
<TextBox Text="{Binding Path=Data/Name, FallbackValue='N/A'}" />
In question about binding with answers:
....
{Binding Path=Data/Name, FallbackValue='N/A'} - not this right, this syntax using only in XML data provider
{Binding Path=Data.Name, FallbackValue='N/A'} - that right answer
....
In this dump there's a question about UAC, "ensure members of local Administrators group do not recieve UAC prompt when the app executes". Correct answer is shown to be requestedExecutionLevel level="highestAvailable" uiAccess="true"
Is this correct? Can somebody explain me why? I have some ideas but still not completely sure about it. Thx!
Just passed with 775. There are 13 new questions.
crayzilu, do you remember the new questions?
failed for the second time now.
Hi ayse can u please share the new questions and answers if u remember
I passed the exam but there are 14 new questions.
Hi Jose and fenomeno83 can u please share the new questions with the answers u wrote to pass this 511 exam????????
I failed the exam with a score of 636......this dump does not have all the questions...can anyone update the latest updated dump......or atleast provide answers for new questions like:
-FileIOPermission attribute.
- command binding question
- INotifyPropertyChange implementation
- Grid.ColumnSpan
- Resource dictionary from other assembly (Themes.dll) - how to set source attribute
- Dynamic adding button to stack panel in code behind
- CollectionView.Filter (the question is a little tricky there are correct syntax just with swapped condition - correct answer is with inline delegate)
- Style inheritance question
- PresentationTrace output
Passed with 830, around 15-20 new questions
Hello fenomeno83, please can you remember which new questions did you have?
passed with 775.
11 new question
just passed with 887. 11 new questions out of 41.
I can remember:
- one question for FileIOPermission attribute.
- command binding question
- INotifyPropertyChange implementation
- Grid.ColumnSpan
- Resource dictionary from other assembly (Themes.dll) - how to set source attribute
- Dynamic adding button to stack panel in code behind
- CollectionView.Filter (the question is a little tricky there are correct syntax just with swapped condition - correct answer is with inline delegate)
- Style inheritance question
- PresentationTrace output (what can be target - a) watch, b) immidiate c) autos.. d) output window)
Around 15-18 new questions.
Passed with 812
Passed with 775.
Around 15 new questions
there are more than 18 new questions as i entered the exam on 1st of june the question in this dump are accurate but its not enough to pass the test i got 615 maybe i wasnt good enough to answer the new question which are not that hard you should be able to do it.Anyway this dumo doesnt have the new questions please can someone uptade.
This dump is like it: Microsoft Test4Pass 70-511 v2011-04-09 by MoaiadHawash 88q.vce. but with two questions / answers changed.
please how much did you score using this dump
How much did you score using this VCE?
Add Comments