Changing the response options in a dropdown list

marcway shared this question 3 months ago
Answered

Hello, everyone,

Please help me with the following problem:

1- I created a drop down list, called list1 = {"Choose an option:", "2x", "3x", "4x", "5x"}.

2- Therefore, list1 has 5 elements.

3- Consider that the correct answer is "4x".

4- I would like the order of the options to be changed for each student who comes to perform the exercise, without using the random function().

Is that possible?

Thank you very much, Marcelo.

Comments (7)

photo
1

Hello,


perhaps, (in french Unir() et Mélangée() > Joint ? Shuffle)


lista1=Unir({{"Escolha uma opção:"}, Mélangée({"2x", "3x", "4x", "5x"})})

photo
1

Hi, Professor Noel,


Thanks a lot for your help!


1- I was able to unite the lists, but I couldn't change the order of the alternatives

2- I'd like that:


for Student A >> order of alternatives: "3x" "5x" "2x" "4x"

for Student B >> order of alternatives: "5x" "3x" "4x" "2x"

for Student C >> order of alternatives: "4x" "2x" "3x" "5x"

for Student D >> order of alternatives: "2x" "4x" "5x" "3x"


Thank you very much, Marcelo.


Bonjour, professeur Noel,


Merci beaucoup pour votre aide !


1- J'ai pu unifier les listes, mais je n'ai pas pu changer l'ordre des alternatives

2- J'aimerais bien :


pour l'étudiant A >> ordre des alternatives : "3x" "5x" "2x" "4x"

pour l'étudiant B >> ordre des alternatives : "5x" "3x" "4x" "2x"

pour l'étudiant C >> ordre des alternatives : "4x" "2x" "3x" "5x"

pour l'étudiant D >> ordre des alternatives : "2x" "4x" "5x" "3x"


Merci beaucoup, Marcelo.

photo
photo
1

Noel,

However, it remains to set up the list as a drop-down.

photo
1

here's a proposition, using things Noel already proposed: There's a list with a blank, and a list l1=l1=Shuffle({"2x","3x","4x","5x"}). Combining these two gives you a list, always starting with a blank, proceeded by the shuffled options.

Now you can check the index of "4x" and the chosen index in the dropdown list to control the answer, only showing 'wrong' if the chosen option isn't the blank one. This blank option prevents to show the right solution from the start. The button resets the list to blank and shuffles the rest of the list.

1459076067e4bc6878226e4eb300cc41

chris

photo
1

Hello professor Ccambre, 
Thank you very much for the precise explanations and guidance!
 Worked perfectly! 
I thought it was cool, the Applet send the right answer and the wrong answer message. 
Thank you! Marcelo.

photo
photo
1

perhaps

photo
1

Bonjour professeur Noel, 
Merci beaucoup pour les conseils et la soumission de la construction. Comme toujours, ils m'aident beaucoup! J'ai trouvé ça marrant car la commande Mélangée, en portugais c'est "embaralhar". 
Je ne connaissais pas cette commande Geogebra. 
Merci beaucoup, Marcelo.

photo
© 2020 International GeoGebra Institute