Giter Site home page Giter Site logo

ios-quizkit's Introduction

iOS-Quizkit

iOS-Quizkit is an Objective-C API for creating applications with quiz and test features. For flexibility, the API focuses completely on the model layer and makes no attempt to offer a UI solution.

Included is a quick sample app with the library integrated. It provides an example of how the API might be integrated into an application.

Note: The sample app is not complete and does not work as expected :)

Features:

  • Multiple choice questions
  • Open response questions with optional Levenshtein distance approximation
  • True/False questions
  • Full NSCodor support for quizzes, questions, and sessions.
  • Load quizzes from user created Plists and JSON.
  • Optional User Data on most structures.
  • Automatic or custom scoring
  • Retroactive session grading
// Load Quiz from user plist
[ISQuizParser quizFromContentsOfPlist:...];

// Load Quiz from JSON file
[ISQuizParser quizFromContentsOfJSON:...];

// Load Quiz from bundle
[ISQuizParser quizNamed:...];
// Start a new quiz session
ISSession* session = [ISSession session];
[session start:quiz];

// Submit answers
[session setResponse:[ISOpenQuestionResponse responseWithResponse:...] atIndex:0];
[session setResponse:[ISTrueFalseQuestionResponse responseWithResponse:...] atIndex:1];

[session stop];

// Grading
ISGradingResult* result = [quiz gradeSession:session];
NSLog(@"Score: %i/%i", result.points, result.pointsPossible);

ios-quizkit's People

Contributors

justinmeiners avatar

Watchers

James Cloos avatar Ravindra Kishan avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.