Question 2
Jarrod wrote an agent that begins with the following LotusScript code:
Dim session As New NotesSession Dim db As NotesDatabase Dim view As NotesView Dim doc As NotesDocument Set db = session.CurrentDatabase Set view = db.GetView( "By Category" ) Set doc =
view.GetDocumentByKey( "kitten" )
When the agent runs, which document will be referenced by the "doc" variable?
If the database is full-text indexed, the first document in the By Category view that contains the word “kitten” in any field. If the database is not full-text indexed, the “doc” variable will be empty.
The first document in the By Category view that has a value of “kitten” in the first sorted column
The first document in the By Category view that contains the word “kitten” in any field
The first document in the By Category view that has any value in the column with an alias of “kitten”
Correct answer: B