- In drag and drop problems, students respond to a question by dragging text or objects to a specific location on an image.
-
- For more information, see
-
- Drag and Drop Problem (Deprecated) in Building and Running an edX Course.
-
-
- When you add the problem, be sure to select Settings
- to specify a Display Name and other values that apply.
-
- You can use the following example problems as models.
-
-
- Simple Drag and Drop
- Drag each word in the scrollbar to the bucket that 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']
-
-
-
-
- Drag and Drop with Outline
- Label the hydrogen atoms connected with the left carbon atom.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- correct_answer = [{
- 'draggables': ['1', '2'],
- 'targets': ['t2', 't3', 't4' ],
- 'rule':'anyof'
- }]
- if draganddrop.grade(submission[0], correct_answer):
- correct = ['correct']
- else:
- correct = ['incorrect']
-
-
-`;
-
-export default dragAndDrop;
diff --git a/src/editors/data/constants/advancedOlxTemplates/index.js b/src/editors/data/constants/advancedOlxTemplates/index.js
index 8e693b5c7..16602efdb 100644
--- a/src/editors/data/constants/advancedOlxTemplates/index.js
+++ b/src/editors/data/constants/advancedOlxTemplates/index.js
@@ -1,12 +1,11 @@
import { StrictDict } from '../../../utils';
import circuitSchematic from './circuitschematic';
import customGrader from './customgrader';
-import dragAndDrop from './drag_and_drop';
import formulaResponse from './formularesponse';
import imageResponse from './imageresponse';
import jsInputResponse from './jsinput_response';
import problemWithHint from './problem_with_hint';
export default StrictDict({
- circuitSchematic, customGrader, dragAndDrop, formulaResponse, imageResponse, jsInputResponse, problemWithHint,
+ circuitSchematic, customGrader, formulaResponse, imageResponse, jsInputResponse, problemWithHint,
});
diff --git a/src/editors/data/constants/problem.js b/src/editors/data/constants/problem.js
index 2348f83bf..ecf2623f2 100644
--- a/src/editors/data/constants/problem.js
+++ b/src/editors/data/constants/problem.js
@@ -76,7 +76,6 @@ export const AdvanceProblemKeys = StrictDict({
CIRCUITSCHEMATIC: 'circuitschematic',
JSINPUT: 'jsinputresponse',
CUSTOMGRADER: 'customgrader',
- DRAGANDDROP: 'draganddrop',
IMAGE: 'imageresponse',
FORMULA: 'formularesponse',
PROBLEMWITHHINT: 'problemwithhint',
@@ -103,11 +102,6 @@ export const AdvanceProblems = StrictDict({
status: 'Provisional',
template: advancedOlxTemplates.customGrader,
},
- [AdvanceProblemKeys.DRAGANDDROP]: {
- title: 'Drag and drop (deprecated version)',
- status: 'Not supported',
- template: advancedOlxTemplates.dragAndDrop,
- },
[AdvanceProblemKeys.IMAGE]: {
title: 'Image mapped input',
status: 'Not supported',