exam questions

Exam 70-483 All Questions

View all questions & answers for the 70-483 exam

Exam 70-483 topic 2 question 10 discussion

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

You are writing the following method (line numbers are included for reference only):

You need to ensure that CreateObject compiles successfully.
What should you do?

  • A. Insert the following code at line 02: where T : new()
  • B. Replace line 01 with the following code: public void CreateObject<T>()
  • C. Replace line 01 with the following code: public Object CreateObject<T>()
  • D. Insert the following code at line 02: where T : Object
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
supersunny
Highly Voted 5 years, 12 months ago
I go for A.
upvoted 9 times
...
nelaed
Most Recent 5 years, 2 months ago
It'a A. In other cases there might be exception because not every type has parametless constructor.
upvoted 4 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 ...