Bird
0
0

Which of the following is the correct syntax to import a binary module named MyBinaryModule.dll in PowerShell?

easy📝 Syntax Q3 of 15
PowerShell - Modules and Script Organization
Which of the following is the correct syntax to import a binary module named MyBinaryModule.dll in PowerShell?
AImport-Module MyBinaryModule.ps1
BImport-Module MyBinaryModule.dll
CImport-Module .\MyBinaryModule.psm1
DImport-Module .\MyBinaryModule.dll
Step-by-Step Solution
Solution:
  1. Step 1: Understand module import syntax

    Import-Module requires the path or module name. For binary modules, the .dll extension is used.
  2. Step 2: Choose correct path and extension

    Using relative path with .dll extension is correct: Import-Module .\MyBinaryModule.dll
  3. Final Answer:

    Import-Module .\MyBinaryModule.dll -> Option D
  4. Quick Check:

    Binary module import syntax = A [OK]
Quick Trick: Use .dll extension with path for binary modules. [OK]
Common Mistakes:
  • Using .psm1 extension for binary modules
  • Omitting path when required
  • Using .ps1 instead of module file

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PowerShell Quizzes