Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6344377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T20:37:33+00:00 2026-05-24T20:37:33+00:00

I am thinking to develop a MCQ scoring system. There will be three mode,

  • 0

I am thinking to develop a MCQ scoring system. There will be three mode, easy, intermediate and hard. Any new mode may be introduced later. Marking for each correct answer depends on mode. Every mode will have own implementation of marking system. There will be some bonus marking system, for say for three correct answer at once, bonus marks will be added to the total score. intermediate and hard mode will have negative marking system. So that’s are my basic structure.

I will use this system in an android application. I’m confused about the design pattern which one is perfect.

so if I get any code sample or structure for it, it will be nice.

Thanks in Advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T20:37:34+00:00Added an answer on May 24, 2026 at 8:37 pm

    Hmm, there seems to be multiple facets to this question; I will answer your first and primary one:

    Whenever I hear the words “There will be X of them, more to be added later”, my thoughts immediately turn to the strategy pattern (GoF, google… Easy to find some UML for that), which primarily defines an interface for an algorithm.

    In this case you would then implement 3 instances of this interface, and it wouldn’t be a problem to define and add another algorithm later – it will just use the same interface.

    I picture the method looking something like: public int markPaper(DataStructure mcq), if that helps you in any way.

    EDIT: Oh, and check out “A singular choice for Multiple choice” by Schwartzbach & Frandsen – it’s on google – The neatest way to do fair MCQ marking, and the one I have been suffering under the past year ; )

    EDIT2: Ok, so to make this a little more explicit; In your main control flow, you might have a ‘markPaper()’ method. Since we want this to be modular, we will take all of this functionality, move it into a class implementing an interface for grading algorithms. What you might be inclined to write is this:

    main(){
        ...
        if (difficulty == 1){
            [elaborate easy algorithm here...]
        else if(...){
            [slightly harder algorithm here...]
    

    and so on. Instead, make an assisting method, say mark, and pass it an instance of that algorithm instead:

    private int mark(GradingAlgorithmInterface algorithm, DataStructure paper){
        algorithm.markPaper(paper);
    }
    
    main(){
        ...
        if(difficulty == 1){
            mark(new ConcreteEasyAlgorithm(), paper);
        } else if () {...
    

    And so on. Hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

One of my new programs that I'm thinking to develop is a online radio
Thinking about a Windows-hosted build process that will periodically drop files to disk to
I'm thinking about starting to develop a plugin for AutoCAD, but I have absolutely
I'm trying to develop a system, and doing the ER diagram now, i have
I'm now thinking in develop some Windows Mobile applications in a different language, then
I was thinking in start to develop iPod applications, the thing is that I
I need to develop an ever increSing counter in C#. I am thinking about
Just thinking if it's necessary to learn ASP.net. Also, which is faster to develop?
I'm using XCode 3 to develop MAC and iPhone apps. Because I'm thinking of
We going to develop commercial application that will run on Android platform and now

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.