You need to implement the Get() method in the bookstore Web API application to be able to find books by using an ad hoc query. Which method should you use? A. B. C. D.
Correct answer is A.
1) We want to implement the Get() method (not the Get(int id) method).
2) Use IQueryable if you have to run ad-hoc queries against a data source.
IMO answer A.
I think that the most important thing here is requirement 'ad hoc query' which clearly suggests OData query expression and answer A.
Other ones seem to be wrong for many reasons.
This question is weird since implementation from answer D is already listed in the code snippets of the assignment. So what is this question all about? For me, it should be a D option, but I am confused..
B is not the right answer. This method will give build errors because the return type of the method doesn't match the returned result (instance of Book and List<Book>). The correct answer is D.
need to support adHoq query, A should be the ansqer
upvoted 6 times
...
...
This section is not available anymore. Please use the main Exam Page.70-487 Exam Questions
Log in to ExamTopics
Sign in:
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.
nfgmaia
Highly Voted 5 years, 8 months agoabalone
Highly Voted 5 years, 8 months agodosper
5 years, 8 months agosti88
Most Recent 4 years, 8 months agoDev666
4 years, 10 months agomr_
5 years agoKarel_Gott
5 years, 4 months agoKarel_Gott
5 years, 4 months agotiger25
5 years, 5 months agosupersunny
5 years, 6 months agoMichaelDelGanzo
5 years, 8 months agoseanlim
5 years, 8 months agoJobair
4 years, 10 months ago