Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. how to count the degree of an exam ?

how to count the degree of an exam ?

Scheduled Pinned Locked Moved ASP.NET
questioncsharpasp-netdatabasedata-structures
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    Hassan Amaar
    wrote on last edited by
    #1

    The problem is that I'm developing an exam system using ASP.NET. I created controls in runtime to hold question text and choices which will be retrieved from database. It worked well, now I want to count the score of the exam based on the selections from the multiple choices. So I created a Boolean column in the database in the question choices table to determine whether this choice is true or false then retrieves this column using a datatable into a Boolean array to compare the selected items in the checkboxlist with the items in this array but it didn't work well is there any other solution to count the degree of an exam base multiple or single choices

    Hassan Amaar

    E 1 Reply Last reply
    0
    • H Hassan Amaar

      The problem is that I'm developing an exam system using ASP.NET. I created controls in runtime to hold question text and choices which will be retrieved from database. It worked well, now I want to count the score of the exam based on the selections from the multiple choices. So I created a Boolean column in the database in the question choices table to determine whether this choice is true or false then retrieves this column using a datatable into a Boolean array to compare the selected items in the checkboxlist with the items in this array but it didn't work well is there any other solution to count the degree of an exam base multiple or single choices

      Hassan Amaar

      E Offline
      E Offline
      ednrgc
      wrote on last edited by
      #2

      Storing the correct answers in a list should work. Post the code for the answer checking here, and we'll see where the error occurs.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups