Non-registered mode. Register to save your course progress.
By exploring the course, you are agreeing to our Terms of Service and Privacy Policy. Please read them carefully.
<div class="xblock xblock-student_view xblock-student_view-vertical" data-runtime-class="LmsRuntime" data-init="VerticalStudentView" data-course-id="DB/JSON/SelfPaced" data-request-token="7d81c780199011ea804602675b40794c" data-runtime-version="1" data-usage-id="i4x:;_;_DB;_JSON;_vertical;_vert-quiz-json" data-block-type="vertical">
<h2 class="hd hd-2 unit-title">JSON Quiz</h2>
<div class="bookmark-button-wrapper">
<button class="btn btn-link bookmark-button "
aria-pressed="false"
data-bookmark-id="anon__fdKnE06uIckKVyBnCEw1A6ym,i4x://DB/JSON/vertical/vert-quiz-json"
data-bookmarks-api-url="/api/bookmarks/v1/bookmarks/">
<span class="bookmark-text">Bookmark this page</span>
</button>
</div>
<div class="vert-mod">
<div class="vert vert-0" data-id="i4x://DB/JSON/html/quizheader2">
<div class="xblock xblock-student_view xblock-student_view-html xmodule_display xmodule_HtmlModule" data-runtime-class="LmsRuntime" data-init="XBlockToXModuleShim" data-block-type="html" data-request-token="7d81c780199011ea804602675b40794c" data-runtime-version="1" data-usage-id="i4x:;_;_DB;_JSON;_html;_quizheader2" data-type="HTMLModule" data-course-id="DB/JSON/SelfPaced">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "HTMLModule"}
</script>
<p>Each multiple-choice quiz problem is based on a "root question," from which the system generates different correct and incorrect choices each time you take the quiz. Thus, you can test yourself on the same material multiple times. We strongly urge you to continue testing on each topic until you complete the quiz with a perfect score at least once. Simply click the "Reset" button at the bottom of the page for a new variant of the quiz.</p>
<p>After submitting your selections, the system will score your quiz, and for incorrect answers will provide an "explanation" (sometimes for correct ones too). These explanations should help you get the right answer the next time around. To prevent rapid-fire guessing, the system enforces a minimum of 10 minutes between each submission of solutions.</p>
</div>
</div>
<div class="vert vert-1" data-id="i4x://DB/JSON/problem/prob-json">
<div class="xblock xblock-student_view xblock-student_view-problem xmodule_display xmodule_CapaModule" data-runtime-class="LmsRuntime" data-init="XBlockToXModuleShim" data-block-type="problem" data-request-token="7d81c780199011ea804602675b40794c" data-runtime-version="1" data-usage-id="i4x:;_;_DB;_JSON;_problem;_prob-json" data-type="Problem" data-course-id="DB/JSON/SelfPaced">
<script type="json/xblock-args" class="xblock-json-init-args">
{"xmodule-type": "Problem"}
</script>
<div id="problem_i4x-DB-JSON-problem-prob-json" class="problems-wrapper" role="group"
aria-labelledby="i4x-DB-JSON-problem-prob-json-problem-title"
data-problem-id="i4x://DB/JSON/problem/prob-json" data-url="/courses/DB/JSON/SelfPaced/xblock/i4x:;_;_DB;_JSON;_problem;_prob-json/handler/xmodule_handler"
data-problem-score="0"
data-problem-total-possible="4"
data-attempts-used="0"
data-content="
<h3 class="hd hd-3 problem-header" id="i4x-DB-JSON-problem-prob-json-problem-title" aria-describedby="i4x://DB/JSON/problem/prob-json-problem-progress" tabindex="-1">
Multiple Choice
</h3>
<div class="problem-progress" id="i4x://DB/JSON/problem/prob-json-problem-progress"></div>
<div class="problem">
<div>
<p>[Q1] Which of the following is NOT a valid JSON object?
</p>
<div class="wrapper-problem-response" tabindex="-1" aria-label="Question 1" role="group"><div class="choicegroup capa_inputtype" id="inputtype_i4x-DB-JSON-problem-prob-json_2_1">
<fieldset aria-describedby="status_i4x-DB-JSON-problem-prob-json_2_1">
<div class="field">
<label id="i4x-DB-JSON-problem-prob-json_2_1-choice_9-label" class="response-label field-label label-inline" aria-describedby="status_i4x-DB-JSON-problem-prob-json_2_1">
<input type="radio" name="input_i4x-DB-JSON-problem-prob-json_2_1" id="input_i4x-DB-JSON-problem-prob-json_2_1_choice_9" class="field-input input-radio" value="choice_9"/>
<span>
<pre>
{ "name": "Smiley",
"age": 20,
"phone": { "888-123-4567", "888-765-4321" },
"email": "smiley@xyz.com",
"happy": true }
</pre>
</span>
</label>
</div>
<div class="field">
<label id="i4x-DB-JSON-problem-prob-json_2_1-choice_7-label" class="response-label field-label label-inline" aria-describedby="status_i4x-DB-JSON-problem-prob-json_2_1">
<input type="radio" name="input_i4x-DB-JSON-problem-prob-json_2_1" id="input_i4x-DB-JSON-problem-prob-json_2_1_choice_7" class="field-input input-radio" value="choice_7"/>
<span>
<pre>
{ "name": "Smiley",
"age": 20,
"phone": "888-123-4567",
"email": "smiley@xyz.com",
"happy": true }
</pre>
</span>
</label>
</div>
<div class="field">
<label id="i4x-DB-JSON-problem-prob-json_2_1-choice_6-label" class="response-label field-label label-inline" aria-describedby="status_i4x-DB-JSON-problem-prob-json_2_1">
<input type="radio" name="input_i4x-DB-JSON-problem-prob-json_2_1" id="input_i4x-DB-JSON-problem-prob-json_2_1_choice_6" class="field-input input-radio" value="choice_6"/>
<span>
<pre>
{ "name": "Smiley",
"age": "20",
"phone": "888-123-4567",
"email": "smiley@xyz.com",
"happy": true }
</pre>
</span>
</label>
</div>
<div class="field">
<label id="i4x-DB-JSON-problem-prob-json_2_1-choice_3-label" class="response-label field-label label-inline" aria-describedby="status_i4x-DB-JSON-problem-prob-json_2_1">
<input type="radio" name="input_i4x-DB-JSON-problem-prob-json_2_1" id="input_i4x-DB-JSON-problem-prob-json_2_1_choice_3" class="field-input input-radio" value="choice_3"/>
<span>
<pre>
{ "name": "Smiley",
"age": 20,
"phone": "888-123-4567",
"email": "smiley@xyz.com",
"happy": true }
</pre>
</span>
</label>
</div>
<span id="answer_i4x-DB-JSON-problem-prob-json_2_1"/>
</fieldset>
<div class="indicator-container">
<span class="status unanswered" id="status_i4x-DB-JSON-problem-prob-json_2_1" data-tooltip="Not yet answered.">
<span class="sr">unanswered</span><span class="status-icon" aria-hidden="true"/>
</span>
</div>
</div></div>
<targetedfeedbackset>
</targetedfeedbackset>
<solutionset>
<div class="solution-span">
<span id="solution_i4x-DB-JSON-problem-prob-json_solution_5"/>
</div></solutionset>
<hr/>
<br/>
<p>[Q2] Which of the following is NOT a valid JSON array?
</p>
<div class="wrapper-problem-response" tabindex="-1" aria-label="Question 2" role="group"><div class="choicegroup capa_inputtype" id="inputtype_i4x-DB-JSON-problem-prob-json_3_1">
<fieldset aria-describedby="status_i4x-DB-JSON-problem-prob-json_3_1">
<div class="field">
<label id="i4x-DB-JSON-problem-prob-json_3_1-choice_1-label" class="response-label field-label label-inline" aria-describedby="status_i4x-DB-JSON-problem-prob-json_3_1">
<input type="radio" name="input_i4x-DB-JSON-problem-prob-json_3_1" id="input_i4x-DB-JSON-problem-prob-json_3_1_choice_1" class="field-input input-radio" value="choice_1"/>
<span>
<pre>
[ [1, 2], ["dog", "cat"], [true, false], [1, "dog", null],
{"pet":"dog", "fun":true} ]
</pre>
</span>
</label>
</div>
<div class="field">
<label id="i4x-DB-JSON-problem-prob-json_3_1-choice_7-label" class="response-label field-label label-inline" aria-describedby="status_i4x-DB-JSON-problem-prob-json_3_1">
<input type="radio" name="input_i4x-DB-JSON-problem-prob-json_3_1" id="input_i4x-DB-JSON-problem-prob-json_3_1_choice_7" class="field-input input-radio" value="choice_7"/>
<span>
<pre>
[ 1, 2, "dog", "cat", true, false, [1, "dog", null]
{"pet":"dog", "fun":true} ]
</pre>
</span>
</label>
</div>
<div class="field">
<label id="i4x-DB-JSON-problem-prob-json_3_1-choice_4-label" class="response-label field-label label-inline" aria-describedby="status_i4x-DB-JSON-problem-prob-json_3_1">
<input type="radio" name="input_i4x-DB-JSON-problem-prob-json_3_1" id="input_i4x-DB-JSON-problem-prob-json_3_1_choice_4" class="field-input input-radio" value="choice_4"/>
<span>
<pre>
[ 1, 2, "dog", "cat", true, false, [],
{"pet":"dog", "fun":true} ]
</pre>
</span>
</label>
</div>
<div class="field">
<label id="i4x-DB-JSON-problem-prob-json_3_1-choice_3-label" class="response-label field-label label-inline" aria-describedby="status_i4x-DB-JSON-problem-prob-json_3_1">
<input type="radio" name="input_i4x-DB-JSON-problem-prob-json_3_1" id="input_i4x-DB-JSON-problem-prob-json_3_1_choice_3" class="field-input input-radio" value="choice_3"/>
<span>
<pre>
[ [1, 2, "dog", "cat", true, false, [1, "dog", null],
{"pet":"dog", "fun":true}] ]
</pre>
</span>
</label>
</div>
<span id="answer_i4x-DB-JSON-problem-prob-json_3_1"/>
</fieldset>
<div class="indicator-container">
<span class="status unanswered" id="status_i4x-DB-JSON-problem-prob-json_3_1" data-tooltip="Not yet answered.">
<span class="sr">unanswered</span><span class="status-icon" aria-hidden="true"/>
</span>
</div>
</div></div>
<targetedfeedbackset>
</targetedfeedbackset>
<solutionset>
<div class="solution-span">
<span id="solution_i4x-DB-JSON-problem-prob-json_solution_10"/>
</div></solutionset>
<hr/>
<br/>
<p>[Q3] Consider the following JSON Schema specification:
</p>
<p>
<pre>
{
"type": "object",
"properties":
{ "ItemID": { "type":"string", "pattern":"Item*" },
"ItemName": { "type":"string" },
"Price": { "type":"integer", "minimum":10, "maximum":100 },
"Sellers": { "type":"array", "maxItems":3,
"items": { "type":"string" }},
"Ratings": { "type":"array",
"items":
{ "type": "object",
"properties": {"Rater":
{"type": "string", "optional": true},
"Score":
{"type": "integer", "minimum":1,
"maxiumum":5}}}},
"AvgRating": { "type":"number", "optional":true },
"FreeShipping": {"type":"boolean" }
}
}
</pre>
</p>
<p>Select, from the choices below, the JSON data that <i>is</i> valid according to the JSON Schema specification above.</p>
<div class="wrapper-problem-response" tabindex="-1" aria-label="Question 3" role="group"><div class="choicegroup capa_inputtype" id="inputtype_i4x-DB-JSON-problem-prob-json_4_1">
<fieldset aria-describedby="status_i4x-DB-JSON-problem-prob-json_4_1">
<div class="field">
<label id="i4x-DB-JSON-problem-prob-json_4_1-choice_7-label" class="response-label field-label label-inline" aria-describedby="status_i4x-DB-JSON-problem-prob-json_4_1">
<input type="radio" name="input_i4x-DB-JSON-problem-prob-json_4_1" id="input_i4x-DB-JSON-problem-prob-json_4_1_choice_7" class="field-input input-radio" value="choice_7"/>
<span>
<pre>
{ "ItemID": "Item123",
"ItemName": "desk",
"Price": 50,
"Sellers": [ ],
"Ratings": [{"Rater":"Amy", "Score":5}, {"Score":1},
{"Rater":"Carl", "Score":4}],
"AvgRating": 3.33,
"FreeShipping": true }
</pre>
</span>
</label>
</div>
<div class="field">
<label id="i4x-DB-JSON-problem-prob-json_4_1-choice_4-label" class="response-label field-label label-inline" aria-describedby="status_i4x-DB-JSON-problem-prob-json_4_1">
<input type="radio" name="input_i4x-DB-JSON-problem-prob-json_4_1" id="input_i4x-DB-JSON-problem-prob-json_4_1_choice_4" class="field-input input-radio" value="choice_4"/>
<span>
<pre>
{ "ItemID": "Item123",
"ItemName": "desk",
"Price": 50,
"Sellers": ["Amy","Ben","Eve","Fred"],
"Ratings": [{"Rater":"Amy", "Score":5}, {"Score":1},
{"Rater":"Carl", "Score":4}],
"AvgRating": 3.33,
"FreeShipping": true }
</pre>
</span>
</label>
</div>
<div class="field">
<label id="i4x-DB-JSON-problem-prob-json_4_1-choice_5-label" class="response-label field-label label-inline" aria-describedby="status_i4x-DB-JSON-problem-prob-json_4_1">
<input type="radio" name="input_i4x-DB-JSON-problem-prob-json_4_1" id="input_i4x-DB-JSON-problem-prob-json_4_1_choice_5" class="field-input input-radio" value="choice_5"/>
<span>
<pre>
{ "ItemID": "Item123",
"ItemName": "desk",
"Price": 50,
"Sellers": ["Amy","Ben"],
"Ratings": [{"Rater":"Amy", "Score":5}, {"Score":1},
{"Rater":"Carl", "Score":4}],
"AvgRating": 3.33,
"FreeShipping": "yes" }
</pre>
</span>
</label>
</div>
<div class="field">
<label id="i4x-DB-JSON-problem-prob-json_4_1-choice_1-label" class="response-label field-label label-inline" aria-describedby="status_i4x-DB-JSON-problem-prob-json_4_1">
<input type="radio" name="input_i4x-DB-JSON-problem-prob-json_4_1" id="input_i4x-DB-JSON-problem-prob-json_4_1_choice_1" class="field-input input-radio" value="choice_1"/>
<span>
<pre>
{ "ItemID": "123",
"ItemName": "desk",
"Price": 50,
"Sellers": ["Amy","Ben"],
"Ratings": [{"Rater":"Amy", "Score":5}, {"Score":1},
{"Rater":"Carl", "Score":4}],
"AvgRating": 3.33,
"FreeShipping": true }
</pre>
</span>
</label>
</div>
<span id="answer_i4x-DB-JSON-problem-prob-json_4_1"/>
</fieldset>
<div class="indicator-container">
<span class="status unanswered" id="status_i4x-DB-JSON-problem-prob-json_4_1" data-tooltip="Not yet answered.">
<span class="sr">unanswered</span><span class="status-icon" aria-hidden="true"/>
</span>
</div>
</div></div>
<targetedfeedbackset>
</targetedfeedbackset>
<solutionset>
<div class="solution-span">
<span id="solution_i4x-DB-JSON-problem-prob-json_solution_12"/>
</div></solutionset>
<hr/>
<br/>
<p>[Q4] Consider the following JSON data:
</p>
<p>
<pre>
{ "A": [1,1,2,2], "B": {"C":3, "D":4}, "E":[5,6,true], "F": {"G": [null,7]} }
</pre>
</p>
<p>Which of the following could NOT be included as part of a JSON Schema specification that is satisfied by the JSON data above? Assume that every letter ("A", "B", "C", ...) appears in the JSON Schema specification exactly once.</p>
<div class="wrapper-problem-response" tabindex="-1" aria-label="Question 4" role="group"><div class="choicegroup capa_inputtype" id="inputtype_i4x-DB-JSON-problem-prob-json_5_1">
<fieldset aria-describedby="status_i4x-DB-JSON-problem-prob-json_5_1">
<div class="field">
<label id="i4x-DB-JSON-problem-prob-json_5_1-choice_8-label" class="response-label field-label label-inline" aria-describedby="status_i4x-DB-JSON-problem-prob-json_5_1">
<input type="radio" name="input_i4x-DB-JSON-problem-prob-json_5_1" id="input_i4x-DB-JSON-problem-prob-json_5_1_choice_8" class="field-input input-radio" value="choice_8"/>
<span>
<pre>
"B": {"type":"object",
"properties": {"C": {"type":"integer"}}}
</pre>
</span>
</label>
</div>
<div class="field">
<label id="i4x-DB-JSON-problem-prob-json_5_1-choice_12-label" class="response-label field-label label-inline" aria-describedby="status_i4x-DB-JSON-problem-prob-json_5_1">
<input type="radio" name="input_i4x-DB-JSON-problem-prob-json_5_1" id="input_i4x-DB-JSON-problem-prob-json_5_1_choice_12" class="field-input input-radio" value="choice_12"/>
<span>
<pre>
"B": {"type":"array", "items": {"C": {"type":"integer"},
"D": {"type":"integer"}}}
</pre>
</span>
</label>
</div>
<div class="field">
<label id="i4x-DB-JSON-problem-prob-json_5_1-choice_2-label" class="response-label field-label label-inline" aria-describedby="status_i4x-DB-JSON-problem-prob-json_5_1">
<input type="radio" name="input_i4x-DB-JSON-problem-prob-json_5_1" id="input_i4x-DB-JSON-problem-prob-json_5_1_choice_2" class="field-input input-radio" value="choice_2"/>
<span>
<pre>
"B": {"type":"object",
"properties": {"C": {"type":"integer"},
"D": {"type":"integer"}}}
</pre>
</span>
</label>
</div>
<div class="field">
<label id="i4x-DB-JSON-problem-prob-json_5_1-choice_13-label" class="response-label field-label label-inline" aria-describedby="status_i4x-DB-JSON-problem-prob-json_5_1">
<input type="radio" name="input_i4x-DB-JSON-problem-prob-json_5_1" id="input_i4x-DB-JSON-problem-prob-json_5_1_choice_13" class="field-input input-radio" value="choice_13"/>
<span>
<pre>
"G": {"type":"array", "items": {"type":["null","integer"]}}
</pre>
</span>
</label>
</div>
<span id="answer_i4x-DB-JSON-problem-prob-json_5_1"/>
</fieldset>
<div class="indicator-container">
<span class="status unanswered" id="status_i4x-DB-JSON-problem-prob-json_5_1" data-tooltip="Not yet answered.">
<span class="sr">unanswered</span><span class="status-icon" aria-hidden="true"/>
</span>
</div>
</div></div>
<targetedfeedbackset>
</targetedfeedbackset>
<solutionset>
<div class="solution-span">
<span id="solution_i4x-DB-JSON-problem-prob-json_solution_17"/>
</div></solutionset>
</div>
<div class="action">
<input type="hidden" name="problem_id" value="Multiple Choice" />
<div class="submit-attempt-container">
<button type="button" class="submit btn-brand" data-submitting="Submitting" data-value="Submit" data-should-enable-submit-button="True" aria-describedby="submission_feedback_i4x-DB-JSON-problem-prob-json" >
<span class="submit-label">Submit</span>
</button>
<div class="submission-feedback" id="submission_feedback_i4x-DB-JSON-problem-prob-json">
<span class="sr">Some problems have options such as save, reset, hints, or show answer. These options follow the Submit button.</span>
</div>
</div>
<div class="problem-action-buttons-wrapper">
<span class="problem-action-button-wrapper">
<button type="button" class="save problem-action-btn btn-default btn-small" data-value="Save">
<span class="icon fa fa-floppy-o" aria-hidden="true"></span>
<span aria-hidden="true">Save</span>
<span class="sr">Save your answer</span>
</button>
</span>
</div>
</div>
<div class="notification warning notification-gentle-alert
is-hidden"
tabindex="-1">
<span class="icon fa fa-exclamation-circle" aria-hidden="true"></span>
<span class="notification-message" aria-describedby="i4x-DB-JSON-problem-prob-json-problem-title">
</span>
<div class="notification-btn-wrapper">
<button type="button" class="btn btn-default btn-small notification-btn review-btn sr">Review</button>
</div>
</div>
<div class="notification warning notification-save
is-hidden"
tabindex="-1">
<span class="icon fa fa-save" aria-hidden="true"></span>
<span class="notification-message" aria-describedby="i4x-DB-JSON-problem-prob-json-problem-title">None
</span>
<div class="notification-btn-wrapper">
<button type="button" class="btn btn-default btn-small notification-btn review-btn sr">Review</button>
</div>
</div>
<div class="notification general notification-show-answer
is-hidden"
tabindex="-1">
<span class="icon fa fa-info-circle" aria-hidden="true"></span>
<span class="notification-message" aria-describedby="i4x-DB-JSON-problem-prob-json-problem-title">Answers are displayed within the problem
</span>
<div class="notification-btn-wrapper">
<button type="button" class="btn btn-default btn-small notification-btn review-btn sr">Review</button>
</div>
</div>
</div>
"
data-graded="True">
<p class="loading-spinner">
<i class="fa-spinner fa-pulse fa-2x fa-fw"></i>
<span class="sr">Loading…</span>
</p>
</div>
</div>
</div>
</div>
</div>
By exploring the course, you are agreeing to our Terms of Service and Privacy Policy. Please read them carefully.
© All Rights Reserved