Microsoft
70-573 · Question #109
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.) 01Dim kRequest As New…
The correct answer is A. Dim strQuery As String = "author:" & searchAuthor. See the full explanation below for the reasoning.
Question
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.) 01Dim kRequest As New KeywordQuery(ServerContext.Current) 02 03kRequest.QueryText = strQuery 04Dim resultTbls As ResultTableCollection = kRequest.Execute() Which code segment should you add at line 02?
Options
- ADim strQuery As String = "author:" & searchAuthor
- BDim strQuery As String = "docID:" & searchAuthor
- CDim strQuery As String = "SELECT Title, Rank, Write, Url
- DDim strQuery As String = "SELECT Title, Rank, Write, Url
How the community answered
(52 responses)- A79% (41)
- B6% (3)
- C2% (1)
- D13% (7)
Community Discussion
No community discussion yet for this question.