exam questions

Exam 70-487 All Questions

View all questions & answers for the 70-487 exam

Exam 70-487 topic 1 question 2 discussion

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

You are developing an application in Visual Studio 2012 to display student information. The application contains the following Entity Framework model.


The application contains a WCF data service named DirectoryService.svc.
You need to create a query expression to display all of the grades for students whose first name is "John"
How should you build the expression?

  • A. http://localhost:54946/DirectoryService.svc/Students?$filter=FirstName eq 'John' &$expand=Grades
  • B. http://localhost:54946/DirectoryService.svc/Students?$filter=FirstName eq 'John'/Grades
  • C. http://localhost:54946/DirectoryService.svc/Students?$filter=FirstName = 'John' &$expand=Grades
  • D. http://localhost:54946/DirectoryService.svc/Grades/Students?$filter=FirstName eq 'John' A
Show Suggested Answer Hide Answer
Suggested Answer: Explanation 🗳️

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
Sandra1989
Highly Voted 5 years, 7 months ago
The correct answer is A
upvoted 13 times
founderDev
5 years, 4 months ago
I agree the same.
upvoted 2 times
Dev666
4 years, 9 months ago
I agree with the same.
upvoted 1 times
...
...
...
Ciupaz
Most Recent 4 years, 7 months ago
https://docs.microsoft.com/en-us/dotnet/framework/data/wcf/loading-deferred-content-wcf-data-services
upvoted 1 times
...
Jobair
4 years, 8 months ago
Moderator, this is not related to the question, this is about the website functionalities. The answer is appearing before revealing the answer
upvoted 2 times
...
joey2506
5 years, 4 months ago
Why not B? The A will get Student data with Grades info attached, while B will bring just Grades, and is what the question asks. I think the question would be clear if it wants student data too.
upvoted 3 times
tanujgyan
5 years ago
There can be more than one student with first name John, I guess it would make more sense for answer to be A
upvoted 1 times
...
desona
4 years, 7 months ago
Agreed you
upvoted 1 times
...
...
sscooter1010
5 years, 4 months ago
Objective 1.5
upvoted 1 times
...
yurilynch
5 years, 5 months ago
Correct answer is A
upvoted 1 times
...
apostolin
5 years, 5 months ago
The correct answer is A
upvoted 1 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 ...