Project Hard Copy Pdf-1
Project Hard Copy Pdf-1
Project Report
On
__________________Quiz Application______________
SUBMITTED BY-
Tamboli Faijan Amir
( Roll No. 57)
(Exam Seat No. )
CHAPTER 1 : INTRODUCTION
1.1 Aim and Objective
1.2 Purpose of the System
1.3 Scope Of the System
1.4 Description
Chapter 6 : Conclusion
6.1 Conclusion
6.1.1SignificanceoftheSystem
6.2 LimitationsoftheSystem
6.3 FutureScopeoftheProject
Chapter 1
Introduction
1.1 Aim and Objective:
Aim:
“Our aim is to develop an application for the users in which a user can attempt any number of
quizzes related to his/her choice.”
Objective:
The main objective of “Quiz Application” is to facilitate a user friendly environment for all users
and reduces the manual effort. In past days quiz is conducted manually but in further resolution
of the technology we are able to generate the score and pose the queries automatically. The
functional requirements include creating users that are going to participate in the quiz, automatic
score and report generation and administrative tasks like add, delete, update for admin privilege
users. In this application, all the permissions lies with the administrator i.e., specifying the details
of the quiz with checking result will show to interviewee or not, addition of question and
answers, marks for each question, Set timer for each quiz and generate report with score for each
quiz.
1.2 Purpose :
This web application provides facility to Play online quiz and practice Grammar,
Aptitude, and G.K. It provides a good platform, where a student not only judges there
knowledge/skill but also they can improve knowledge/skill at the same time
1.3 Scope :
The Scope of this project is very broad in terms of gaining knowledge and sharing
knowledge among world.
Few points are:-
• Can be used anywhere any time as it is a web based application.
• This application will be used in educational institutions as well as in corporate
world.
1.4 Description :
Firstly, we have to make interfaces for Home Page, Login Page, Questions Attempting forum,
Result Page, & Profile of user. These all pages have connectivity with the server and database.
So, that it can work properly. Currently, there are websites which only provide limited number of
quizzes related to different domain. Many websites do not have a single platform for quizzes
related to technical, G.K, Aptitude, Games, etc. And there is not a website where the users can
upload his/her questions and answers for the others. We have to develop an application which
can resolve all of the above problems. By this user can gain knowledge, can solve his/her query and
spread his/her knowledge among the world.
Chapter 2
There are so many Projects are available on Quiz Application . There are as follow –
➢ Quiz Up
Combining trivia and a social network, Quiz Up invites you to choose from more than 1,200
topics, take part in challenges and illustrated quizzes and post about your interests. You can
play against friends or go up against millions of the platform‟s users.
➢ Heads Up!
Suitable for all the family, this game sees players guess words/names/titles, which may
include celebrities, characters, movies, books and songs, which are described or acted out by
their friends. Just think of it as charades for the smartphone generation.
➢ Popcorn Trivia
Test out your knowledge of the silver screen with this addictive movie trivia app. Questions,
based on classic films, blockbusters and fan favorites, span picture rounds and multiple choices.
Each question is followed with an interesting fact. Play solo or against others.
2. RAM 2 GB
➢ Software Requirement:
Aside from a Computer and internet connection, most of the tools you need to build an
Application are Software Program. Some of which may already be on your computer.
S.NO NAME SOFTWARE
1. Platform Windows 7
The Classical Life Cycle or waterfall Process Model was the first process model to present a
sequential framework, describing basic stages that are mandatory for a successful software
development model. It formed the basis for most software development standards and consists
of the following phases: Requirement analysis, design, coding, testing, and maintenance.
• Simple goal.
• Simple to understand and use.
• Clearly defined stages.
• Easy to arrange tasks.
• Process and result are well documented.
• Customers / end users already know about it.
• Easy to manage.
• Waterfall model faced “Inflexible point solution” which meant even small amendments
in the design were difficult to incorporate later design phase.
• As the requirement were froze before moving to the design phase, using the incomplete
set of requirement, a complete design was worked amendments In case of a large
project, completing a phase and then moving back to reconstruct the same phase,
incurred a large overhead.
• Once a phase is done, it is not repeated again that is movement in the waterfall goes one
to the next and the vice versa is not supported, deadlines are difficult to meet I case of
large projects.
Implementation
Figure 2: ER Diagram
3.3 UML Diagrams
3.3.1 Use Case Diagram :
To model a system, the most important aspect is to capture the dynamic behavior. Dynamic
behavior means the behavior of the system when it is running/operating. Only static behavior
is not sufficient to model a system; rather dynamic behavior is more important than static
behavior. In UML, there are five diagrams available to model the dynamic nature and use case
diagrams are one of them. A use case diagram is a graphical depiction of a user's possible
interactions with a system. A use case diagram shows various use cases and different types of
users the system has and will often be accompanied by other types of diagrams as well. A use
case diagram is used to represent the dynamic behavior of a system. It encapsulates the
system‟s functionality by incorporating use cases, actors and their relationships. Use case
diagrams consist of actors, use cases and their relationships. The diagram is used to model the
system/subsystem of an application. A single use case diagram captures a particular
functionality of a system. Hence to model the entire system, a number of use case diagrams are
used.
The purpose of a use case diagram is to capture the dynamic aspect of a system.
● Purpose The main purpose of use case diagrams is to portray the dynamic aspect of a
system.
➔ It recognizes the internal as well as external factors that influence the system.
Use case diagrams are used to gather the requirements of a system including internal and
external influences. These requirements are mostly design requirements. Hence, when a system
is analyzed to gather its functionalities, use cases are prepared and actors are identified. When
the initial task is complete, use case diagrams are modelled to present the outside view.
● See how objects and components interact with each other to complete a process.
Login :
package quiz.application;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
JTextField tfname;
Login() {
getContentPane().setBackground(Color.WHITE);
setLayout(null);
add(image);
add(heading);
add(name);
tfname = new JTextField();
add(tfname);
rules.setForeground(Color.WHITE);
rules.addActionListener(this);
add(rules);
back.setForeground(Color.WHITE);
back.addActionListener(this);
add(back);
setSize(1200, 500);
setLocation(200, 150);
setVisible(true);
if (ae.getSource() == rules) {
setVisible(false);
new Rules(name);
setVisible(false);
new Login();
}
Rules :
package quiz.application;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
String name;
Rules(String name) {
this.name = name;
getContentPane().setBackground(Color.WHITE);
setLayout(null);
add(heading);
rules.setText(
"<html>"+
"1. Users may need to register with accurate information to participate in the quiz." + "<br><br>" +
"3. For every correct answer you will get 10 points." + "<br><br>" +
"6. If You not Submit the quiz, it will be automatically Submited." + "<br><br>" +
"7. Cheating, use of external resources, or any form of dishonesty during the quiz is strictly prohibited." + "<br><br>" +
"<html>"
);
add(rules);
back.setForeground(Color.WHITE);
back.addActionListener(this);
add(back);
start.setForeground(Color.WHITE);
start.addActionListener(this);
add(start);
setSize(800, 650);
setLocation(350, 100);
setVisible(true);
if (ae.getSource() == start) {
setVisible(false);
new Quiz(name);
} else {
setVisible(false);
new Login();
new Rules("User");
}
Quiz :
package quiz.application;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
ButtonGroup groupoptions;
String name;
Quiz(String name) {
this.name = name;
getContentPane().setBackground(Color.WHITE);
setLayout(null);
add(image);
add(qno);
question = new JLabel();
add(question);
questions[0][0] = "Which is used to find and fix bugs in the Java programs.?";
questions[0][1] = "JVM";
questions[0][2] = "JDB";
questions[0][3] = "JDK";
questions[0][4] = "JRE";
questions[1][0] = "What is the return type of the hashCode() method in the Object class?";
questions[1][1] = "int";
questions[1][2] = "Object";
questions[1][3] = "long";
questions[1][4] = "void";
questions[4][0] = "In which memory a String is stored, when we create a string using new operator?";
questions[4][1] = "Stack";
questions[6][1] = "import";
questions[6][2] = "package";
questions[6][3] = "extends";
questions[6][4] = "export";
questions[8][1] = "java.lang.StringBuilder";
questions[8][2] = "java.lang.Short";
questions[8][3] = "java.lang.Byte";
questions[8][4] = "java.lang.String";
questions[9][0] = "Which of the following option leads to the portability and security of Java?";
questions[9][2] = "The applet makes the Java code secure and portable";
answers[0][1] = "JDB";
answers[1][1] = "int";
answers[6][1] = "import";
answers[8][1] = "java.lang.StringBuilder";
opt1.setBackground(Color.WHITE);
add(opt1);
opt2.setBackground(Color.WHITE);
add(opt2);
opt3.setBackground(Color.WHITE);
add(opt3);
opt4.setBackground(Color.WHITE);
add(opt4);
groupoptions.add(opt1);
groupoptions.add(opt2);
groupoptions.add(opt3);
groupoptions.add(opt4);
next.setForeground(Color.WHITE);
next.addActionListener(this);
add(next);
lifeline = new JButton("50-50 Lifeline");
lifeline.setForeground(Color.WHITE);
lifeline.addActionListener(this);
add(lifeline);
submit.setForeground(Color.WHITE);
submit.addActionListener(this);
submit.setEnabled(false);
add(submit);
start(count);
setVisible(true);
if (ae.getSource() == next) {
repaint();
opt1.setEnabled(true);
opt2.setEnabled(true);
opt3.setEnabled(true);
opt4.setEnabled(true);
ans_given = 1;
if (groupoptions.getSelection() == null) {
useranswers[count][0] = "";
} else {
useranswers[count][0] = groupoptions.getSelection().getActionCommand();
}
if (count == 8) {
next.setEnabled(false);
submit.setEnabled(true);
count++;
start(count);
opt2.setEnabled(false);
opt3.setEnabled(false);
} else {
opt1.setEnabled(false);
opt4.setEnabled(false);
lifeline.setEnabled(false);
ans_given = 1;
if (groupoptions.getSelection() == null) {
useranswers[count][0] = "";
} else {
useranswers[count][0] = groupoptions.getSelection().getActionCommand();
if (useranswers[i][0].equals(answers[i][1])) {
score += 10;
} else {
score += 0;
setVisible(false);
super.paint(g);
String time = "Time left - " + timer + " seconds"; // 15
g.setColor(Color.RED);
if (timer > 0) {
} else {
timer--; // 14
try {
Thread.sleep(1000);
repaint();
} catch (Exception e) {
e.printStackTrace();
if (ans_given == 1) {
ans_given = 0;
timer = 15;
timer = 15;
opt1.setEnabled(true);
opt2.setEnabled(true);
opt3.setEnabled(true);
opt4.setEnabled(true);
if (count == 8) {
next.setEnabled(false);
submit.setEnabled(true);
if (groupoptions.getSelection() == null) {
useranswers[count][0] = "";
} else {
useranswers[count][0] = groupoptions.getSelection().getActionCommand();
if (useranswers[i][0].equals(answers[i][1])) {
score += 10;
} else {
score += 0;
setVisible(false);
if (groupoptions.getSelection() == null) {
useranswers[count][0] = "";
} else {
useranswers[count][0] = groupoptions.getSelection().getActionCommand();
count++; // 0 // 1
start(count);
question.setText(questions[count][0]);
opt1.setText(questions[count][1]);
opt1.setActionCommand(questions[count][1]);
opt2.setText(questions[count][2]);
opt2.setActionCommand(questions[count][2]);
opt3.setText(questions[count][3]);
opt3.setActionCommand(questions[count][3]);
opt4.setText(questions[count][4]);
opt4.setActionCommand(questions[count][4]);
groupoptions.clearSelection();
new Quiz("User");
Score :
package quiz.application;
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
getContentPane().setBackground(Color.WHITE);
setLayout(null);
add(image);
JLabel heading = new JLabel("Thankyou " + name + " for playing Simple Minds");
add(heading);
add(lblscore);
submit.setForeground(Color.WHITE);
submit.addActionListener(this);
add(submit);
setVisible(true);
setVisible(false);
new Login();
Component Testing : Where each and every components related to the software project is
tested.
System Testing : The testing implemented on overall software project after component
integration is system testing.
Acceptance Testing : It is performed after software installation in user environment with data
supplied by customers.
Unit test depends upon the language on which the project is developed. Unit tests
ensur that each unique path of the project performs accurately to the documented
specifications and contains clearly defined inputa and expected results. Unit tests are
typically written and run by software developers to ensure that code meets its design and
behaves as intended.
• The admin needs to be regularly be in contact with other users for any update in the
user’s information.
• We want to implement a concept where user itself can add question for others.
• We want to implement a concept where the user can solve any query related to each
question at that time only.
• We also want to implement a concept where every user can see profile of other user.
• The Scope of this project is very broad in terms of gaining knowledge and sharing
knowledge among world.
• Can be used anywhere any time as it is a application.
• This application will be used in educational institutions as well as in corporate world.