PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

Which of the following is the most likely cause of the problem?

Tom works as a Project Manager for company.com Inc. The company uses Microsoft Project to schedule a project. Tom has created a resource in his contract-based project. You are also a project manager at the same company as Tom. You will also be using the same contract-based employee for assignments in your project. When you go to assign tasks to the contractor, however, you cannot find the account among the enterprise resources. Which of the following is the most likely cause of the problem?

Which code segment should you add at line 06?

You are developing an application by using Silverlight 4 and Microsoft .NET Framework 4.
You add the following code segment. (Line numbers are included for reference only.)

01 var outerCanvas = new Canvas();
02 var innerCanvas = new Canvas();
03 innerCanvas.Width = 200;
04 innerCanvas.Height = 200;
05 outerCanvas.Children.Add(innerCanvas);
06

You need to set the distance between the left of the innerCanvas element and the left of the outerCanvas element to 150 pixels.
Which code segment should you add at line 06?

What type of linking can you use to signal this relationship between projects?

You are the program manager for your organization and you are using Microsoft Project Server and master projects to coordinate all of your projects and subprojects as a program. You have several activities in Project NHQ that must be completed before activities in Project HJH can begin. What type of linking can you use to signal this relationship between projects?

Which two actions should you perform?

You are developing an application by using Silverlight 4 and Microsoft .NET Framework 4.
You create a control named MyControl in the application. Each instance of the control contains a list of FrameworkElement objects.
You add the following code segment. (Line numbers are included for reference only.)

01 public class MyControl : Control
02 {
03
04 public List<FrameworkElement> ChildElements
05 {
06 get {
07 return List<FrameworkElement>)GetValue(MyControl.ChildElementsProperty);
08 }
09 }
10
11 public MyControl()
12 {
13
14 }
15 static MyControl()
16 {
17
18 }
19 }

You need to create the ChildElementsProperty dependency property. You also need to initialize the property by using an empty list of FrameworkElement objects.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

Which code segment you add at line 03?

You are developing an application by using Silverlight 4 and Microsoft .NET Framework 4.
You add the following code segment. (Line numbers are included for reference only.)

01 public class MyControl : Control
02 {
03
04 public string Title
05 {
06 get { return (string)GetValue(TitleProperty); }
07 set { SetValue(TitleProperty, value); }
08 }
09 }

You need to create a dependency property named TitleProperty that allows developers to set the Title. You also need to ensure that the default value of the TitleProperty
dependency property is set to Untitled. Which code segment you add at line 03?

What is the immediate danger in Joan’s backup schedule?

Joan is the Microsoft Project Server administrator for her organization and she has hired you to consult with her about the backup and restore process for her SQL servers. She is worried that her current backup strategy is not accurate for the busy servers she has in her organization. She is currently completing a full backup every three weeks and differential backups daily. What is the immediate danger in Joan’s backup schedule?

What should you do?

You are developing an application by using Silverlight 4 and Microsoft .NET Framework 4.
You add a BackgroundWorker object named worker to the application. You also add a CheckBox control named checkBox and a TextBlock control named statusTextBlock.
You add the follo wing code segment. (Line numbers are included for reference only.)

01 public MainPage()
02 {
03 InitializeComponent();
04 worker.WorkerReportsProgress = true;
05 worker.DoWork += new DoWorkEventHandler(worker_DoWork);
06 worker.ProgressChanged += new ProgressChangedEventHandler(worker_ProgressChanged);
07 }
08 private void worker_DoWork(object sender, DoWorkEventArgs e)
09 {
10 for (int i = 0; i < 100; i++) {
11 bool isChecked = checkBox.IsChecked.HasValue && checkBox.IsChecked.Value;
12 ExecuteLongRunningProcessStep(isChecked);
13 worker.ReportProgress(i);
14 }
15 }
16 private void worker_ProgressChanged(object sender, ProgressChangedEventArgs e)
17 {
18 statusTextBlock.Text = e.ProgressPercentage + “%”;
19 }

You attempt to run the application. You receive the following error message: “Invalid crossthread access.”
You need to ensure that worker executes successfully. What should you do?