Moodle is representing grades 15% instead of showing it 100% - moodle

First of all I am brand new to Moodle. We have a SCORM course that we imported in Moodle. The course have 15 questions in the end. If you answer all 15 questions correctly then it means your score is 100%. But when we complete the course the info tab shows 15% instead of 100%.
What configuration do I make that Grade for attempt and Grade reported show 100% instead of 15% ?
Thanks
**********EDIT*************************
Actually we have two courses. For one course it shows 100% and for other course it is showing 15%. What is happening for course showing 100%, it send cmi.core.score.raw 100 and cmi.core.score.max 100. Here is the screen shot
But for other course if all questions are answer right then it setscmi.core.score.raw 15 and cmi.core.score.max 15. And moodle shows 15%. But if 4 questions are answer right right then it sets cmi.core.score.raw 4 and cmi.core.score.max 15.
For 4 answers right
and finally this is the result of moodle
So I think we have to set actual score as cmi.core.score.raw and cmi.core.score.max. In this way moodle will show the correct percentages. like in case of 4 answers right 27% and incase of all right 100%.
I don't know if there is any settings for this in moodle. These are my findings till yet.
Thanks

Edit your scorm activity setting and go to grade setting, and change maximum grade 100 to 15. Since you have 15 questions and each question is sending 1 score to lms, you have to change maximum grade setting according to score points you are sending to lms by scorm.

Related

Replacement subjects stop for no reason in Anylogic

I am having a problem keeping my Gilt Replacement Rate slider continuing to add new animals to my model. I have added in a giltQuarantine delay of 8 weeks just after the source block, which helps to visualize how the gilt replacement rate is working.
Everything is working, initially; however, after several weeks, the giltQuarantine delay drops to
0, and no new gilts enter the herd. The Gilt Replacement Rate adds the desired amount to the model, each week, with no stop time listed.
At around 30 weeks, the number of agents in the giltQuarantine delay begins to
decline and finally becomes 0, while the number of sows in the system is only 167. It should be steadily increasing to 1000 sows.
I cannot see why this is happening, as I should have a consistent supply of gilts
entering the herd each week, which the variable giltReplacement says is happening (see Model running at 54 weeks (screenshot 4)).
I also tried increasing the Gilt Replacement Rate, which worked for several weeks,
but then also declined as the number of sows in the system reached 1024. I want my herd size to remain stable at 1000.
Is there any reason that would be causing this decline in replacement animals?
Probably because you limit the total number of arrivals in enterHerd to breedingHerd. Remove the limit and test it.
Also, you can see current rates and other charactistics of flow chart blocks by clicking on them at runtime. Maybe that helps you pinpoint the issue further.
if nothing works, simplify your setup. It is already fairly complex. If you run into this issue now without knowing what causes it, it shows that you do not follow a good modelling approach (add 1 tiny feature, test everything, repeat) :)

Some users unable to pass a test

We have an installation of Moodle with several courses and users.
Recently we have reported that at least one user cannot pass an exam. He retried several times and always obtains 0 score with message:
Results Your Score: 0% (0 points)
What is almost impossible because the quiz has 25 questions and many of them are True/False type
I tried to change the Auto Save Delay option to 30 seconds to save the questions while are responded but it does not work.
Any help will be appreciated

How should modified pages be written out to secondary memory using Page Buffering?

I am studying for my final OS exam and am currently stuck in a question:
Assume a system uses demand paging as its fetch policy.
The resident size is 2 pages.
Replacement policy is Least Recently Used (LRU).
Initial free frame list: 10, 20. 30, 40, 50
Assume a program runs with the following sequence of page references:
3(read), 2(read), 3(write), 1(write), 1(write), 0(write), 3(read)
I am asked to show the final contents of the free frame list, modified list, and the page table.
Here is the model answer.
This is what I managed to do.
The final Resident Set is correct, but the free frame list and the modified list are not. I just cannot see how the modified list does not contain page number 0 (as in it got written to memory), while page number 1 was not written even though it was referenced before it.
Any help would be appreciated.
Why do you recycle 3(10) to the free list in step 4? It was the least recently used (and is dirty) so you would want to keep it, and get rid of 2(20). That appears to be what the model answer is based on.

Popularity of each wikipedia article

I would like to store a list of all en.wikipedia articles in my database. For each article I want to store the pageid, title and the popularity. I thought about using the view count (over the last month) as a measurement for popularity but if that is not possible, I could imagine going for something else (maybe use the number of revisions). I'm aware of http://dumps.wikimedia.org/enwiki/latest/ and that I can get a full list of articles from there (current count 36508337). However, I can not find a clever way to get the view count for each article.
// Updates, Edits, ...
The suggested duplicate does not help me because
a) I was looking for a popularity measurement. The answer to the other questions just states that it is not possible to get the number of watchers for a page, which is fine with me.
b) There is no answer there that gives me the page views (or any other metric) for every page.
Okay I'm finally done. Here is what I did:
I found http://dumps.wikimedia.org/other/pagecounts-ez/ which provides page views per month. This seems promising but they don't mention the pageid so what I'm doing is getting a list of all articles from http://dumps.wikimedia.org/enwiki/latest/, create a mapping name->pageid and then parse the pagecount dump. This takes about 30 minutes, here are some statistics:
68% of the articles in the page count file do not exist in the latest dump. This is probably due to some users linking, for example, Misfits_(TV_series) while other link to Misfits_(tv_series) and even stuff like Misfits_%28TV_series%29... I did not bother with those because my program already took long enough to run.
The top 3 pages are:
2.1. Front page with 639 million views (in the last month)
2.2. Malware with 8.5 million views
2.3. Falcon 9 v1.1 with 4.7 million views (cool!)
I made a histogram for the number of pages with a certain view count, here it is:
I also plotted the number of pages I would have to deal with when I disregard all articles below a certain view count. Here it is:

Random pictures in Zend

So, I'm quiet new to Zend Framework and stackoverflow (although I read a lot here), so please be gentle!
What I'm trying to do is a digital version of an IAPS test (rate pictures for their arrousal and feeling). I have three sets of pictures and each set contains 72 pictures. Now, if a person starts the online test, a set should be randomly assigned (e.g. set 1 to person A).
Further, each picture in the set should be randomly presented. After the picture is presented, the person has to rate the picture twice (rating-scale 1 to 3, saved into a database). The whole process of presenting the image and the two rating should be limited by 12 seconds.
It looks like this:
[SET 1] & [SET2] & [SET3]
Take random set (note: only one set should be presented)
[PIC 1] & [PIC 2] & [PIC3] & ...
Take random pictures (note: all 72 pictures should be presented in a random order)
[PIC 1] -> Rating 1 -> Rating 2
|................12 seconds ..............|
I'm not sure if this is even possible to code with Zend. I was thinking to use Zend_Session to store the ratings in the session and save it to a database at the end, but I'm not sure if this is the best method (security issues?). Even more headaches causes me the limitation of 12 seconds for the presentation of the picture and the two ratings.
I'd be glad to hear ideas and thoughts.
ps: I'm using Zend Framework Version 1.11.12
edit: Just took out the euqually distrubuted sets. Rule of great numbers says that they will be distributed equally with a great sample...