Other 70-541CSharp Exams :

70-541CSharp Exam

TS:MS Windows SharePoint Srvcs 3.0 Application Development

  • Exam Number/Code : 70-541CSharp
  • Exam Name : TS:MS Windows SharePoint Srvcs 3.0 Application Development
  • Questions and Answers : 55 Q&As
  • Update Time: 2011-03-30
  • Price: $ 125.00 $ 100.00

Free 70-541CSharp Demo Download

pass999.info offers free demo for TS 70-541CSharp exam (TS:MS Windows SharePoint Srvcs 3.0 Application Development). You can check out the interface, question quality and usability of our practice exams before you decide to buy it. We are the only one site can offer demo for almost all products.

Download 70-541CSharp Exam Testing Engine


70-541CSharp Exam Description

It is well known that latest 70-541CSharp exam test is the hot exam of Microsoft certification. pass999.info offer you all the Q&A of the 70-541CSharp real test . It is the examination of the perfect combination and it will help you pass 70-541CSharp exam at the first time!

 
 
Exam : Microsoft 70-541(C#)
Title : TS:MS Windows SharePoint Srvcs 3.0 Application Development


1. You are writing a program that will periodically display activity on a Microsoft Windows SharePoint Services site.
For each job, you need to display the time that the job will run next.
Which code segment should you use?
A. foreach(SPJobDefinition job in
SPFarm.Local.TimerService.JobDefinitions) {
Console.WriteLine("Job {0} will run at {1}",
job.DisplayName, job.Schedule.NextExecution(DateTime.Now));
}
B. foreach(SPJobDefinition job in
SPFarm.Local.TimerService.JobDefinitions) {
Console.WriteLine("Job {0} will run at {1}",
job.DisplayName, job.Schedule.NextExecution(DateTime.MinValue));
}
C. foreach(SPRunningJob job in
SPFarm.Local.TimerService.JobDefinitions) {
Console.WriteLine("Job {0} will run at {1}",
job.Jo bDefinitionTitle,
job.JobDefinition.Schedule.NextExecution(DateTime.Now));
}
D. foreach(SPJobDefinition job in
SPFarm.Local.TimerService.JobDefinitions) {
Console.WriteLine("Job {0} will run at {1}",
job.JobDefinitionTitle,
job.JobDefinition.Schedule.NextExecution(DateTime.MinValue));
}
Answer: A

2. You create a TimeTracking feature and install the feature on a Microsoft Windows SharePoint Services site.
You write the following code segment. (Line numbers are included for reference only.)
01 public class TimeTrackerEventReceiver : SPFeatureReceiver
02 {
03 private void NotifyUser(SPUser user, string feature)
04 {
05 // code omitted
06 }
07 ...
08 }
You need to ensure that the site administrator is notified only when the TimeTracking feature is activated.
Which code segment should you insert at line 07?
A. public TimeTrackerEventReceiver() {
SPFeatureReceiverProperties properties =
new SPFeatureReceiverProperties();
if (properties.Definition.Farm.CurrentUserIsAdministrator()) {
SPWeb web = (SPWeb)properties.Feature.Parent;
NotifyUser(web.CurrentUser, properties.Feature.Definition.Name);
}
}
B. public TimeTrackerEventReceiver() {
SPWeb web = SPControl.GetContextWeb(new HttpContext(null));
NotifyUser(web.SiteAdministrators[0], "TimeTracker");
}
C. public override void
FeatureActivated(SPFeatureReceiverProperties properties) {
SPWeb web = (SPWeb)properties.Feature.Parent;
NotifyUser(web.SiteAdministrators[0],
properties.Feature.Definition.Name);
}
D. public override void
FeatureInstalled(SPFeatureReceiverProperties properties) {
if (properties.Definition.ActivateOnDefault) {
SPWeb web = (SPWeb)properties.Feature.Parent;
NotifyUser(web.SiteAdministrators[0], properties.Definition.Name);
}
}
Answer: C

3. You are creating a Microsoft Windows SharePoint Services site.
You need to add a new site column of type Choice to the site.
Which code segment should you use?
A. static void CreateSiteColumn(SPWeb web, string columnName,
bool required) {
web.Fields.Add(columnName, SPFieldType.Choice, required);
}
B. static void CreateSiteColumn(SPWeb web, string columnName,
bool required) {
web.Lists[0].Fields.Add(columnName, SPFieldType.Choice, required);
}
C. static void CreateSiteColumn(SPWeb web, string columnName,
bool required) {
web.Lists[0].Views[0].ViewFields.Add(columnName,
SPFieldType.Choice, required);
}
D. static void CreateSiteColumn(SPWeb web, string columnName,
bool required) {
SPField field = new SPFieldChoice(web.Lists[0].Fields, columnName);
field.Required = required;
field.Update();
}
Answer: A

4. You create a custom task list on a Microsoft Windows SharePoint Services site.
You need to prevent users from changing the custom task list. You also need to ensure that an error message is displayed when a user tries to change the list.
Which code segment should you use?
A. public override void ItemUpdating(SPItemEventProperties properties) {
properties.Cancel = true;
properties.ErrorMessage = "Updating is not supported.";
}
B. public override void ItemUpdated(SPItemEventProperties properties) {
properties.Cancel = true;
properties.ErrorMessage = "Updating is not supported.";
}
C. public override void ItemUncheckingOut (SPItemEventProperties properties) {
properties.C ancel = true;
properties.ErrorMessage = "Updating is not supported.";
}
D. public override void ItemUncheckedOut (SPItemEventProperties properties) {
properties.Cancel = true;
properties.ErrorMessage = "Updating is not supported.";
}
Answer: A

5. You create a Microsoft Windows SharePoint Services site.
You need to change the group of the site column.
Which code segment should you use?
A. protected void ChangeGroup(SPWeb web, string fieldName) {
string changegroup = "MyNewColumnGroup";
SPField myF ieldName = web.AvailableFields[f ieldName];
myFieldName.Group = changegroup;
web.Update();
}
B. protected void ChangeGroup(SPWeb web, string fieldName) {
SPField myF ieldName = web.AvailableFields[f ieldName];
myFieldName.Group = "MyNewColumnGroup";
myFieldName.Update();
}
C. protected void ChangeGroup(SPWeb web, string fieldName) {
string changegroup = "MyNewColumnGroup";
SPField myF ieldName = web.AvailableFields[f ieldName];
myFieldName.SetCustomProperty("Group", changegroup);
web.Update();
}
D. protected void ChangeGroup(SPWeb web, string fieldName) {
string changegroup = "MyNewColumnGroup";
SPField myF ieldName = web.AvailableFields[f ieldName];
myFieldName.SetCustomProperty("Group", changegroup);
myFieldName.Update();
}
Answer: B

What's pass999.info and what pass999.info can do?

pass999.info provides high quality IT exam practice questions and answers. Especially, Cisco CCNA CCDA CCNP CCIE, Checkpoint CCSE, CompTIA A+ Network+ certification practice exams and so on. We promise that you can pass any IT exam at the first try using pass999.info Testing Engine, or else give you a FULL REFUND. In pass999.info, you also can find latest exam releases about real certification exam resources from most famous IT companies, and we recommend some hot exams for you.

About Microsoft 70-541CSharp exam

There are many ways to prepare for your 70-541CSharp Certification Exam. pass999.info provides the most reliable training tools to prepare for your next 70-541CSharp Certification Exam. Our 70-541CSharp Certification Study Material includes 70-541CSharp test questions, 70-541CSharp practice exam, 70-541CSharp Practice Testing Software, 70-541CSharp Audio Learning and Preparation Labs. We will meet the needs of all about IT certification in pass999.info.

The 70-541CSharp test questions give you possibility to work in any country of the world because they are acknowledged in all countries equally. This pass999.info 70-541CSharp torrent certificate helps not only to improve your knowledge and skills, but it also helps your career, gives a possibility for qualified usage of pass999.info 70-541CSharp exam products under different conditions.

Once you purchase our 70-541CSharp PDF,we will offer you the best service.After you purchase we will offer free update in time for 90 days.No matter any questions you have we will help you solve it. And in 3 weeks we will offer you free updates,so please pay attention our site at all times.