Quiz App
Decks
Folders
Back
Summary
{deck: {name: "1a Beginning Student Language"}, score: [{question_type: "multiple_choice", label: "Multiple choice", graded: true, count: 15, total: 15}, {question_type: "short_answer", label: "Short answer", graded: false, count: 5, total: 5}], answers: [{question_prompt: "What does Racket ultimately evaluate an expression into?", question_type: "multiple_choice", choices: ["A value", "A comment", "A parameter list", "A type signature"], selected_choice: "A value", response: nil, correct: true}, {question_prompt: "Which expression correctly follows Racket prefix notation?", question_type: "multiple_choice", choices: ["(3 + 4)", "(+ 3 4)", "3 + 4", "(3 4 +)"], selected_choice: "(+ 3 4)", response: nil, correct: true}, {question_prompt: "What does (substring \"012345\" 2 4) produce?", question_type: "multiple_choice", choices: ["23", "\"234\"", "\"23\"", "\"12\""], selected_choice: "\"23\"", response: nil, correct: true}, {question_prompt: "Which library is required for primitives such as rectangle and image-width?", question_type: "multiple_choice", choices: ["2htdp/universe", "racket/string", "test-engine", "2htdp/image"], selected_choice: "2htdp/image", response: nil, correct: true}, {question_prompt: "What does the text primitive produce?", question_type: "multiple_choice", choices: ["A String", "A Number", "An Image", "A Boolean"], selected_choice: "An Image", response: nil, correct: true}, {question_prompt: "What happens when Racket evaluates a constant name such as WIDTH?", question_type: "multiple_choice", choices: ["It creates a new constant", "It replaces the name with its defined value", "It converts the name to a string", "It asks the user for a value"], selected_choice: "It replaces the name with its defined value", response: nil, correct: true}, {question_prompt: "What is a predicate?", question_type: "multiple_choice", choices: ["A function or primitive that produces a Boolean", "Any function with two parameters", "A constant that stores true", "A comment describing a test"], selected_choice: "A function or primitive that produces a Boolean", response: nil, correct: true}, {question_prompt: "How does an if expression evaluate its branches?", question_type: "multiple_choice", choices: ["Both branches always evaluate", "The false branch evaluates first", "Neither branch evaluates until the program ends", "Only the branch selected by the Boolean question evaluates"], selected_choice: "Only the branch selected by the Boolean question evaluates", response: nil, correct: true}, {question_prompt: "What happens when evaluating (and false (/ 1 0))?", question_type: "multiple_choice", choices: ["Division by zero occurs", "The result is false without evaluating the division", "The result is true", "Racket evaluates the division and then returns false"], selected_choice: "The result is false without evaluating the division", response: nil, correct: true}, {question_prompt: "Which statement about or is correct?", question_type: "multiple_choice", choices: ["It is true if any expression is true", "It is true only when every expression is true", "It is true if any expression is false", "It never short-circuits"], selected_choice: "It is true if any expression is true", response: nil, correct: true}, {question_prompt: "Why are parameters useful in a function?", question_type: "multiple_choice", choices: ["They make constants immutable", "They prevent evaluation", "They let the same logic operate on different values", "They automatically create tests"], selected_choice: "They let the same logic operate on different values", response: nil, correct: true}, {question_prompt: "In a function call, what normally happens before parameter values are substituted into the body?", question_type: "multiple_choice", choices: ["The body is deleted", "All constants become strings", "The Stepper is automatically opened", "Arguments are reduced to values"], selected_choice: "Arguments are reduced to values", response: nil, correct: true}, {question_prompt: "What is the best description of overlay compared with above?", question_type: "multiple_choice", choices: ["overlay stacks images in the same space", "overlay places images side by side", "overlay converts images to strings", "overlay always makes the result taller"], selected_choice: "overlay stacks images in the same space", response: nil, correct: true}, {question_prompt: "What is a good use of the DrRacket Stepper?", question_type: "multiple_choice", choices: ["Generating documentation", "Seeing the order in which subexpressions reduce", "Changing a function signature automatically", "Finding image files on disk"], selected_choice: "Seeing the order in which subexpressions reduce", response: nil, correct: true}, {question_prompt: "If you know the primitive beside and want a related image-layout primitive, what strategy from the notes is appropriate?", question_type: "multiple_choice", choices: ["Rewrite beside from scratch", "Use only primitives you can remember exactly", "Search the documentation for beside and scroll around related primitives", "Convert the image to a string first"], selected_choice: "Search the documentation for beside and scroll around related primitives", response: nil, correct: true}, {question_prompt: "What value does (substring \"012345\" 2 4) evaluate to? Briefly explain which character positions are included.", question_type: "short_answer", choices: [], selected_choice: nil, response: "Evaluates to \"23\" takes the 2nd and 3rd \"elements\" in the string", correct: nil}, {question_prompt: "What kind of value does (text \"Hello\" 20 \"red\") produce: a String, Number, Boolean, or Image?", question_type: "short_answer", choices: [], selected_choice: nil, response: "Image", correct: nil}, {question_prompt: "Write a Racket expression using and that returns false when x is 0 without attempting to evaluate (/ 10 x), and otherwise checks whether (/ 10 x) is greater than 2.", question_type: "short_answer", choices: [], selected_choice: nil, response: "```racket\n(and (not (= x 0)) (> (/ 10 x) 2))\n```", correct: nil}, {question_prompt: "Write a Racket expression in prefix notation that calculates 3 + (4 * 2).", question_type: "short_answer", choices: [], selected_choice: nil, response: "(+ 3 (* 4 2))", correct: nil}, {question_prompt: "Write a Racket function named larger-than-10? that consumes a number n and produces true when n is greater than 10 and false otherwise.", question_type: "short_answer", choices: [], selected_choice: nil, response: "(define (larger-than-10 n)\n (> n 10))", correct: nil}]}
Copy JSON