exam questions

Exam 70-487 All Questions

View all questions & answers for the 70-487 exam

Exam 70-487 topic 4 question 11 discussion

Actual exam question from Microsoft's 70-487
Question #: 11
Topic #: 4
[All 70-487 Questions]

You need to create an OData filter expression that returns bools that match the following characteristics:
✑ Published after 1/1/2000
✑ Have "Science" as the first word
Which filter statement should you use?

  • A. /books?$filter=PublishDate gt datetime'2000-1-1' and startswith(Title, "˜Science')
  • B. /books?$filter=PublishDate greaterthan datetime'2000-1-1' and startswith(Title, "˜Science')
  • C. /search?$filter=PublishDate greaterthan datetime'2000-1-1' and beginswith (Title, "˜Science')
  • D. /search?$filter=PublishDate gt datetime'2000-1-1' and beginswith(Title, "˜Science') A
Show Suggested Answer Hide Answer
Suggested Answer: Explanation 🗳️
The gt keyword is used for the greater than comparison.
The startswith keyword is used to compare the beginning of a string.
Example: Returns entry numbers611 and higher.
filter= Entry_No gt 610
Example: Returns all customers names beginning with "S".
filter=startswith(Name, 'S')
References:
https://msdn.microsoft.com/en-us/library/hh169248(v=nav.90).aspx

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
EcBzy
Highly Voted 5 years, 6 months ago
answer is A
upvoted 20 times
...
supersunny
Highly Voted 5 years, 4 months ago
I vote A as the correct. The correct for greater than is gt and the method startswith..
upvoted 13 times
...
Jobair
Most Recent 4 years, 8 months ago
The answer is appearing at the end of quesiton
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...