Other 70-542CSharp Exams :
70-542CSharp Exam
MS Office SharePoint Server 2007-Application Development
- Exam Number/Code : 70-542CSharp
- Exam Name : MS Office SharePoint Server 2007-Application Development
- Questions and Answers : 122 Q&As
- Update Time: 2011-03-30
- Price:
$ 115.00$ 99.00
Free 70-542CSharp Demo Download
pass999.info offers free demo for Microsoft Licensing 70-542CSharp exam (MS Office SharePoint Server 2007-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-542CSharp Exam Testing Engine
70-542CSharp Exam Description
It is well known that latest 70-542CSharp exam test is the hot exam of Microsoft certification. pass999.info offer you all the Q&A of the 70-542CSharp real test . It is the examination of the perfect combination and it will help you pass 70-542CSharp exam at the first time!
Exam : Microsoft 70-542CSharp
Title : MS Office SharePoint Server 2007.Application Development
1. You are creating a Microsoft Office SharePoint Server 2007 application to increase the search capability of five site collections that belong to a single farm.
You need to retrieve all available search contexts for the Web site collection on which the application is initiated.
Which code segment should you use?
A. string strSite = "http: //yourSiteName";
SearchContext srchContext =
SearchContext.GetContext(new SPSite(strSite));
B. SearchContext srchContext =
SearchContext.GetContext(ServerContext.Current);
C. SearchService searchservice = new
SearchService("Search_SSPS Name", SPFarm.Local);
SearchContext srchContext =
SearchContext.GetContext(searchservice.Id.ToString());
D. WASearchWebService1.SPSSearchWS.QueryService searchWebService =
new WASearchWebService1.SPSSearchWS.QueryService();
searchWebService.Url = "http: //myportal";
SearchContext srchContext = SearchContext.GetContext(new
SPSite(searchWebService.ToString()));
Answer: B
2. You are creating a Microsoft Office SharePoint Server 2007 Web Part.
You write the following code segment. (Line numbers are included for reference only.)
01 public Button cmdCrawl;
02 protected override void CreateChildControls()
03 {
04 cmdCrawl = new Button();
05 cmdCrawl.Click += new EventHandler(cmdCrawl_Click);
06 cmdCrawl.Text = "Update Index";
07 Controls.Add(cmdCrawl);
08 }
09 public void cmdCrawl_Click(object sender, EventArgs e)
10 {
11 Microsoft.Office.Server.Search.Administration.Content sspContent =
12 new Microsoft.Office.Server.Search.Administration.Content
13 (SearchContext.Current);
14 ...
15 }
You need to ensure that the Web Part initiates a search crawl of a ContentSource named Patents.
Which code segment should you insert at line 14?
A. ContentSourceCollection sspContentSources =
sspContent.ContentSources;
ContentSource cs = sspContentSources["Patents"];
cs.StartFullCrawl();
B. ContentSourceCollection sspContentSources =
sspContent.ContentSources;
Uri TargetScope = new
Uri("http: //myportal/SearchCenter/Search.aspx?Scope=Patents");
sspContentSources.Update(TargetScope);
C. ContentSourceCollection sspContentSources =
sspContent.ContentSources;
CrawlMappingCollection crawlmappings =
sspContentSources.Parent.CrawlMappings;
Uri ResultsPage = new Uri(this.Context.ToString());
Uri TargetScope = new
Uri("http: //myportal/SearchCenter/Search.aspx?Scope=Patents");
crawlmappings.Create(ResultsPage, TargetScope);
D. ContentSourceCollection sspContentSources =
sspContent.ContentSources;
ContentSource cs = sspContentSources["Patents"];
cs.Update();
Answer: A
3. You create a Microsoft Office InfoPath workflow task form for users. The form contains all the details of each task.
You need to store the value of the Comments field in a variable named UserInput when each user submits the form.
Which code segment should you use?
A. String UserInput = new String();
SPWorkflowTaskProperties wpTProps =
new SPWorkflowTaskProperties();
...
UserInput = wpTProps.ExtendedProperties["Comments"].ToString();
B. SPWorkflowActivationProperties wpAProps =
new SPWorkflowActivationProperties();
...
object UserInput = wpAProps.Item.Fields["Comments"];
C. SPWorkflowActivationProperties wpAProps =
new SPWorkflowActivationProperties();
XmlSerializer serializer = new XMLSerializer(typeof(MyFields));
xmlTextReader reader = new XMLTextReader
(new System.IO.StringReader(wpAProps.InitiationData));
MyFields fields = serializer.Deserialize(reader);
String UserInput = fields.Users[i].Comments;
D. XmlSerializer serializer = new XmlSerializer(typeof(InitForm));
XmlTextReader reader = new XmlTextReader
(new System.IO.StringReader(workflowProps.InitiationData));
InitForm initform = (InitForm) serializer.Deserialize(reader);
String UserInput = initform.comments;
Answer: A
4. You create an application for a Microsoft Office SharePoint Server 2007 server.
You need to write code that retrieves all users for an audience named Audience1.
Which code segment should you use?
A. AudienceManager audMgr = new AudienceManager();
AudienceCollection audiences = audMgr.Audiences;
Audience audience1 = audiences["Audience1"];
B. AudienceManager audMgr = new AudienceManager();
ArrayList membershipList =
audMgr.Audiences["Audience1"].GetMembership();
C. AudienceManager audMgr = new AudienceManager();
AudienceCollection audience1 = audMgr.Audiences;
D. SPSite site = new SPSite("http: //servername//sites/site1");
ServerContext context = ServerContext.GetContext(site);
AudienceManager audMgr = new AudienceManager(context);
SPWeb web = site.AllWebs[0];
ArrayList audienceIDNames =
audMgr.GetUserAudienceIDs("Audience1", true, web);
Answer: B
5. You are creating a Microsoft Office SharePoint Server 2007 application that uses the Search service.
You need to ensure that the search results are based on an existing keyword.
Which code segment should you use?
A. private void keywordQueryExecute(string strQueryText) {
...
KeywordQuery kRequest =
new KeywordQuery(ServerContext.Current);
kRequest.QueryText = strQueryText;
kRequest.ResultTypes |= ResultType.RelevantResults;
ResultTableCollection resultTbls = kRequest.Execute();
...
}
B. private void keywordQueryExecute(string strQueryText) {
...
KeywordQuery kRequest =
new KeywordQuery(ServerContext.Current);
kRequest.QueryText =
"SELECT * FROM scope() WHERE keyword = " + strQueryText;
kRequest.ResultTypes |= ResultType.RelevantResults;
ResultTableCollection resultTbls = kRequest.Execute();
...
}
C. private void keywordQueryExecute(string strQueryText) {
...
KeywordQuery kRequest =
new KeywordQuery(ServerContext.Current);
kRequest.QueryText =
"SELECT * FROM scope(" + strQueryText + ")";
kRequest.ResultTypes |= ResultType.RelevantResults;
ResultTableCollection resultTbls = kRequest.Execute();
...
}
D. private void keywordQueryExecute(string strQueryText) {
...
KeywordQuery kRequest =
new KeywordQuery(ServerContext.Current);
kRequest.QueryText =
"SELECT " + strQueryText + " FROM scope()";
kRequest.ResultTypes |= ResultType.RelevantResults;
ResultTableCollection resultTbls = kRequest.Execute();
...
}
Answer: A
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-542CSharp exam
There are many ways to prepare for your 70-542CSharp Certification Exam. pass999.info provides the most reliable training tools to prepare for your next 70-542CSharp Certification Exam. Our 70-542CSharp Certification Study Material includes 70-542CSharp test questions, 70-542CSharp practice exam, 70-542CSharp Practice Testing Software, 70-542CSharp Audio Learning and Preparation Labs. We will meet the needs of all about IT certification in pass999.info.
The 70-542CSharp 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-542CSharp 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-542CSharp exam products under different conditions.
Once you purchase our 70-542CSharp 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.
