Embedded Questions is not saving answers.

Embedded Questions is not saving answers.

by Christian Gutierrez -
Number of replies: 11

After two last Moodle Weekly Releases, a quiz with this kind of questions shows that these questions is "Not answered" after submit.

When i active debugging, i got the Notices on Attached.

Average of ratings: -
In reply to Christian Gutierrez

Re: Embedded Questions is not saving answers.

by Pierre Pichet -

I will try to reproduce and set a tracker issue if necessary.

Incidently, have you moved your questions or the quiz, since they were created?

Pierre

In reply to Christian Gutierrez

Re: Embedded Questions is not saving answers.

by Pierre Pichet -

There was effectively a new code for grading (compare_responses function ()) that was applied 12 days ago , MDL-26714.

As your notices.txt are related to reediting the questions that gave you a bad notice, could you attach there question texts to help us identify the problem.

Thanks

Pierre

 

In reply to Pierre Pichet

Re: Embedded Questions is not saving answers.

by Christian Gutierrez -

Hi Pierre, thanks for your answer. The problem is in all embedded questions, i know that questions don't have changes because the last modified date is not set (Server is upgraded from 1.9).

I think that we can take a look to some questions (Next monday there some exams with this questions, if problem can be resolved).

See 2 questions in attached file.

PD: I'm not the teacher, i'm an administrator. shy

In reply to Christian Gutierrez

Re: Embedded Questions is not saving answers.

by Pierre Pichet -

The notices are related to a syntax problem not a bug.

LLene el espacio en blanco para obtener una afirmación verdadera:
Si $$L_{1}$$ es la recta con ecuación $$x+3y=2$$ y una ecuación en la forma general para la recta $$L_{2}$$ es $$2x+y=6$$ entonces el ángulo de $$L_{2}$$ a $$L_{1}$$ es: {:NUMERICAL:=45} grados.
---------------------
LLene los espacios en blanco para obtener una afirmación verdadera:
Sea $$L_{1}$$ la recta que pasa por el punto $$\begin{pmatrix} 2\\-5 \end{pmatrix}$$  y tiene pendiente $$-\sqrt3$$. Una ecuaci√≥n en la forma general para la recta $$L_{2}$$ que pasa por el punto $$\begin{pmatrix} 9\\-3 \end{pmatrix}$$  y tal que el √°ngulo de $$L_{1}$$ a $$L_{2}$$ es de $$105$$¬∞ es:$$x+$$({:NUMERICAL:=-1.0})$$y=$${:NUMERICAL:=12.0}

The numerical syntax should be {1:NUMERICAL:=12.8:0.1} i.e.

{grade:NUMERICAL:=goodvalue:tolerance}.

The Notice is related to the lack of tolerance value in the definition.

A default grade value of 1 and 0 as tolerance are applied.

So first modify the  questions and test the quiz.

Pierre

 

P.S. However the code should be modified. I will look at this as I am working on Cloze.

In reply to Pierre Pichet

Re: Embedded Questions is not saving answers.

by Christian Gutierrez -

Pierre, i have added grade 1 and tolerance 0 to all questions and it doesn't work. If i preview the question i don't have any problem (with or whitout changes), and before upgrade moodle, questions was working.

I was viewing syntax explanations here and it says that questions should be work with initial sintax.

In reply to Christian Gutierrez

Re: Embedded Questions is not saving answers.

by Christian Gutierrez -

Can anyone say me, how can i go back in changes to Embedded questions?

In reply to Christian Gutierrez

Re: Embedded Questions is not saving answers.

by Christian Gutierrez -

Hi i have commented the compare_responses function, and questions are working again. I keep looking what happen.

In reply to Christian Gutierrez

Re: Embedded Questions is not saving answers.

by Pierre Pichet -

"i have commented the compare_responses function,"

So that the compare_responses used is the default one.

Thanks for the info.

I will explore this and put the results in the corresponding tracker issue

Pierre

In reply to Christian Gutierrez

Re: Embedded Questions is not saving answers.

by Pierre Pichet -

Is the grading problem was specific to the 3 Cloze questions or to all Cloze questions?

Pierre

In reply to Pierre Pichet

Re: Embedded Questions is not saving answers.

by Christian Gutierrez -

Hi, the problem was in all questions.

In reply to Christian Gutierrez

Re: Embedded Questions is not saving answers.

by Pierre Pichet -

I reopen bug MDL-26714

Numerical cloze does not respond correctly i.e. the response is not seen as answered if it is the only one that is answered.

Pierre