Questions tagged [multiple-choice]

Multiple choice is a form of assessment in which respondents are asked to select the best possible answer (or answers) out of the choices from a list. The multiple choice format is most frequently used in educational testing, in market research, and in elections.

Multiple choice is a form of assessment in which respondents are asked to select the best possible answer (or answers) out of the choices from a list. The multiple choice format is most frequently used in educational testing, in market research, and in elections.

264 questions
3
votes
2 answers

Multiple choice alert dialog with custom row layout

I need to create an AlertDialog with multiple choice items but I'm having some trouble trying to set a custom layout file to the internal ListView. For single choice items I use a constructor that takes a ListAdapter as parameter and this way I can…
user1774914
3
votes
2 answers

How to use the ChoiceListInterface in Symfony 2?

I'd like to display a dynamic list of checkboxes in a form. So far, I built a form embedding a static list of checkboxes, and I created a Tag entity for different values in different languages and populated the database. I'd like to replace the…
Yako
  • 3,405
  • 9
  • 41
  • 71
3
votes
3 answers

DJANGO: Change field size of ModelMultipleChoiceField?

I was wondering how one changes the size of a ModelMultipleChoiceField? I've only seen examples of changing a CharField into a Textarea... Is this possible? Models.PY class FilterForm(forms.Form): Person =…
thedeepfield
  • 6,138
  • 25
  • 72
  • 107
2
votes
2 answers

How can I change a value based on a users selection?

I'm a beginner to Python and I'm challenging myself to make a calculator that calculates the area of shapes based on values given by the user. I'm stuck on how I can make it change the measurement based on the users selection. For example, if a user…
cursetv3
  • 21
  • 2
2
votes
3 answers

How to validate command line input from multiple choice prompt in Ruby?

I'm writing a multiple choice quiz where the user has to choose an answer by entering a letter from a to d. Each question prompt looks like this: What is the last letter in alphabet? (a) Y (b) R (c) Z (d) Q If the user enters anything else, I want…
ajay_speed
  • 79
  • 9
2
votes
2 answers

How to create MultipleChoiceField in django-filter?

I have a model Color: class Color(models.Model): color = models.CharField(max_length=32) def __str__(self): return self.color And my Product model: class Product(models.Model): ... color = models.ForeignKey('Color',…
Ihor
  • 97
  • 10
2
votes
1 answer

How to Make a Multiple Choice in Java GUI's

This program is supposed to be for someone who wants to make a reservation for a banquet hall and asks the user to answer some simple questions about the event. For the meal plan, room type, and 10 days questions, I want to just have two options…
L0k3 d20uz4
  • 67
  • 1
  • 9
2
votes
1 answer

Modify form field depending on other field in Django

I have a form including several fields. Let's say one of them is "subjects", a multiple choice selection field, and the other one is "main_subject", a single choice selection field. How should I code the views.py file in order to automatically…
Lokicor
  • 117
  • 3
  • 11
2
votes
1 answer

django Choice list (dynamic choices)

i have a choices list : CATEGORY_CHOICES = ( ("T-shirts", "T-shirts"), ("Hoodies", "Hoodies"), ("Shorts", "Shorts"), ) but i want to make this list dynamic so i can add and delete choices ,i created a new model Category what i want to do is…
NAS
  • 188
  • 11
2
votes
2 answers

Django - Choices for Models

I have been searching and looking through docs, but I want to ask and confirm for the best solution here. Trying to define model choices. 'yes, no and not sure' choice From Radio Select How would I define for Multiple Choices Simple Example: In…
DavidL
  • 1,260
  • 2
  • 17
  • 35
2
votes
0 answers

How do I have more then one parameter on a single line for parameterized jobsin jenkins?

I would like to have my parameters input taken in a horizontal order from Jenkins ui rather than going by its default nature of being vertical. Attaching the link of the exact question asked before but unresolved. issue
Anshuk Roy
  • 21
  • 2
2
votes
1 answer

How to create a multiple choice question in oTree?

I was wondering if it is possible to have a multiple choice question in otree. Something like radio button but that lets you choose more than one thing. What I'm thinking of is something like: Question: The following list of statements contains…
TEC
  • 53
  • 7
2
votes
1 answer

How to choose multiple options in a netlogo chooser?

I'm trying to choose multiple options from one chooser in netlogo. Does anyone know if that is possible and if it is how to do it?
Amber
  • 45
  • 7
2
votes
1 answer

how to set checked="checked" item in simple_list_item_multiple_choice in my list, if I want that 2 element was always checked?

private ListView LVmain; private ArrayList tasks = new ArrayList(); private ArrayAdapter adapter; protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); …
2
votes
1 answer

Symfony set data to multiple choiceType

I set symfony choiceType value from inside the controller by using this: $editForm->get('userJobTitle')->setData($job->getJobTitle()->getId()); How to do it for multiple choiceType? the following method isn't working …
Rabie Dogho
  • 51
  • 1
  • 8
1
2
3
17 18