quizzes/arrays-hashtables.quiz.json

{
    "$schema": "https://raw.githubusercontent.com/jdhitsolutions/PSQuizMaster/main/psquiz.schema-v2.json",
    "metadata": {
        "name": "Arrays and Hashtables",
        "author": "Jeff Hicks",
        "description": "Testing knowledge of arrays and hashtables",
        "version": "0.3.2",
        "protected": true,
        "id": "93822af1-c157-4dae-ab4c-28b757984a1e",
        "updated": "2026-06-29 12:49:06Z"
    },
    "questions": [
        {
            "question": "What is the correct syntax to create an [orchid2]empty[/] array?",
            "answer": "036097 061 064040041",
            "distractors": [
                "$a = @{}",
                "$a = @[[]]",
                "$a = [[]]",
                "$a = New-Array"
            ],
            "note": ""
        },
        {
            "question": "What is the correct syntax to create an [orchid2]empty[/] hashtable?",
            "answer": "036097 061 064123125",
            "distractors": [
                "$a = @()",
                "$a = @[[]]",
                "$a = {}",
                "$a = New-Hashtable"
            ],
            "note": ""
        },
        {
            "question": "Given this array: [LightCyan1]$a=5,6,7,8,9[/] what is [LightCyan1]$a[[1]][/]?",
            "answer": "054",
            "distractors": [
                "053",
                "055",
                "056",
                "057"
            ]
        }
    ]
}