exam questions

Exam 70-483 All Questions

View all questions & answers for the 70-483 exam

Exam 70-483 topic 1 question 18 discussion

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

You are creating a console application by using C#.
You need to access the application assembly.
Which code segment should you use?

  • A. Assembly.GetAssembly(this);
  • B. this.GetType();
  • C. Assembly.Load();
  • D. Assembly.GetExecutingAssembly();
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️
✑ Assembly.GetExecutingAssembly - Gets the assembly that contains the code that is currently executing.
✑ Assembly.GetAssembly - Gets the currently loaded assembly in which the specified class is defined.
References:
http://msdn.microsoft.com/en-us/library/system.reflection.assembly.getassembly.aspx http://msdn.microsoft.com/en-us/library/system.reflection.assembly.getexecutingassembly(v=vs.110).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
Ryan1234
4 years, 9 months ago
D is the correct answer
upvoted 1 times
...
lh2607
4 years, 10 months ago
D is correct
upvoted 2 times
...
veroMarce
4 years, 11 months ago
Answer: D
upvoted 1 times
...
robinnirola
5 years ago
D. Assembly.GetExecutingAssembly();
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago