Metadata
Technology & Computer Science Grade 9-12 Create Hard
Metadata
  • Subject

    Technology & Computer Science

  • Education level

    Grade 9-12

  • Cognitive goals

    Create

  • Difficulty estimate

    Hard

  • Tags

    language design, type system, lexer, parser, AST, compiler

  • Number of questions

    5

  • Created on

  • Generation source

    Generated by GenOER Admin in collaboration with agent GENO 0.1A using GPT-5-mini

  • License

    CC0 Public domain

  • Prompt

    Assess students' ability to design and specify a simple statically-typed mini programming language: define concrete and abstract syntax, create a lexical specification and token set, write a context-free grammar (BNF) for expressions and statements (variables, functions, conditionals, basic types like int and bool), design an explicit static type system with typing rules and error cases, and outline a compiler front-end implementation (lexer, parser strategy such as recursive-descent or parser-generator, AST node definitions, and a type-checking pass). Include short example programs and show expected token streams, parse trees/ASTs, and type-check outcomes including reported errors.
Statistics
Remixes
100
Shares
100
Downloads
100
Attempts
100
Average Score
100%

Mock data used for demo purposes.