<?php
	error_reporting(-1);

class Question 
{
	public $text;
	public $points = 5;
	public $answers;
	public $correctAnswer;
}

function createQuestions()
{
    $questions = array();
// Question 1

$q = new Question;
$q->text = "";
$q->points = 0;
$q->answers = array();
$q->correctAnswer = '';

$questions[] = $q;


$q1 = new Question;
$q1->text = "Which is Boat?";
$q1->points = 10;
$q1->answers = array ('a' => 'Hirio', 'b' => 'Sorio', 'c' => 'Akagi', 'd' => 'Kaga');
$q1->correctAnswer = 'b';

// Question 2
$q2 = new Question;
$q2->text = "Which city is capital of England?";
$q2->points = 5;
$q2->answers = array ('a' => 'London', 'b' => 'Moscow', 'c' => 'Tokyo', 'd' => 'Berlin');
$q2->correctAnswer = 'a';

// Question 3
$q3 = new Question;
$q3->text = "Who is Einstein?";
$q3->points = 30;
$q3->answers = array ('a' => 'Singer', 'b' => 'Politic', 'c' => 'Gay', 'd' => 'The Scientist');
$q3->correctAnswer = 'd';

return $questions;
}


?>