Quiz Project
Quiz Project
Quizzer
(A Quiz Application)
A PROJECT REPORT
Submitted by
NAME
Rohit Mishra
2
BONAFIDE CERTIFICATE
Students’ Name
Signature of
Student
Rohit Mishra
Signature of Mentor
______________________
Pvt. Ltd.
Sunderpur,varanasi
ACKNOWLEDGEMENT
I take this opportunity to express my deep gratitude and most sincere thanks to my
project mentor, MR. Bharat kumar for giving most valuable suggestion, helpful
guidance and encouragement in the execution of this project work.
I would like to thank my mentor for guiding me. Last but not the least I'm grateful
to all the team members of HPE.
Rohit Mishra
(4)
Contents
Page no.
1. Introduction
*Relevance………………………………………………
………………. 5
* Problem
*Definition………………………………………………….
5
* Objective…………………………………………………
…………….. 6
2. Basic Concepts & Tools
2.1 Introduction to
Java……………………………………………….. 7-9
3. System Analysis
3.1 Feasibility
Study……………………………………………………
13-14
3.2 Existing
System………………………………………………………
14-15
3.3 Proposed
System……………………………………………………
16
4. Software requirements……………………………..
……………….. 17
5. Hardware
requirements………………………………………………
17
6. Diagram
3.1Data-flow
Diagram…………………………………………………..17
(5)
3.2 Use-case
Diagram……………………………………………………..19
7. Form Design……………………………………………………..……….
21
8. Testing
8.1 Objective………………………………….................21-22
9. Results….…………………………………..................... 27-31
12. Conclusion….........................................…………………
48
13. References…………………………………………………. 48
14. Bibliography………………………………………………………49
(6)
Introduction:
Relevance:-
Quiz Contest is an java application that has general
questions related to programming language. It has multiple choice questions with
time limit and it also calculate scores of each correct answer. It is good for students
of every age group it helps in increasing general knowledge about programming
language. Don't need register simply give any user name it will saved
automatically. The application helps the user to increase his/her knowledge.
Problem Definition:-
Quizzer is a application developed to conduct an
quiz based on time constraints. Quizzer system is accessed by entering the user
name. Before start of the quiz, the rules and regulations are displayed that includes
description of the time limit, number of questions to be answered and
scoring methods. Quiz is started by displaying one question with four options each
based on different programming language e.i. C,C++,Java ,etc. if the answer is
correct score is incremented by one and no negative marks for wrong answers . If
the time exceeds 60secs next question will come automatically after giving few
limited question's answer quiz application will finally direct you to the score page
Final score will be displayed and updated in the database with username.
Objective:
The main objective of “Quiz Contest” is to facilitatea 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 to create 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 eachquiz and generate
report with score for each quiz.
Introduction to Java:-
Java is a programming language created by James
Gosling from Sun Microsystems (Sun) in 1991. The first publicly available version
of Java (Java 1.0) was released in 1995. Sun Microsystems was acquired by the
Oracle Corporation in 2010. Over time new enhanced versions of Java have been
released. The current version of Java is Java 1.7 which is also known as Java 7.
From the Java programming language the Java platform evolved. The Java
platform allows software developers to write program code in other languages than
the Java programming language and still runs on the Java virtual machine. The
Java platform is usually associated with the Java virtual machine and the Java
core libraries.
Characteristics of Java
The target of Java is to write a program once and then run this program on multiple
operating systems. Java has the following properties:
Platform independent:-
Java programs use the Java virtual
machine as abstraction and do no access the operating system directly. This makes
Java programs highly portable. A Java program (which is standard complaint and
follows certain rules) can run unmodified on all supported platforms, e.g. Windows
or Linux.
Feasibility Study:-
The feasibility study is an evaluation and analysis of the
potential of a proposed project which is based on extensive investigation and
research to support the process of decision making. Depending on the results of the
initial investigation the survey is now expanded to a more detailed feasibility study.
Feasibility Study
Product:-
The project is a Quiz java application . It will help its users to
improve their general knowledge on programing language.
Technical Feasibility:-
The Java application will be developed using
Ecilipes IDE Studio. The team is competent in that.
Market Research:-
Market research says that this application would be
useful for the users as it could seamlessly help them for their lifestyle.
Economic Feasibility:-
The application can be developed within budget.
Alternate Solution:-
Could be a desktop system but that would not be as
portable.
Existing System:
*User has to Start by giving any user name it will be added automatically in.
*Then Welcome(user profile) will be appear userhas to choose any of one option
'Start 'or 'Exit'.
* After Clicking on Start users has to choose any one option into five option ‘c’
‘c++’ ‘java’ ‘PHP’ ‘python’ then questions will come automatically one by one
with a specific time limit.
*If user want to next question without choose any of four existing options then hit
the next button then question will be changed.
* User has to hit the submit button and each right answer will automatically count
the score.
* At the end of the Quiz it will show the score of the user.
All these findings demands new application which will reduce the manual work &
do everything automatically. Also the existing systems have some major drawbacks
which motivate us to develop new system.
Software Requirements:
Operating System: Window
Toolkit: Java Development Toolkit(JDK)
Platform : Java
Hardware Requirements:
Level 0 DFD:
Components---
▪ Linear Layout (Vertical)
▪ EditText
▪ Button
▪ CheckBox
▪ ListView
▪ ImageView
▪ AlertDialog
Testing:
Objective:-
The objective our test plan is to find and report as many bugs as
possible to improve the integrity of our program. Although exhaustive testing is not
possible, we will exercise a broad range of tests to achieve our goal. We will also
test the user friendliness of our app .The application will be used as an important
tool, but we would like to ensure that it could be run on a variety of platforms with
little impact on performance or usability.
Process Overview :-
* Identify the requirements to be tested. All test cases shall be derived using the
current Program Specification.
* Review the test data and test cases to ensure that the unit has been thoroughly
verified and that the test data and test cases are adequate to verify proper operation
of the unit.
* Identify the expected results for each test.
* Document the test case configuration, test data, and expected results.
* Document the test data, test cases, and test configuration used during the testing
process. This information shall be submitted via the Unit/System Test Report
(STR).
* Successful unit testing is required before the unit is eligible for component
integration /system testing.
Testing Process:
The diagram above outlines the Test Process approach that will be followed.
*Organize Project involves creating a System Test Plan, Schedule & Test
Approach, and assigning responsibilities.
* Signoff happens when all pre-defined exit criteria have been achieved.
* Testing Strategy :
The following outlines the types of testing that will be done for unit, integration,
and system testing. While it includes what will be tested, the specific use cases that
determine how the testing is done will be detailed in the Test Design Document.
The test cases that will be used for designing use cases is shown below .
Test Cases:
Specifications
*Input-
1) type the user name and password.
2) Logout
*Expected Output/Result-
1) Successful welcome user's profile come
2) Page exits
Tested By: Rohit mishra
Test Type- Unit Testing
Test Case Number- 2
Test Case Name- Select Subject
Test Case Description- The user should choose any option of five Options
based on subject.
Item(s) to be tested- Verification of select subject.
Specifications
*Input-
3)The user should choose any option in five(c, c++,java, PHP, python) Options
based on subject.
4)Logout
*Expected Output/Result-
*Input-
3) change the question used by next button
4) submitted for score used by submit button
*Expected Output/Result-
3) Page exits
Specifications
*Input-
3) Tab Finish button
4)Logout
*Expected Output/Result-
3) Showing Score
4) page exit
Results:
Splash Screen:
Login Screen:
Select subject page:
Question page:
Score page:
Future scope and further enhancementof the Project:
We have put an endless effort on this application& also provided room for future
expansion of this application.
Interface can be enriched later.
Selection of alarm tone are in progress.
Prescription Parameter (PP) contains the necessary information of a medicine
including its name M, the dosage size g and the amount n to be taken each
time (as multiples of the dosage size) and its therapy duration T during which
the patient should take the medicine. A picture of the medicine is also
incorporated to assist patients identifying the medicine. This parameter can be
added.
Dosage Parameter (DP) states the minimum and maximum dose sizes [dmin,
dmax] and the minimum and maximum separations [nsmin, nsmax] between
two consecutive doses. It also specifies the supply rate (B, R), which the
maximum dosage B is taken within any time interval R and the demand rate (L,
P) and which the minimum dosage L is taken in any time interval p. DP
parameter should be implemented in future days.
Code:
1)First.java
package bin.com.quiz;
import java.awt.EventQueue;
import javax.swing.JFrame;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
import java.io.IOException;
import java.awt.Font;
import java.awt.Color;
import javax.swing.UIManager;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JTextField;
import java.awt.SystemColor;
import javax.imageio.ImageIO;
import javax.swing.ImageIcon;
import javax.swing.JButton;
public First() {
initialize();
}
frmQuizzer.getContentPane().setBackground(UIManager.getColor("Button.disa
bledForeground"));
frmQuizzer.getContentPane().setLayout(null);
try {
frmQuizzer.setContentPane(new JLabel(new
ImageIcon(ImageIO.read(new File("images/learning.png")))));
} catch (IOException e) {
e.printStackTrace();
}
frmQuizzer.setIconImage(Toolkit.getDefaultToolkit().getImage("C:\\Users\\BHA
RAT KUMAR\\Downloads\\house.png"));
frmQuizzer.setTitle("Quizzer");
frmQuizzer.setBounds(100, 100, 450, 300);
frmQuizzer.setResizable(false);
frmQuizzer.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
@Override
public void actionPerformed(ActionEvent ae) {
if(ae.getSource()==btnNewButton) {
String name = textField.getText().toString();
if(name==null || name=="") {
JOptionPane.showMessageDialog(frmQuizzer,"Enter
Your Name");
}
if(name!=null && name!="") {
user = name;
frmQuizzer.dispose();
Second que =new Second();
que.setVisible(true);
}
}
if(ae.getSource()==btnExit) {
System.exit(0);
}
}
}