VerbTech/QCL Wikibook/How the Language Works

< User:VerbTech/QCL Wikibook

How the Language Works
A quiz app is any program where a quiz may take place.

Quiz apps may be desktop applications, mobile apps, or feature in a multi-user classroom setting.

We would like a quiz to be transferrable from one app to another.

So, we should have a language that is independent from the quiz app.

This is QCL (Quiz Creation Language).

QCL is written in QCL documents.

QCL documents specify a quiz formally and may be created in a text editor.

As a preview, we present a quiz followed by its QCL equivalent:

Notice how little extra information is needed to specify the internal structure of the quiz.

The goal is to make the language simple when the structure is simple, so you can begin creating quizzes straightaway.

We will call a question with its associated answer (a single line of code in the example above) a QApair.

Here is a QApair:

 Name a green fruit.;What juicy fruit is green?;;Apple;Kiwi;Grape

The part composed of 1 or more questions is called the Qpart.

Here's the Qpart of the QApair above:

 Name a green fruit.;What juicy fruit is green?

The part composed of 1 or more answers is the Apart.

Here's the Apart of the QApair above:

 Apple;Kiwi;Grape