quizzes/arrays-hashtables.quiz.json

{
    "$schema": "https://raw.githubusercontent.com/jdhitsolutions/PSQuizMaster/main/psquiz.schema.json",
    "metadata": {
        "name": "Arrays and Hash Tables",
        "author": "Jeff Hicks",
        "description": "Testing knowledge of arrays and hash tables",
        "version": "0.2.0",
        "id": "93822af1-c157-4dae-ab4c-28b757984a1e",
        "updated": "2023-08-15 13:08:29Z"
    },
    "questions": [
        {
            "question": "What is the correct syntax to create an empty array?",
            "answer": "036097 061 064040041",
            "distractors": [
                "$a = @{}",
                "$a = @[]",
                "$a = []"
            ],
            "note": ""
        },
        {
            "question": "What is the correct syntax to create an empty hashtable?",
            "answer": "036097 061 064123125",
            "distractors": [
                "$a = @()",
                "$a = @[]",
                "$a = {}"
            ],
            "note": ""
        },
        {
            "question": "Given this array, $a=5,6,7,8 what is $a[1]?",
            "answer": "054",
            "distractors": [
                "5",
                "7",
                "8"
            ],
            "note": ""
        }
    ]
}