Microsoft Certified Solutions Developer (MCSD) Certification Practice Test

Disable ads (and more) with a membership for a one time $2.99 payment

Prepare for your Microsoft Certified Solutions Developer (MCSD) exam with flashcards and multiple choice questions. Each question includes hints and explanations to help you succeed. Get ready for your exam!

Each practice test/flash card set has 50 randomly selected questions from a bank of over 500. You'll get a new set of questions each time!

Practice this question and more.


What command is used to view the public key of a strong assembly?

  1. sn -k

  2. sn -Tp

  3. gacutil -i

  4. AssemblyInfo -v

The correct answer is: sn -Tp

The command used to view the public key of a strong assembly is "sn -Tp". This command is part of the Strong Name tool provided with the .NET framework, which is utilized to manage strong-named assemblies. When you use "sn -Tp", it takes a strong-named assembly file as an argument and outputs its public key. Understanding the context of strong naming is essential here. Strong naming is a way to uniquely identify a .NET assembly by including a public key as part of its identity. This public key is created from a key pair, where the public key is used to sign the assembly and to confirm its authenticity and integrity when referenced in applications. The other commands serve different purposes. For instance, "sn -k" generates a new key pair but does not display a public key from an already existing assembly. "gacutil -i" is used to install an assembly into the Global Assembly Cache, which is unrelated to viewing public keys. Lastly, "AssemblyInfo -v" is not a standard command related to strong-named assemblies, focusing instead on assembly metadata. Understanding these distinctions helps clarify why "sn -Tp" is the appropriate choice for viewing the public key of a strong assembly.