This shows you how to create a flashcard like quiz game using a Python dictionary. It's up to you to explore the approach and make this a more meaningful game.

Member Avatar
Member Avatar
+2 forum 11

I have a problem in this code .this code is for adding question to database.please advise thanks in advance. <?php include('includes/header.html'); ?> <div class="row"> <div class="col-md-offset-2 col-md-8"> <h1>Add Quiz</h1> <form action="process_quizAdd.php" method="post"> <div class="form-group"> <label for="question">Ask Question</label> <input type="text" class="form-control" id="question" name="question" placeholder="Enter your question here"> </div> <div class="form-group"> <label for="correct_answer">Correct answer</label> <input type="text" class="form-control" id="correct_answer1" name="correct_answer1" placeholder="Correct answer 1"> </div> <div class="form-group"> <label class="sr-only" for="correct_answer2">Correct answer 2</label> <input type="text" class="form-control" id="correct_answer2" name="correct_answer2" placeholder="Correct answer 2"> </div> <div class="form-group"> <label class="sr-only" for="correct_answer2">Correct answer 2</label> <input type="text" class="form-control" id="correct_answer3" name="correct_answer3" placeholder="Correct answer 3"> </div> <div class="form-group"> <label for="wrong_answer1">Wrong Answers</label> <input type="text" …

Member Avatar
Member Avatar
+0 forum 3

Need help with the quiz problem. I want to set time limit for each question in quiz module (say 30 seconds) and after that time, the form will auto submit the question (auto submit = no option selected = unanswered). There are 3 questions, so total time limit is 90 sec (30 sec each). I'm doing this via XAMPP. I've attached the file that include the work so far or check the link https://www.dropbox.com/s/4dzlgjtjzvs48vw/quiz.rar?dl=0 Thanks

Member Avatar
Member Avatar
+0 forum 1

#QUESTION ONE person = input('Please enter your name:') print('Hello', person,'. How are you today?') #QUESTION TWO emotion = input('Please enter happy, sad or neither:') if emotion == 'happy': print('Well, it is great to hear that you are so chipper',person,'! Shall we continue?') else: print('Sorry to hear that. Hopefully we can help to cheer you up',person,'!') print('Okay, just a few more questions before we make a few recommendations on how to make your life more awesome!') #QUESTION THREE gender = input('Write M if you are a male or F if you are a female:') #QUESTION FOUR DOB = input('Please enter your …

Member Avatar
Member Avatar
+0 forum 3

My dear friends, I'm stuck in the middle of my project because I'm unable to figure out how this problem could be resolved. I have to implement a time constraint ( admin supplied ), MCQ type of quiz with a fixed structure of only 4 options which is to be extracted from the specific MySQL db table. Now the catch is 1. There would be only 1 question displayed at a time. 2. The Candidate taking the test would have 4 options i.e. to skip to the next question, or to answer this question or to go back to un …

Member Avatar
Member Avatar
+0 forum 5

Spam link removed, thread closed.

Member Avatar
Member Avatar
+0 forum 2

Hi All, This is Bhanu Teja M. I just wanted to write a online quiz application, which various people can participate in quiz from different locations. For this, i need to maintain a single screen for all users and maintain and display the same data,status across the all participents. Can any one suggest me, what type of java technlogies or frameworks or tools i can use for my application that to maintain the same status across the participent browsers and make visible the each participents action across the all participents. Thanks & Regards Bhanu Teja M.

Member Avatar
Member Avatar
+0 forum 1

Hi all. I hope I chose the forum to post in, it's an in between kind of question. I'm looking into options to develop my final year project. It's a formative assessment of a theoretical course to grasp students' understanding. The focus is on the ability of students to relate learning materials rather than the grade. Anyhow, I'm considering using Adobe Captivate and MySQL (free web hosting because will be sharing the data) for the database. I've been doing some reading but couldn't find what I wanted to know: can I export questions (and related data eg. from which chapters …

Member Avatar
Member Avatar
+0 forum 2

This is a complete js script I wrote while teaching myself js: /* The Extremely Long Compliance Quiz (TELCOQ) copyright (c) 2013 by Miki Kocic. All * rights reserved except that his program is being released under the GNU Public * Licence version 2 or later, with the version later than 2 being at your * discretion. */ // declare variables var introString = "Welcome to The Extremely Long Compliance Quiz! This \ excruciatingly endless quiz tests whether you can follow instructions."; var userPrompt = "Type in 'yes' to take the quiz or 'no' to skip taking it \ because …

Member Avatar
Member Avatar
+0 forum 6

Alright. I am a beginner and I am unable to find a solution to this problem. I am developing this quizzing application. I have built the part that allows you to create and manage questions classified by difficulty and tags. But Im not able to think of a proper quiz logic. I want a single page with question numbers and one question displayed at a time. And I want to be able to move back and forth by clicking the numbers and I should have some way of indicating the attempted questions. Then I need an option for a timer …

Member Avatar
Member Avatar
+0 forum 3

**I am doing a mini project, I need help with how I can store the scores in an array. ** import javax.swing.*; // import the swing library for I/O class fi_project { public static void main (String[] param) { questionfilm(); System.exit(0); } // END main //************************************************************ public static void questionfilm() { //* I am declaring my variables String user1 = ""; String user2 = ""; String user3 = ""; String user4 = "Alohomora"; String user5 = ""; String user6 = ""; String user7 = ""; String user8 = "Potter"; String user9 = ""; String user10 = ""; String user11 = …

Member Avatar
Member Avatar
+0 forum 1

**Bold Text Here** The included file is a code to make a quiz using javascript and radio buttons . When you finally submit , it shoudl print the question numbers for the correct answer in green and the wrong answers in red . But the code is not working properly. NEED HELP!

Member Avatar
Member Avatar
+0 forum 2

i got no idea how to correct the error,can help me? this is a chem quiz that contain 20 question but i need to random everytime 10 question,other than this,also have a calculator,& mini games [CODE]#include<stdio.h> #include<math.h> #include<stdlib.h> #include<time.h> #include<windows.h> int main (void) { int option,question,i,count,z=0; char choice,game,quit; int selection; float pressure,volume,number_of_mol,temperature; int exit; char answer1,answer2,answer3,answer4,answer5,answer6,answer7,answer8,answer9,answer10,answer11,answer12,answer13,answer14,answer15,answer16,answer17,answer18,answer19,answer20; int guess,jackpot=8; // SetConsoleTextAttribute (GetStdHandle (STD_OUTPUT_HANDLE), FOREGROUND_BLUE); printf("WELCOME TO CHEMY'S CHEMISTRY"); SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), BACKGROUND_RED BACKGROUND_INTENSITY); printf("\nMAIN MENU\n"); printf("*********\n\n"); printf("Please select option: \n"); printf("[1]CHEMISTRY QUIZ\n"); printf("[2]IDEAL GAS LAW CALCULATOR\n"); printf("[3]OPTIONAL GAME"); printf("\n\n[0]Exit\n\n"); printf("Please select your menu : "); scanf_s("%d", &option); if(option == 1) { system("cls"); printf("\n\nThis …

Member Avatar
Member Avatar
+0 forum 13

Hi, I'm open to suggestions on the following project I'm trying to complete. I will post what I have currently done but I think that I'm limited in what I can do with the code as a form can only have 1 action. [B]Problem[/B] - I have a short questionnaire that requires 5 questions to be answered. Question 1 is a text field. Questions 2-4 are radio button/single choice and question 5 is a free text box. Based on the inputs of questions 2,3 and 4 I want it to choose the most appropriate team for the player (of which …

Member Avatar
Member Avatar
+0 forum 3

I need to write a quiz program that generates random questions. My group and I determined that we would probably need to make use of the random function, so we did our research and were able to write the following program [CODE] #include<stdio.h> #include<stdlib.h> int main() { int i; int j[10]; for(i=0;i<10;i++) { j[i]=rand()%10; printf("%d \n",j[i]); } } [/CODE] However, 2 problems were encountered. We were unable to come up with a way to actually link that random number with a question so as to generate random questions & we noticed that each time the program was run, it generated …

Member Avatar
Member Avatar
+0 forum 14

can somebody help me in dealing with this project... I am making a quiz that a user can input their own set of questions..after doing a quiz other users can take it..and I don't know how to check if the user answers were right.. can you please help me? thanks! Here's my code in getting the users answer to questions.. [CODE] <html> <head> </head> <body> <form id="form1" name="form1" method="post" action="engquiz4.php"> <table width="500" border="0"> <tr> <td colspan="500"><b>Multiple Choice</b></td> </tr> <tr> <td colspan="500"><b>Choose the correct answer and press the "submit" when done.</b></td> </tr> </table> <?php $connect = mysql_connect("localhost","garry","perez")or die("can't access database"); mysql_select_db("phplogin") …

Member Avatar
Member Avatar
+0 forum 1

This is a part of my quiz program in which i ask the user to input question and 4 options and the correct option after which in new funtion i ask the quiz. but although it is asking me "option-1", its skipping the "Ques-" [CODE]int quizquestion() { cout<<"\nQues- "; cin.getline(stmt,100); cout<<"Option-1 "; cin.getline(opt1,30); cout<<"Option-2 "; cin.getline(opt2,30); cout<<"Option-3 "; cin.getline(opt3,30); cout<<"Option-4 "; cin.getline(opt4,30); cout<<"Correct Option number:"; cin>>correct; cin.ignore(numeric_limits<streamsize>::max(),'\n'); c++; return c; }[/CODE]

Member Avatar
Member Avatar
+0 forum 4

How do yo set up a quiz in which customers pay (via paypal) to enter? The winner wil receive half the earnigngs. In short I need to see the answers as well who paid. Any suggestions?

Member Avatar
Member Avatar
+0 forum 3

Hi All, I have noticed that there is another thread about this matter, but could not quite get my head around it. Basically I have to create an application which is a quiz. According to the users score it will then determine what level of skill they have. I know i could do it really easily, by having a number of labels on the form which hold the questions. Then underneath have radiobuttons with possible answers. From this then use an IF statement to add a digit into an invisble label which can tally a score of correct answers. Assign …

Member Avatar
Member Avatar
+0 forum 20

Hey guys, I have a question that I need an answer to: How do you display a person's name and score? Say, for example, a user takes a quiz and gets 80% on it. I want this information to be displayed on the side of the screen for everyone to see, so whenever a person goes to the website he can see all the scores. This way I can compare the scores between people and see who got the most correct. Please help, Thank you

Member Avatar
Member Avatar
+0 forum 1

What does this print statement produce and why? Learned it today, I still must be a newbie. [CODE]print('%0*d' % (3, 7))[/CODE]

Member Avatar
Member Avatar
+1 forum 15

Next quiz is posted as code snippet. It is quite interesting code. What it does? And where [B]in your system[/B] you already have this code? (in little different format) (If you have not follow tip in page [url]http://python.org/download/[/url])

Member Avatar
Member Avatar
+0 forum 2

I thought to post some not quite so trivial as it looks quiz for Python, to test if your brain has Python installed OK ;) Try to figure out what interpreter answers (#? lines), then check with your Python interpreter of choice: [CODE]>>> a = list(range(10)) >>> a[1:1] #? >>> a[1:1] = a[-2::-1] >>> a #? >>> [/CODE]

Member Avatar
Member Avatar
+2 forum 12

Hey I am trying to do a project on Test Engine. I need to retrieve random rows of questions from access database. I did the following code, but every time I once close and run it again, the sequence of questions is same. How can I change the sequence every time? [CODE] private void button1_Click(object sender, EventArgs e) { OleDbConnection con = new OleDbConnection(Connection.conStr); OleDbCommand cmd = new OleDbCommand("select * from dell order by Rnd(serialNumber)", con); OleDbDataAdapter adp = new OleDbDataAdapter(cmd); DataSet ds = new DataSet(); adp.Fill(ds, "new"); dataGridView1.DataSource = ds.Tables["new"]; } [/CODE]

Member Avatar
Member Avatar
+0 forum 5

why dos the hit number not show up at $A ? [CODE]hitcounter.txt<HTML><HEAD> <META name=GENERATOR content="MSHTML 8.00.7600.16722"></HEAD> <BODY>0 0</BODY></HTML>[/CODE][CODE]<HTML><HEAD><TITLE>hitcounter.php</TITLE><META content="text/html; charset=utf-8" http-equiv=Content-Type><META name=GENERATOR content="MSHTML 8.00.7600.16722"><STYLE type=text/css>BODY { FONT-FAMILY: verdana, arial, sans-serif }</STYLE><?php $count_my_page = ("hitcounter.txt"); $hits = file($count_my_page); $hits[0] ++; $fp = fopen($count_my_page , "w"); fputs($fp , "$hits[0]"); fclose($fp); echo $hits[0]; ?></HEAD><BODY> </BODY></HTML>[/CODE][CODE]<HTML><HEAD><TITLE>GAMES BOARD.php</TITLE><?php $A ={ include ("counter.php").value}; ?><META name=GENERATOR content="MSHTML 8.00.7600.16722"></HEAD><BODY> <TABLE border=1 cellSpacing=2 cellPadding=1 width="100%" bgColor=#0000ff> <TBODY><TR><TD rowSpan=4><INPUT style="WIDTH: 82px; HEIGHT: 22px" value='("$A")' size=11 name=textbox1></TD> <TD rowSpan=4 colSpan=3>xxxx <?php echo ("$A");?></TD></TR><TR></TR><TR></TR><TR></TR><META name=GENERATOR content="MSHTML 8.00.7600.16722"> </TBODY></TABLE></BODY></HTML>[/CODE] should be a quick easy point for a newbiee

Member Avatar
Member Avatar
+0 forum 1

How to create a website where a user logins to the site and takes the quiz. And each time the difficulty level should increase after clearing each level. How to put the questions and how to do. should i do it in windows application or different pages for each question. some suggest me a idea. Series of questions and a timer must run after submittting or time is over the score must be shown. how to display the questions. with what to work and how to connnect the page to that questionaire.

Member Avatar
Member Avatar
+0 forum 7

Hi there, im trying to create a quiz program in c++. I need to have an array within a struct as i need to store a question title, ten possible answers and the points that each answer is associated with any help about how to go around declaring this would be appreciated!

Member Avatar
Member Avatar
+0 forum 8

.I am creating an online quiz using PHP and MySQL. .what i want to come up with is a quiz page having a frame where the user is able to see the question and then choose from the available answers on the dropdown list. after which the user then clicks the next button where upon clicking loads the frame and then views the next question and answers. and when the user reached the last set of question the finish button will appear where upon clicking redirects the user to a result page. .i have already done this using ASP.NET but …

Member Avatar
Member Avatar
+0 forum 2

The End.