quizzes through terrarium project

pull/145/head
Jen Looper 4 years ago
parent 40e1462339
commit 96d31c764e

@ -429,53 +429,49 @@
"title": "Lesson 5: Pre-Lecture Quiz", "title": "Lesson 5: Pre-Lecture Quiz",
"quiz": [ "quiz": [
{ {
"questionText": "", "questionText": "What's an argument?",
"answerOptions": [ "answerOptions": [
{ {
"answerText": "", "answerText": "It's something you declare in the function definition",
"isCorrect": "" "isCorrect": "false"
}, },
{ {
"answerText": "", "answerText": "It's something you pass into a function at invocation time",
"isCorrect": "" "isCorrect": "true"
}, },
{ {
"answerText": "", "answerText": "It's something you have with people you know",
"isCorrect": "" "isCorrect": "false"
} }
] ]
}, },
{ {
"questionText": "", "questionText": "A function must return something",
"answerOptions": [ "answerOptions": [
{ {
"answerText": "", "answerText": "true",
"isCorrect": "" "isCorrect": "false"
},
{
"answerText": "",
"isCorrect": ""
}, },
{ {
"answerText": "", "answerText": "false",
"isCorrect": "" "isCorrect": "true"
} }
] ]
}, },
{ {
"questionText": "", "questionText": "You can name a function anything",
"answerOptions": [ "answerOptions": [
{ {
"answerText": "", "answerText": "true",
"isCorrect": "" "isCorrect": "false"
}, },
{ {
"answerText": "", "answerText": "false",
"isCorrect": "" "isCorrect": "false"
}, },
{ {
"answerText": "", "answerText": "true, but it should be a descriptive name",
"isCorrect": "" "isCorrect": "true"
} }
] ]
} }
@ -486,53 +482,49 @@
"title": "Lesson 5: Post-Lecture Quiz", "title": "Lesson 5: Post-Lecture Quiz",
"quiz": [ "quiz": [
{ {
"questionText": "", "questionText": "Arguments must be provided for all parameters in a function",
"answerOptions": [ "answerOptions": [
{ {
"answerText": "", "answerText": "true",
"isCorrect": "" "isCorrect": "false"
},
{
"answerText": "",
"isCorrect": ""
}, },
{ {
"answerText": "", "answerText": "false",
"isCorrect": "" "isCorrect": "true"
} }
] ]
}, },
{ {
"questionText": "", "questionText": "What does a default value do?",
"answerOptions": [ "answerOptions": [
{ {
"answerText": "", "answerText": "Sets a correct value",
"isCorrect": "" "isCorrect": "false"
}, },
{ {
"answerText": "", "answerText": "Gives a starter value for a parameter so your code still behaves if you omit an argument for it",
"isCorrect": "" "isCorrect": "true"
}, },
{ {
"answerText": "", "answerText": "Has no utility",
"isCorrect": "" "isCorrect": "false"
} }
] ]
}, },
{ {
"questionText": "", "questionText": "A fat arrow function allows you to",
"answerOptions": [ "answerOptions": [
{ {
"answerText": "", "answerText": "Create heavy functions",
"isCorrect": "" "isCorrect": "false"
}, },
{ {
"answerText": "", "answerText": "Omit the function keyword",
"isCorrect": "" "isCorrect": "true"
}, },
{ {
"answerText": "", "answerText": "Create an anonymous function",
"isCorrect": "" "isCorrect": "false"
} }
] ]
} }
@ -543,53 +535,53 @@
"title": "Lesson 6: Pre-Lecture Quiz", "title": "Lesson 6: Pre-Lecture Quiz",
"quiz": [ "quiz": [
{ {
"questionText": "", "questionText": "The following operator == is called",
"answerOptions": [ "answerOptions": [
{ {
"answerText": "", "answerText": "Equality",
"isCorrect": "" "isCorrect": "true"
}, },
{ {
"answerText": "", "answerText": "Strict equality",
"isCorrect": "" "isCorrect": "false"
}, },
{ {
"answerText": "", "answerText": "Assignment",
"isCorrect": "" "isCorrect": "false"
} }
] ]
}, },
{ {
"questionText": "", "questionText": "A comparison in JavaScript returns what type?",
"answerOptions": [ "answerOptions": [
{ {
"answerText": "", "answerText": "boolean",
"isCorrect": "" "isCorrect": "true"
}, },
{ {
"answerText": "", "answerText": "null",
"isCorrect": "" "isCorrect": "false"
}, },
{ {
"answerText": "", "answerText": "string",
"isCorrect": "" "isCorrect": "false"
} }
] ]
}, },
{ {
"questionText": "", "questionText": "The ! symbol in JavaScript means:",
"answerOptions": [ "answerOptions": [
{ {
"answerText": "", "answerText": "Logical Not",
"isCorrect": "" "isCorrect": "true"
}, },
{ {
"answerText": "", "answerText": "Important",
"isCorrect": "" "isCorrect": "false"
}, },
{ {
"answerText": "", "answerText": "Equals",
"isCorrect": "" "isCorrect": "false"
} }
] ]
} }
@ -600,53 +592,53 @@
"title": "Lesson 6: Post-Lecture Quiz", "title": "Lesson 6: Post-Lecture Quiz",
"quiz": [ "quiz": [
{ {
"questionText": "", "questionText": "What would the following code return: '1' == 1",
"answerOptions": [ "answerOptions": [
{ {
"answerText": "", "answerText": "true",
"isCorrect": "" "isCorrect": "true"
}, },
{ {
"answerText": "", "answerText": "false",
"isCorrect": "" "isCorrect": "false"
}, },
{ {
"answerText": "", "answerText": "null",
"isCorrect": "" "isCorrect": "false"
} }
] ]
}, },
{ {
"questionText": "", "questionText": "What would the following code return: '1' === 1",
"answerOptions": [ "answerOptions": [
{ {
"answerText": "", "answerText": "true",
"isCorrect": "" "isCorrect": "false"
}, },
{ {
"answerText": "", "answerText": "false",
"isCorrect": "" "isCorrect": "true"
}, },
{ {
"answerText": "", "answerText": "null",
"isCorrect": "" "isCorrect": "false"
} }
] ]
}, },
{ {
"questionText": "", "questionText": "Choose the correct operator to express 'or' logic",
"answerOptions": [ "answerOptions": [
{ {
"answerText": "", "answerText": "a | b",
"isCorrect": "" "isCorrect": "false"
}, },
{ {
"answerText": "", "answerText": "a || b",
"isCorrect": "" "isCorrect": "true"
}, },
{ {
"answerText": "", "answerText": "a or b",
"isCorrect": "" "isCorrect": "false"
} }
] ]
} }
@ -657,53 +649,53 @@
"title": "Lesson 7: Pre-Lecture Quiz", "title": "Lesson 7: Pre-Lecture Quiz",
"quiz": [ "quiz": [
{ {
"questionText": "", "questionText": "To refer to a specific item in an array, you would use a",
"answerOptions": [ "answerOptions": [
{ {
"answerText": "", "answerText": "square bracket []",
"isCorrect": "" "isCorrect": "false"
}, },
{ {
"answerText": "", "answerText": "index",
"isCorrect": "" "isCorrect": "true"
}, },
{ {
"answerText": "", "answerText": "curly braces {}",
"isCorrect": "" "isCorrect": "false"
} }
] ]
}, },
{ {
"questionText": "", "questionText": "How do you get the number of items in an array?",
"answerOptions": [ "answerOptions": [
{ {
"answerText": "", "answerText": "The 'len(array)' method",
"isCorrect": "" "isCorrect": "false"
}, },
{ {
"answerText": "", "answerText": "The property size on the array",
"isCorrect": "" "isCorrect": "false"
}, },
{ {
"answerText": "", "answerText": "The length property on the array",
"isCorrect": "" "isCorrect": "true"
} }
] ]
}, },
{ {
"questionText": "", "questionText": "In JavaScript, indexes start at",
"answerOptions": [ "answerOptions": [
{ {
"answerText": "", "answerText": "0",
"isCorrect": "" "isCorrect": "true"
}, },
{ {
"answerText": "", "answerText": "1",
"isCorrect": "" "isCorrect": "false"
}, },
{ {
"answerText": "", "answerText": "2",
"isCorrect": "" "isCorrect": "false"
} }
] ]
} }
@ -714,53 +706,49 @@
"title": "Lesson 7: Post-Lecture Quiz", "title": "Lesson 7: Post-Lecture Quiz",
"quiz": [ "quiz": [
{ {
"questionText": "", "questionText": "What part of a for-loop would you need to modify to increment its iteration by 5?",
"answerOptions": [ "answerOptions": [
{ {
"answerText": "", "answerText": "condition",
"isCorrect": "" "isCorrect": "true"
}, },
{ {
"answerText": "", "answerText": "counter",
"isCorrect": "" "isCorrect": "false"
}, },
{ {
"answerText": "", "answerText": "iteration-expression",
"isCorrect": "" "isCorrect": "false"
} }
] ]
}, },
{ {
"questionText": "", "questionText": "What's the difference between a while and a for-loop",
"answerOptions": [ "answerOptions": [
{ {
"answerText": "", "answerText": "A for-loop has a counter and iteration-expression, where while only has a condition",
"isCorrect": "" "isCorrect": "true"
}, },
{ {
"answerText": "", "answerText": "A while has a counter and iteration-expression where for-loop only has a condition",
"isCorrect": "" "isCorrect": "false"
}, },
{ {
"answerText": "", "answerText": "They are the same, just an alias for one another",
"isCorrect": "" "isCorrect": "false"
} }
] ]
}, },
{ {
"questionText": "", "questionText": "Given the code for (let i=1; i < 5; i++), how many iterations will it perform?",
"answerOptions": [ "answerOptions": [
{ {
"answerText": "", "answerText": "5",
"isCorrect": "" "isCorrect": "false"
},
{
"answerText": "",
"isCorrect": ""
}, },
{ {
"answerText": "", "answerText": "4",
"isCorrect": "" "isCorrect": "true"
} }
] ]
} }
@ -771,53 +759,45 @@
"title": "Lesson 8: Pre-Lecture Quiz", "title": "Lesson 8: Pre-Lecture Quiz",
"quiz": [ "quiz": [
{ {
"questionText": "", "questionText": "HTML stands for 'HyperText Mockup Language'",
"answerOptions": [ "answerOptions": [
{ {
"answerText": "", "answerText": "true",
"isCorrect": "" "isCorrect": "false"
},
{
"answerText": "",
"isCorrect": ""
}, },
{ {
"answerText": "", "answerText": "false",
"isCorrect": "" "isCorrect": "true"
} }
] ]
}, },
{ {
"questionText": "", "questionText": "All HTML tags need both opening and closing tags",
"answerOptions": [ "answerOptions": [
{ {
"answerText": "", "answerText": "true",
"isCorrect": "" "isCorrect": "false"
},
{
"answerText": "",
"isCorrect": ""
}, },
{ {
"answerText": "", "answerText": "false",
"isCorrect": "" "isCorrect": "true"
} }
] ]
}, },
{ {
"questionText": "", "questionText": "Using semantic markup is most important for",
"answerOptions": [ "answerOptions": [
{ {
"answerText": "", "answerText": "code readability",
"isCorrect": "" "isCorrect": "false"
}, },
{ {
"answerText": "", "answerText": "screen readers",
"isCorrect": "" "isCorrect": "true"
}, },
{ {
"answerText": "", "answerText": "maintenance",
"isCorrect": "" "isCorrect": "false"
} }
] ]
} }
@ -828,53 +808,49 @@
"title": "Lesson 8: Post-Lecture Quiz", "title": "Lesson 8: Post-Lecture Quiz",
"quiz": [ "quiz": [
{ {
"questionText": "", "questionText": "Spans and Divs are interchangeable",
"answerOptions": [ "answerOptions": [
{ {
"answerText": "", "answerText": "true",
"isCorrect": "" "isCorrect": "false"
},
{
"answerText": "",
"isCorrect": ""
}, },
{ {
"answerText": "", "answerText": "false",
"isCorrect": "" "isCorrect": "true"
} }
] ]
}, },
{ {
"questionText": "", "questionText": "The head of an HTML doc can contain:",
"answerOptions": [ "answerOptions": [
{ {
"answerText": "", "answerText": "the title tag",
"isCorrect": "" "isCorrect": "false"
}, },
{ {
"answerText": "", "answerText": "metadata",
"isCorrect": "" "isCorrect": "false"
}, },
{ {
"answerText": "", "answerText": "all the above",
"isCorrect": "" "isCorrect": "true"
} }
] ]
}, },
{ {
"questionText": "", "questionText": "You can't use deprecated tags in your markup",
"answerOptions": [ "answerOptions": [
{ {
"answerText": "", "answerText": "true",
"isCorrect": "" "isCorrect": "false"
}, },
{ {
"answerText": "", "answerText": "false",
"isCorrect": "" "isCorrect": "false"
}, },
{ {
"answerText": "", "answerText": "false, but they have been deprecated for good reason",
"isCorrect": "" "isCorrect": "true"
} }
] ]
} }
@ -885,53 +861,41 @@
"title": "Lesson 9: Pre-Lecture Quiz", "title": "Lesson 9: Pre-Lecture Quiz",
"quiz": [ "quiz": [
{ {
"questionText": "", "questionText": "HTML elements must have either a class or an id in order to be styled",
"answerOptions": [ "answerOptions": [
{ {
"answerText": "", "answerText": "true",
"isCorrect": "" "isCorrect": "false"
},
{
"answerText": "",
"isCorrect": ""
}, },
{ {
"answerText": "", "answerText": "false",
"isCorrect": "" "isCorrect": "true"
} }
] ]
}, },
{ {
"questionText": "", "questionText": "CSS stands for 'Complete Style Sheets'",
"answerOptions": [ "answerOptions": [
{ {
"answerText": "", "answerText": "true",
"isCorrect": "" "isCorrect": "false"
},
{
"answerText": "",
"isCorrect": ""
}, },
{ {
"answerText": "", "answerText": "false",
"isCorrect": "" "isCorrect": "true"
} }
] ]
}, },
{ {
"questionText": "", "questionText": "CSS can be used to create animations",
"answerOptions": [ "answerOptions": [
{ {
"answerText": "", "answerText": "true",
"isCorrect": "" "isCorrect": "true"
},
{
"answerText": "",
"isCorrect": ""
}, },
{ {
"answerText": "", "answerText": "false",
"isCorrect": "" "isCorrect": "false"
} }
] ]
} }
@ -942,53 +906,49 @@
"title": "Lesson 9: Post-Lecture Quiz", "title": "Lesson 9: Post-Lecture Quiz",
"quiz": [ "quiz": [
{ {
"questionText": "", "questionText": "You can write CSS directly in the head section of your HTML file",
"answerOptions": [ "answerOptions": [
{ {
"answerText": "", "answerText": "true",
"isCorrect": "" "isCorrect": "true"
},
{
"answerText": "",
"isCorrect": ""
}, },
{ {
"answerText": "", "answerText": "false",
"isCorrect": "" "isCorrect": "false"
} }
] ]
}, },
{ {
"questionText": "", "questionText": "It's always necessary to include CSS in your app",
"answerOptions": [ "answerOptions": [
{ {
"answerText": "", "answerText": "true",
"isCorrect": "" "isCorrect": "false"
}, },
{ {
"answerText": "", "answerText": "false",
"isCorrect": "" "isCorrect": "false"
}, },
{ {
"answerText": "", "answerText": "false, but if you want it to look good you probably need CSS",
"isCorrect": "" "isCorrect": "true"
} }
] ]
}, },
{ {
"questionText": "", "questionText": "Which browser tool can be used to inspect CSS?",
"answerOptions": [ "answerOptions": [
{ {
"answerText": "", "answerText": "Elements",
"isCorrect": "" "isCorrect": "false"
}, },
{ {
"answerText": "", "answerText": "Styles",
"isCorrect": "" "isCorrect": "true"
}, },
{ {
"answerText": "", "answerText": "Network",
"isCorrect": "" "isCorrect": "false"
} }
] ]
} }
@ -999,53 +959,41 @@
"title": "Lesson 10: Pre-Lecture Quiz", "title": "Lesson 10: Pre-Lecture Quiz",
"quiz": [ "quiz": [
{ {
"questionText": "", "questionText": "The DOM stands for 'Document Object Management'",
"answerOptions": [ "answerOptions": [
{ {
"answerText": "", "answerText": "true",
"isCorrect": "" "isCorrect": "false"
},
{
"answerText": "",
"isCorrect": ""
}, },
{ {
"answerText": "", "answerText": "false",
"isCorrect": "" "isCorrect": "true"
} }
] ]
}, },
{ {
"questionText": "", "questionText": "The DOM can be thought of as a tree",
"answerOptions": [ "answerOptions": [
{ {
"answerText": "", "answerText": "true",
"isCorrect": "" "isCorrect": "true"
},
{
"answerText": "",
"isCorrect": ""
}, },
{ {
"answerText": "", "answerText": "false",
"isCorrect": "" "isCorrect": "false"
} }
] ]
}, },
{ {
"questionText": "", "questionText": "Using the Web API, you can manipulate the DOM",
"answerOptions": [ "answerOptions": [
{ {
"answerText": "", "answerText": "true",
"isCorrect": "" "isCorrect": "true"
},
{
"answerText": "",
"isCorrect": ""
}, },
{ {
"answerText": "", "answerText": "false",
"isCorrect": "" "isCorrect": "false"
} }
] ]
} }
@ -1056,53 +1004,49 @@
"title": "Lesson 10: Post-Lecture Quiz", "title": "Lesson 10: Post-Lecture Quiz",
"quiz": [ "quiz": [
{ {
"questionText": "", "questionText": "The DOM is a model to represent a document on the web",
"answerOptions": [ "answerOptions": [
{ {
"answerText": "", "answerText": "true",
"isCorrect": "" "isCorrect": "true"
},
{
"answerText": "",
"isCorrect": ""
}, },
{ {
"answerText": "", "answerText": "false",
"isCorrect": "" "isCorrect": "false"
} }
] ]
}, },
{ {
"questionText": "", "questionText": "Use JavaScript closures to perform the following:",
"answerOptions": [ "answerOptions": [
{ {
"answerText": "", "answerText": "write functions within functions",
"isCorrect": "" "isCorrect": "true"
}, },
{ {
"answerText": "", "answerText": "enclose the DOM",
"isCorrect": "" "isCorrect": "false"
}, },
{ {
"answerText": "", "answerText": "close script blocks",
"isCorrect": "" "isCorrect": "false"
} }
] ]
}, },
{ {
"questionText": "", "questionText": "Fill in the blank: Closures are useful when one or more functions need to access an outer function's...",
"answerOptions": [ "answerOptions": [
{ {
"answerText": "", "answerText": "arrays",
"isCorrect": "" "isCorrect": "false"
}, },
{ {
"answerText": "", "answerText": "scope",
"isCorrect": "" "isCorrect": "true"
}, },
{ {
"answerText": "", "answerText": "functions",
"isCorrect": "" "isCorrect": "false"
} }
] ]
} }

Loading…
Cancel
Save