Bird
0
0

You have this manifest snippet:

medium📝 Debug Q6 of 15
PowerShell - Modules and Script Organization
You have this manifest snippet:
@{
  FunctionsToExport = 'Get-Data', 'Set-Data'
}

What is wrong with this declaration?
AThe values must be integers, not strings
BFunctionsToExport cannot export functions by name
CFunctionsToExport should be an array, not separate strings
DThe keys in manifest must be lowercase
Step-by-Step Solution
Solution:
  1. Step 1: Check FunctionsToExport value type

    The FunctionsToExport key expects an array of strings, not multiple separate strings.
  2. Step 2: Identify correct syntax

    The correct syntax is FunctionsToExport = @('Get-Data', 'Set-Data') to define an array.
  3. Final Answer:

    FunctionsToExport should be an array, not separate strings -> Option C
  4. Quick Check:

    FunctionsToExport requires array syntax [OK]
Quick Trick: Use @() to define arrays for export lists [OK]
Common Mistakes:
  • Listing multiple strings without array syntax
  • Using lowercase keys incorrectly
  • Assigning non-string values to export lists

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PowerShell Quizzes