Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently January 9th, 2025, 9:21 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Show score page from randomised questions?
PostPosted: April 1st, 2008, 1:40 pm 
Offline

Joined: July 27th, 2007, 9:15 am
Posts: 8
Hi, I have designed a set of assessment questions in Opus Pro 6, at the end of the assessment the last page next question button goes to a score page which works fine (I did not use the question wizard).

However, I now need to randomise the questions, I have used the <next random> action in the goto page options, which works fine, on completion it goes back to the first page. Can anyone help with how do I now display the score page after all of the questions have been answered?

Regards
Bob Jones
Opus Pro 6


Top
 Profile  
 
 Post subject:
PostPosted: April 1st, 2008, 7:34 pm 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
Bob,

I hope others here who have developed 'learning' pubs will reply with their experience.

Meanwhile, a basic approach would be to set up a couple Publication-level variables. The main one would be a QuestionCounter. Then whenever returning to that First page, have an action that checks if that Count is complete (eg, 12 done out of 12). Then go to your results page.

(for that first page, an OnShow() trigger is an easy way to test the counter variable. Of course when each Question is answered you need to increment the Counter variable as well as tally scores.)

You will find some other ideas, and example pubs (be logged in), if you do a search here on 'random' and 'quiz' etc.

Good luck.

_________________
_good things come to those who wait(0)_


Top
 Profile  
 
 Post subject:
PostPosted: April 1st, 2008, 9:21 pm 
Offline

Joined: November 3rd, 2004, 8:12 pm
Posts: 129
Location: New Brunswick, Canada
Opus: 8.6
OS: Win 8 (ASUS) - Win 7: (ASUS)
System: Asus - Windows 7 - 8 - Intel Core 3 - 4RAM - 16RAM
Bob,
What I've used:

I have 3 Chapter:
1) Chapter one, the program opens when started
2) Chapter two, has 1 "start quiz and 100 "quizzes" page with questions
3) Chapter three, displays with the score results


I create the following variables:
<GOTO_PAGE>
<QUESTIONS_ANSWERED>
<TOTAL_NUMBER_QUESTIONS> = enter the number of questions you want answered

Chapter 1
a "Start" page with a link to the a "start quiz' page in the "Quiz" chapter

add 1 <GOTO_PAGE>
add 1 <QUESTIONS_ANSWERED>
<TOTAL_NUMBER_QUESTIONS> = enter the number of questions you want (I used 20)


Chapter: "Quiz"
In this chapter I have a start page along with 100 pages that have various questions. I use the next random page action to go to the next page, BUT only if the variable <GOTO_PAGE> is less than 20. It if equals 21 then the user is taken to the "score" page in a separate Chapter called "Score Results."

Page: "start quiz"
I have a start the quiz "Button" on this page with the following actions"

set var <GOTO_PAGE> = 0 (just to make sure var is at 0)
add 1 <GOTO_PAGE>
add 1 <QUESTIONS_ANSWERED>
<TOTAL_NUMBER_QUESTIONS> = enter the number of questions


I also have the following IF/Else variable
If
<STARTED>=yes) then
Go to Page<Next Random>
Else
Go to Page <Random>
set the variable <STARTED>=yes

On the "next random or random" quiz page :
After the users selects their answer I show a hidden button with the following actions:
Add 1 to <GOTO_PAGE> variable
Add 1 to <QUESTIONS_ANSWERED> variable

On this page I use the following If/Else
If
(GOTO_PAGE = 21) then
Go to Page "score"
Else
Go to Page <Next Random>

So the user continues to go to the next random page until the variable <GOTO_PAGE> equals 21 at which time they are taken to the score page.

Chapter: Score Results:
show the user their score

I've attached a picture showing the button actions on the quiz start page and the one used on the pages with the questions.

Hope this helps.


You do not have the required permissions to view the files attached to this post.

_________________
Leo Taylor
Win XP Home / Opus Pro 7.01 & 6.4 / P4-2.8 / 1.5 GB RAM / ATI All-in-Wonder 9600 /160GB-HD


Top
 Profile Visit website  
 
 Post subject:
PostPosted: April 2nd, 2008, 9:23 am 
Offline

Joined: July 27th, 2007, 9:15 am
Posts: 8
Lar_123 & Leo, thanks for your replies, not sure I fully understand the variables (just starting with them!).
Leo, I to have used three chapters, intro, quiz and score, so I will see if I can get your example to work.

Thank again for your help.

Bob Jones


Top
 Profile  
 
 Post subject:
PostPosted: April 2nd, 2008, 12:18 pm 
Offline

Joined: July 27th, 2007, 9:15 am
Posts: 8
Leo,

Great, I have used part of your example and it works fine.

It has also opened up greater possibilites of what I can do with Opus.


Thanks again

Bob Jones


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 77 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group