Which code segment should you add at line 02?

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?

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?

A.
Dim strQuery As String = “SELECT Title, Rank, Write, Url FROM SCOPE() WHERE docID = ”
& searchAuthor

B.
Dim strQuery As String = “SELECT Title, Rank, Write, Url FROM SCOPE() WHERE author = ”
& searchAuthor

C.
Dim strQuery As String = “author:” & searchAuthor

D.
Dim strQuery As String = “docID:” & searchAuthor



Leave a Reply 0

Your email address will not be published. Required fields are marked *