Professional Documents
Culture Documents
DATE : __/__/____
ONLINE QUIZ
PROBLEM STATEMENT:
To develop an Online Quiz system by implementing DAA concepts.
ABSTRACT:
It is good source of interactivities among students and between the teacher and students. It is
done in order to improve student‘s comprehension levels and learning motivation. As one
of their tools, online test tools are quite effective. However, in order to use the online test
tool, a teacher is generally required a great deal of labor.
For example, a teacher needs to create quizzes and input them in the online test tool
.
In order to solve these problems, we have developed a Web-based online test system which
can create quizzes competitively and collaboratively by students for the purpose of reducing
the load required for a teacher and promoting interactions among students and between the
teacher and students.
INTRODUCTION:
PSEUDO CODE:
How to retrieve Database values into an Array in PHP?
Here is the answer for it…
Store1.php :
<?php
$dbhost = 'localhost';
$dbuser = 'tarun';
$dbname = 'quizdbase';
$connection = mysql_connect($dbhost,$dbuser,$dbpass);
if (!$connection) {
$db_select = mysql_select_db($dbname,$connection);
if (!$db_select) {
$uid = $rows['Uid'];
$username = $rows['Username'];
$totalques= $rows['Totalques'];
$answerscorrect= $rows['Answerscorrect'];
echo "$uid<br>$username<br>$totalques<br>$answerscorrect<br><br>";
?>
if ( i <= 1 ) return a
END FOR
END PROCEDURE
left = rest(left)
else
IF length(left) > 0
END IF
IF length(right) > 0
END IF
return result
END PROCEDURE
mid := floor((right-left)/2)+left
if a[mid] = value
return mid
else
Pseudo code for Printing Items in 0/1 knapsack can be written as follows:
<?php
// PHP code for Dynamic Programming based
// solution for 0-1 Knapsack problem
// Prints the items which are kept in
// a knapsack of capacity W
function printknapSack($W, &$wt, &$val, $n)
{
$K = array_fill(0, $n + 1,
array_fill(0, $W + 1, NULL));
// Build table K[][] in bottom up manner
$w = $w - $wt[$i - 1];
}
}
}
// Driver code
$val = array(60, 100, 120);
$wt = array(10, 20, 30);
$W = 50;
$n = sizeof($val);
echo"<br>";
printknapSack($W, $wt, $val, $n); ?>
//////////////////////////////////////////// THE END //////////////////////////////////////////////////
OUTPUT:
OUTPUT FOR msort.php :
CONCLUSION:
WORK DONE:
The project was successfully designed and is tested for accuracy and quality.
During this project I have accomplished all the objectives and this project meets the needs of the
organization .
The developed will be used in searching , retrieving and generating information
for the concerned requests.
GOALS :