From d83d49cac40fd1720d7b8c07146002c1c94de7e7 Mon Sep 17 00:00:00 2001 From: Lyla Fischer Date: Mon, 15 Jul 2013 11:26:03 -0400 Subject: [PATCH 1/4] drag_and_drop template added --- .../templates/problem/drag_and_drop.yaml | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 common/lib/xmodule/xmodule/templates/problem/drag_and_drop.yaml diff --git a/common/lib/xmodule/xmodule/templates/problem/drag_and_drop.yaml b/common/lib/xmodule/xmodule/templates/problem/drag_and_drop.yaml new file mode 100644 index 0000000000..3705004316 --- /dev/null +++ b/common/lib/xmodule/xmodule/templates/problem/drag_and_drop.yaml @@ -0,0 +1,44 @@ +--- +metadata: + display_name: Drag and Drop + rerandomize: never + showanswer: finished +data: | + + Here's an example of a "Drag and Drop" question set. Click and drag each word in the scrollbar below, up to the numbered bucket which matches the number of letters in the word. + + + + + + + + + + + + + + + + correct_answer = { + '1': [[70, 150], 121], + '6': [[190, 150], 121], + '8': [[190, 150], 121], + '2': [[310, 150], 121], + '9': [[310, 150], 121], + '11': [[310, 150], 121], + '4': [[420, 150], 121], + '7': [[420, 150], 121], + '3': [[550, 150], 121], + '5': [[550, 150], 121], + '10': [[550, 150], 121]} + if draganddrop.grade(submission[0], correct_answer): + correct = ['correct'] + else: + correct = ['incorrect'] + + + + +children: [] From 2262ffe4e58cbd07845eb6aae98cb1db00e38fbe Mon Sep 17 00:00:00 2001 From: Lyla Fischer Date: Mon, 15 Jul 2013 11:58:37 -0400 Subject: [PATCH 2/4] updated imageresponse example to a more universal example (baby animals) --- .../templates/problem/imageresponse.yaml | 31 +++++++++---------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/common/lib/xmodule/xmodule/templates/problem/imageresponse.yaml b/common/lib/xmodule/xmodule/templates/problem/imageresponse.yaml index ab1f22e3b2..d9acb9359c 100644 --- a/common/lib/xmodule/xmodule/templates/problem/imageresponse.yaml +++ b/common/lib/xmodule/xmodule/templates/problem/imageresponse.yaml @@ -5,22 +5,21 @@ metadata: showanswer: finished data: | -

- An image mapped input problem presents an image for the student. Input is - given by the location of mouse clicks on the image. Correctness of input can be evaluated based on expected dimensions of a rectangle. -

- -

Which object in this image is required by the fire code?

- - - - -
-

Explanation

-

The fire code requires that all exits be clearly marked, so the red exit sign is the correct answer.

-
-
+

+ An image mapped input problem presents an image for the student. + Input is given by the location of mouse clicks on the image. + Correctness of input can be evaluated based on expected dimensions of a rectangle. +

+

Which animal shown below is a kitten?

+ + + + +
+

Explanation

+

The animal on the right is a kitten. The animal on the left is a puppy, not a kitten.

+
+
- children: [] From a512337881b56344ee7599b72947b43240c771e8 Mon Sep 17 00:00:00 2001 From: Lyla Fischer Date: Tue, 16 Jul 2013 16:18:27 -0400 Subject: [PATCH 3/4] removed soon-to-be-universally-fixed defaults --- .../lib/xmodule/xmodule/templates/problem/drag_and_drop.yaml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/common/lib/xmodule/xmodule/templates/problem/drag_and_drop.yaml b/common/lib/xmodule/xmodule/templates/problem/drag_and_drop.yaml index 3705004316..c0a45ec21c 100644 --- a/common/lib/xmodule/xmodule/templates/problem/drag_and_drop.yaml +++ b/common/lib/xmodule/xmodule/templates/problem/drag_and_drop.yaml @@ -1,8 +1,7 @@ --- metadata: display_name: Drag and Drop - rerandomize: never - showanswer: finished + markdown: !!null data: | Here's an example of a "Drag and Drop" question set. Click and drag each word in the scrollbar below, up to the numbered bucket which matches the number of letters in the word. @@ -40,5 +39,3 @@ data: | - -children: [] From a47daf26e45455f596498bde8e44af2dec63f6e6 Mon Sep 17 00:00:00 2001 From: Lyla Fischer Date: Tue, 16 Jul 2013 18:22:48 -0400 Subject: [PATCH 4/4] removed uneeded defaults from imageresponse --- .../lib/xmodule/xmodule/templates/problem/imageresponse.yaml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/common/lib/xmodule/xmodule/templates/problem/imageresponse.yaml b/common/lib/xmodule/xmodule/templates/problem/imageresponse.yaml index d9acb9359c..ab804178ca 100644 --- a/common/lib/xmodule/xmodule/templates/problem/imageresponse.yaml +++ b/common/lib/xmodule/xmodule/templates/problem/imageresponse.yaml @@ -1,8 +1,7 @@ --- metadata: display_name: Image Mapped Input - rerandomize: never - showanswer: finished + markdown: !!null data: |

@@ -21,5 +20,3 @@ data: | - -children: []