PrepAway - Latest Free Exam Questions & Answers

Which code segment should you add at line 03?

You need to create a Web Part that displays all of the content created by a specific user. You
write the following code segment. (Line numbers are included for reference only.) 01
FullTextSqlQuery qry = new FullTextSqlQuery(ServerContext.GetContext(SPContext.
Current.Site)); 02 qry.ResultTypes = ResultType.RelevantResults; 03 04 qry.QueryText =
strQuery; 05 ResultTableCollection results = qry.Execute(); Which code segment should you add
at line 03?

PrepAway - Latest Free Exam Questions & Answers

A.
string strQuery = “SELECT Title,Author,Path FROM SCOPE() WHERE author = ‘” +
searchAuthor + “‘”;

B.
string strQuery = “SELECT Title,Creator,Path FROM SCOPE() WHERE docID = ‘” +
searchAuthor + “‘”;

C.
string strQuery = “author:” + searchAuthor;

D.
string strQuery = “docID:” + searchAuthor;


Leave a Reply