exam questions

Exam 70-483 All Questions

View all questions & answers for the 70-483 exam

Exam 70-483 topic 2 question 113 discussion

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

You have the following code. (Line numbers are included for reference only.)

When you execute the code, you get an exception.
You need to ensure that B_Products contain all of the products that start with the letter "B".
What should you do?

  • A. Option A
  • B. Option B
  • C. Option C
  • D. Option D
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️
Simply select the product items.

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
afiqmehdizade
Highly Voted 4 years, 6 months ago
D is right
upvoted 5 times
...
venolium
Most Recent 4 years, 5 months ago
Tt has to be D, In line 09 Where (product.Name.StartWith("B")) we have all products that start with the letter B. Now we just need to grab them with the select Clause and we need to grab the whole product not just the product.name.
upvoted 1 times
...
kobegao
4 years, 6 months ago
i am using visual studio 2019. d gives error. the below code works List<product> b_prudcts = (from product in products where product.name.StartsWith("b") select product ).ToList();
upvoted 2 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago