{
  "flexo_id": "PY_BEGINNER-C251122-1A2B3C4D5E6F@001D",
  "title": "Python Absolute Beginner Questions",
  "author": "Python Team",
  "version": "1.0",
  "generated_at": "2025-11-22",

  "domains": {
    "PY_BEGINNER": {
      "domain_id": "PY_BEGINNER",
      "name": "Python Beginner Essentials",
      "description": "Einsteigerfragen zu Python: Grundlagen, Datentypen, Dateien, Schleifen, Kontrollstrukturen."
    }
  },

  "questions": [
      {
        "flexo_id": "PY_BEGINNER-I251122-9C2FA6D10E93@001D",
        "domain_id": "PY_BEGINNER",
        "qtype": "single_choice",
        "text": "Welcher Operator führt die Ganzzahl-Division aus (abrunden Richtung −∞)?",
        "options": [
          {"id": "A", "text": "//", "points": 1},
          {"id": "B", "text": "/", "points": 0},
          {"id": "C", "text": "%", "points": 0}
        ]
      },

      {
        "flexo_id": "PY_BEGINNER-I251122-041CBAB1D8EF@001D",
        "domain_id": "PY_BEGINNER",
        "qtype": "multiple_choice",
        "text": "Welche Aussagen zu int und float sind richtig?",
        "options": [
          {"id": "A", "text": "int ist in der Größe nur durch den Speicher begrenzt.", "points": 1},
          {"id": "B", "text": "0.1 + 0.2 kann wegen Binär-Floats leicht von 0.3 abweichen.", "points": 1},
          {"id": "C", "text": "int hat immer exakt 64 Bit in Python.", "points": 0},
          {"id": "D", "text": "math.isclose hilft beim Vergleichen von Floats.", "points": 1}
        ]
      },

      {
        "flexo_id": "PY_BEGINNER-I251122-682F4D78BB02@001D",
        "domain_id": "PY_BEGINNER",
        "qtype": "single_choice",
        "text": "Welches Ergebnis hat 2 ** 3 ** 2 in Python?",
        "options": [
          {"id": "A", "text": "512 (rechtsassoziativ)", "points": 1},
          {"id": "B", "text": "64", "points": 0},
          {"id": "C", "text": "Fehler", "points": 0}
        ]
      },

      {
        "flexo_id": "PY_BEGINNER-I251122-59E4F519207C@001D",
        "domain_id": "PY_BEGINNER",
        "qtype": "multiple_choice",
        "text": "Welche Funktionen wandeln Zahlen oder runden sinnvoll?",
        "options": [
          {"id": "A", "text": "int('42')", "points": 1},
          {"id": "B", "text": "float('3.14')", "points": 1},
          {"id": "C", "text": "round(3.5)", "points": 1},
          {"id": "D", "text": "toint(3.2)", "points": 0}
        ]
      },

      {
        "flexo_id": "PY_BEGINNER-I251122-7DA6E91C299B@001D",
        "domain_id": "PY_BEGINNER",
        "qtype": "single_choice",
        "text": "Welches Paar gibt Quotient und Rest gemeinsam zurück?",
        "options": [
          {"id": "A", "text": "divmod(a, b)", "points": 1},
          {"id": "B", "text": "split(a, b)", "points": 0},
          {"id": "C", "text": "quot(a, b)", "points": 0}
        ]
      },

      {
        "flexo_id": "PY_BEGINNER-I251122-19A961778C0E@001D",
        "domain_id": "PY_BEGINNER",
        "qtype": "single_choice",
        "text": "Welche Schleife wiederholt Code, solange eine Bedingung wahr ist?",
        "options": [
          {"id": "A", "text": "while", "points": 1},
          {"id": "B", "text": "if", "points": 0},
          {"id": "C", "text": "match/case", "points": 0}
        ]
      },

      {
        "flexo_id": "PY_BEGINNER-I251122-9565317037EF@001D",
        "domain_id": "PY_BEGINNER",
        "qtype": "multiple_choice",
        "text": "Welche Schlüsselwörter passen zu Schleifen?",
        "options": [
          {"id": "A", "text": "break beendet die Schleife vorzeitig.", "points": 1},
          {"id": "B", "text": "continue springt zur nächsten Iteration.", "points": 1},
          {"id": "C", "text": "redo startet die Schleife neu.", "points": 0},
          {"id": "D", "text": "else-Teil läuft, wenn kein break passierte.", "points": 1}
        ]
      },

      {
        "flexo_id": "PY_BEGINNER-I251122-F16429E8C6A1@001D",
        "domain_id": "PY_BEGINNER",
        "qtype": "single_choice",
        "text": "Wie iteriert man idiomatisch über Index UND Wert?",
        "options": [
          {"id": "A", "text": "for i, x in enumerate(seq):", "points": 1},
          {"id": "B", "text": "for i in range(seq): x = seq[i]", "points": 0},
          {"id": "C", "text": "for (i, x) in seq.items()", "points": 0}
        ]
      },

      {
        "flexo_id": "PY_BEGINNER-I251122-76743FD15104@001D",
        "domain_id": "PY_BEGINNER",
        "qtype": "multiple_choice",
        "text": "Welche gehören zur if-Syntax?",
        "options": [
          {"id": "A", "text": "if …:", "points": 1},
          {"id": "B", "text": "elif …:", "points": 1},
          {"id": "C", "text": "elseif …:", "points": 0},
          {"id": "D", "text": "else:", "points": 1}
        ]
      },

      {
        "flexo_id": "PY_BEGINNER-I251122-3DFA621A61F7@001D",
        "domain_id": "PY_BEGINNER",
        "qtype": "single_choice",
        "text": "Wofür steht der Walrus-Operator (:=) auf Einsteiger-Niveau?",
        "options": [
          {"id": "A", "text": "Zuweisung in einem Ausdruck, z. B. while (s := input()) != ''", "points": 1},
          {"id": "B", "text": "Vergleichsoperator", "points": 0},
          {"id": "C", "text": "Importoperator", "points": 0}
        ]
      },

      { "flexo_id": "PY_BEGINNER-I251122-660F17B704AC@001D",
        "domain_id": "PY_BEGINNER",
        "qtype": "single_choice",
        "text": "Wie öffnet man eine Textdatei sicher zum Lesen in UTF-8?",
        "options": [
          {"id": "A", "text": "open(path, 'r', encoding='utf-8')", "points": 1},
          {"id": "B", "text": "open(path)", "points": 0},
          {"id": "C", "text": "open('utf-8', path)", "points": 0}
        ]
      },

      { "flexo_id": "PY_BEGINNER-I251122-1EE87A1F35B1@001D",
        "domain_id": "PY_BEGINNER",
        "qtype": "multiple_choice",
        "text": "Warum with beim Datei-I/O nutzen?",
        "options": [
          {"id": "A", "text": "Datei wird automatisch geschlossen.", "points": 1},
          {"id": "B", "text": "Weniger Risiko für Leaks/Fehler.", "points": 1},
          {"id": "C", "text": "Code wird automatisch schneller.", "points": 0},
          {"id": "D", "text": "Kompaktere Schreibweise.", "points": 1}
        ]
      },

      { "flexo_id": "PY_BEGINNER-I251122-56FD1E83422E@001D",
        "domain_id": "PY_BEGINNER",
        "qtype": "single_choice",
        "text": "Welcher Modus hängt Text an (ohne zu überschreiben)?",
        "options": [
          {"id": "A", "text": "'a'", "points": 1},
          {"id": "B", "text": "'w'", "points": 0},
          {"id": "C", "text": "'x'", "points": 0}
        ]
      },

      { "flexo_id": "PY_BEGINNER-I251122-9233B52C30D3@001D",
        "domain_id": "PY_BEGINNER",
        "qtype": "multiple_choice",
        "text": "Welche Pfad-Utilities aus der Stdlib sind nützlich?",
        "options": [
          {"id": "A", "text": "pathlib.Path", "points": 1},
          {"id": "B", "text": "os.path", "points": 1},
          {"id": "C", "text": "glob", "points": 1},
          {"id": "D", "text": "sys.path zum Schreiben von Dateien", "points": 0}
        ]
      },

      { "flexo_id": "PY_BEGINNER-I251122-1D819850078F@001D",
        "domain_id": "PY_BEGINNER",
        "qtype": "single_choice",
        "text": "Wie liest man große Textdateien speicherschonend?",
        "options": [
          {"id": "A", "text": "for line in f:", "points": 1},
          {"id": "B", "text": "text = f.read()", "points": 0},
          {"id": "C", "text": "lines = f.readlines()", "points": 0}
        ]
      },

      { "flexo_id": "PY_BEGINNER-I251122-C6D7F5428D92@001D",
        "domain_id": "PY_BEGINNER",
        "qtype": "single_choice",
        "text": "Wozu dienen Typannotationen in Python?",
        "options": [
          {"id": "A", "text": "Für Tools/IDE/Typchecker; Laufzeit bleibt dynamisch.", "points": 1},
          {"id": "B", "text": "Erzwingen strikt die Typen zur Laufzeit.", "points": 0},
          {"id": "C", "text": "Ersetzen Docstrings vollständig.", "points": 0}
        ]
      },

      { "flexo_id": "PY_BEGINNER-I251122-21BF1EB15CC4@001D",
        "domain_id": "PY_BEGINNER",
        "qtype": "multiple_choice",
        "text": "Welche sind gültige Container-Annotationen (>=3.9)?",
        "options": [
          {"id": "A", "text": "list[int]", "points": 1},
          {"id": "B", "text": "dict[str, int]", "points": 1},
          {"id": "C", "text": "set[float]", "points": 1},
          {"id": "D", "text": "tuple<int>", "points": 0}
        ]
      },

      { "flexo_id": "PY_BEGINNER-I251122-1798CB33B11A@001D",
        "domain_id": "PY_BEGINNER",
        "qtype": "single_choice",
        "text": "Wie annotiert man 'oder None' präzise?",
        "options": [
          {"id": "A", "text": "T | None (Optional[T])", "points": 1},
          {"id": "B", "text": "Any", "points": 0},
          {"id": "C", "text": "object", "points": 0}
        ]
      },

      { "flexo_id": "PY_BEGINNER-I251122-071E3FA28B05@001D",
        "domain_id": "PY_BEGINNER",
        "qtype": "multiple_choice",
        "text": "Welche Stdlib-Hilfen definieren einfache Datenobjekte?",
        "options": [
          {"id": "A", "text": "dataclasses.dataclass", "points": 1},
          {"id": "B", "text": "collections.namedtuple", "points": 1},
          {"id": "C", "text": "typing.TypedDict", "points": 1},
          {"id": "D", "text": "functools.singledispatch", "points": 0}
        ]
      }
    ]
  }
