Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #87480

Re: Help me please urgently!

Path csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.015
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'test,': 0.07; 'mixed': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'separately': 0.09; 'subject:Help': 0.11; 'creates': 0.14; 'random': 0.14; '"view': 0.16; '(setting': 0.16; '>the': 0.16; 'administer': 0.16; 'class)': 0.16; 'fancy': 0.16; 'message-id:@4ax.com': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'sees': 0.16; 'student': 0.16; 'bit': 0.19; 'file,': 0.19; 'seems': 0.21; 'this?': 0.23; 'url:home': 0.24; 'fairly': 0.24; 'question': 0.24; 'class.': 0.26; 'possibly': 0.26; 'header:X -Complaints-To:1': 0.27; 'subject:please': 0.30; "i'm": 0.30; '(which': 0.31; 'code': 0.31; 'getting': 0.31; '(since': 0.31; 'file': 0.32; 'class': 0.32; 'probably': 0.32; 'figure': 0.32; 'supposed': 0.32; 'maybe': 0.34; "i'd": 0.34; 'problem': 0.35; 'classes': 0.35; 'there': 0.35; 'really': 0.36; 'charset:us- ascii': 0.36; 'should': 0.36; 'two': 0.37; 'problems': 0.38; 'saves': 0.38; 'to:addr:python-list': 0.38; 'files': 0.38; 'track': 0.38; 'previous': 0.38; 'sure': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'solve': 0.60; 'name': 0.63; 'school': 0.64; 'different': 0.65; 'taking': 0.65; 'kept': 0.65; 'sample': 0.67; 'mar': 0.68; 'book,': 0.68; 'programs,': 0.74; '2015': 0.84; 'homework': 0.84; 'programs:': 0.84; 'quiz': 0.84; 'encrypted': 0.91; 'scores': 0.91; 'received:108': 0.93
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Dennis Lee Bieber <wlfraed@ix.netcom.com>
Subject Re: Help me please urgently!
Date Sun, 15 Mar 2015 13:44:12 -0400
Organization IISS Elusive Unicorn
References <43223410-538e-4834-82d4-98ab0702ae2d@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host adsl-108-73-119-231.dsl.klmzmi.sbcglobal.net
X-Newsreader Forte Agent 6.00/32.1186
X-No-Archive YES
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.19
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.398.1426441457.21433.python-list@python.org> (permalink)
Lines 45
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1426441457 news.xs4all.nl 2870 [2001:888:2000:d::a6]:41722
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:87480

Show key headers only | View raw


On Sun, 15 Mar 2015 08:43:32 -0700 (PDT), Jenny Hale <jhale7021@gmail.com>
declaimed the following:

>Hi 
>
>How would I do this?
>The teacher wants to keep track of the scores each member of the class obtains in the quiz. There are three classes in the school and the data should be kept separately for each class.
>

	Is this supposed to just be a grade book ("track the scores"), or (as
it seems by your code) also administer the quiz. And if it IS administering
the test, is it really fair that two students would get a different set of
questions (since you are using random so much). To make the grades fairly
comparable, all students should get the same set of problems to solve
(mixing up the order is a different matter).

	Will multiple students be taking this in parallel? Then you need to
figure out some way to do shared access to the grade book(s). If
sequential, do you really want a student to respond to that "view previous
results"?

	That is my main problem with the sample code -- you have mixed both the
teacher access (setting up the grade book, reviewing results) with the
student access (taking a randomly generated quiz).

	For a homework assignment, I'm probably getting a bit overly fancy
but... I'd produce three programs:

Generate Quiz (which creates a file, possibly lightly encrypted and binary)
of the questions -- that way every student sees the same set of questions
for fairness.

Take Quiz (uses the pregenerated quiz file to present questions. Also makes
sure the current student has not already taken the quiz, saves the score,
should also be encrypted)

Teacher Review (produces a report of the scores and student names, maybe
sorted by name or grade)

	Three programs, two data files (per class unless you want to share the
question pool across all classes and just keep the scores per class)
-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
    wlfraed@ix.netcom.com    HTTP://wlfraed.home.netcom.com/

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Help me please urgently! Jenny Hale <jhale7021@gmail.com> - 2015-03-15 08:43 -0700
  Re: Help me please urgently! Chris Angelico <rosuav@gmail.com> - 2015-03-16 03:00 +1100
  Re: Help me please urgently! Ian Kelly <ian.g.kelly@gmail.com> - 2015-03-15 10:10 -0600
  Re: Help me please urgently! Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2015-03-15 13:44 -0400

csiph-web