The Artima Developer Community
Sponsored Link

C# Answers Forum
C# Shuffle Questions and Answers

1 reply on 1 page. Most recent reply: May 23, 2019 12:27 AM by Steven Lee

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Steven Lee

Posts: 2
Nickname: sunghoste
Registered: May, 2019

C# Shuffle Questions and Answers Posted: May 14, 2019 7:23 AM
Reply to this message Reply
Advertisement
I am trying to make quiz in C#.I made questions and answers and how should I shuffle them?

public void Questions()
{
string[] questions = new string[4];
label1.Text = questions[0] = "What variable is used to display whole number";
label1.Text = questions[1] = "What variable is used to show characters";
label1.Text = questions[2] = "What variable is used to display words and sentences";
label1.Text = questions[3] = "What variable is used to display decimal point values";
}
public void Answers()
{
string[] answers = new string[4];
radioButton1.Text = answers[0] = "int";
radioButton2.Text = answers[1] = "char";
radioButton3.Text = answers[2] = "string";
radioButton4.Text = answers[3] = "float";
}


Steven Lee

Posts: 2
Nickname: sunghoste
Registered: May, 2019

Re: C# Shuffle Questions and Answers Posted: May 23, 2019 12:27 AM
Reply to this message Reply
I am trying to make quiz in C#.I made questions and answers and how should I shuffle them?

public void Questions()
{
string[] questions = new string[4];
label1.Text = questions[0] = "What variable is used to display whole number";
label1.Text = questions[1] = "What variable is used to show characters";
label1.Text = questions[2] = "What variable is used to display words and sentences";
label1.Text = questions[3] = "What variable is used to display decimal point values";
}
public void Answers()
{
string[] answers = new string[4];
radioButton1.Text = answers[0] = "int";
radioButton2.Text = answers[1] = "char";
radioButton3.Text = answers[2] = "string";
radioButton4.Text = answers[3] = "float";
}


Any updates?
Thanks, https://diceus.com/hire-offshore-developers/

Flat View: This topic has 1 reply on 1 page
Topic: How to Merge Excel Cells via Spire.xls Previous Topic   Next Topic Topic: how do you load a bitmapimage in wpf?


Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2018 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use