Java Sample Report
Java Sample Report
Submitted by
R RAHUL
PAARI CG
PREMKUMAR R
MUTHUKUMARAN R
MONISH DP
the degree of
BACHELOR OF ENGINEERING
in
COMPUTER SCIENCE AND ENGINEERING
MAY 2023
APPENDIX 2
BONAFIDE CERTIFICATE
Certified that this project report “ONLINE TEST SYSTEM” is the bonafide
work of “R Rahul, Paari CG, Monish DP, Premkumar R, Muthukumaran
R”(310621104127,310621104111,310621104097,310621104100,310621104
123) who carried out the project work under my supervision. Certified further
that to the best of my knowledge the work reported herein does not form part
of any other thesis or dissertation on the basis of which a degree or award was
conferred on an earlier occasion on this or any other candidate.
SIGNATURE SIGNATURE
ABSTRACT V
1 INTRODUCTION 7
1.1 Overview of the project 7
1.2 Aim of the project 7
2 Requirement Specification 8
2.1 Functional Requirements 8
2.2 Non-Functional Requirements
8
2.2.1 Dependability 8
2.2.2 Availability
8
2.2.3 Reliability 8
2.2.4 Safety
8
2.2.5 Security 8
2.3 Details of the Software 8
2.4 Hardware Requirements 9
2.5 Software Requirements
9
3 SYSTEM IMPLEMENTATION 10
4 SNAPSHOTS 16
5 CONCLUSION 18
6 REFERENCES 19
ACKNOWLEDGEMENT
This project can be useful to practice java questions and enrich their
knowledge in the field of Computer Science and engineering.
With modern technologies available all the examinations have been made
online for the convenience of students as well and hence this can be a good
tool to practice java questions as well.
CHAPTER 1
1.1 Overview of the project
In the existing system details are maintained manually. Due to this the data
retrieved is time consuming. Due to human calculation errors occur. Even
when the data is maintained on spreadsheet inconsistency occurs as an order
might be missed or wrongly entered or twice. Data are stride an excel sheet
which takes lot of time and data may be corrupted. Here we are not using
database to store the records but we are using an array to store the records
Let us see what is there in the application: You can answer to the set of java
questions that are displayed and you can verify finally how many answers have
been answered correctly and all these have been done using Swing concepts only.
• Following are the user interface components that will be shown in our
application-
2.2.4 Safety: The ability of the system to operate without catastrophic failure.
This program is user friendly and it will never effects the system.
2.2.5 Security: The ability of the system to protect itself against accidental or
deliberate intrusion.
2.3 Details of the software
• This application was developed using Java that is mainly using concepts
of Graphics that is button, Labels and other components were used for the
creation of this application. To make it convenient for users bookmark has
been added so that they can revisit the unattempted questions.
• SOFTWARE REQUIREMENTS:
• Operating system : Windows 10.
• Coding Language : JAVA
CHAPTER 4
IMPLEMENTATION
To implement the Current system we have used different functions of our project which are as
follows:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
if(e.getActionCommand().equals("Result"))
{
if(check())
count=count+1;
current++;
//System.out.println("correct ans="+count);
JOptionPane.showMessageDialog(this,"correct ans="+count);
System.exit(0);
}
}
void set()
{
jb[4].setSelected(true);
if(current==0)
{
l.setText("Que1: Which one among these is not a primitive datatype?");
jb[0].setText("int");jb[1].setText("Float");jb[2].setText("boolean");jb[3].setText("char");
}
if(current==1)
{
l.setText("Que2: Which class is available to all the class automatically?");
jb[0].setText("Swing");jb[1].setText("Applet");jb[2].setText("Object");jb[3].setText("ActionEvent");
}
if(current==2)
{
l.setText("Que3: Which package is directly available to our class without importing it?");
jb[0].setText("swing");jb[1].setText("applet");jb[2].setText("net");jb[3].setText("lang");
}
if(current==3)
{
l.setText("Que4: String class is defined in which package?");
jb[0].setText("lang");jb[1].setText("Swing");jb[2].setText("Applet");jb[3].setText("awt");
}
if(current==4)
{
l.setText("Que5: Which institute is best for java coaching?");
jb[0].setText("Utek");jb[1].setText("Aptech");jb[2].setText("SSS IT");jb[3].setText("jtek");
}
if(current==5)
{
l.setText("Que6: Which one among these is not a keyword?");
jb[0].setText("class");jb[1].setText("int");jb[2].setText("get");jb[3].setText("if");
}
if(current==6)
{
l.setText("Que7: Which one among these is not a class? ");
jb[0].setText("Swing");jb[1].setText("Actionperformed");jb[2].setText("ActionEvent");
jb[3].setText("Button");
}
if(current==7)
{
l.setText("Que8: which one among these is not a function of Object class?");
jb[0].setText("toString");jb[1].setText("finalize");jb[2].setText("equals");
jb[3].setText("getDocumentBase");
}
if(current==8)
{
l.setText("Que9: which function is not present in Applet class?");
jb[0].setText("init");jb[1].setText("main");jb[2].setText("start");jb[3].setText("destroy");
}
if(current==9)
{
l.setText("Que10: Which one among these is not a valid component?");
jb[0].setText("JButton");jb[1].setText("JList");jb[2].setText("JButtonGroup");
jb[3].setText("JTextArea");
}
l.setBounds(30,40,450,20);
for(int i=0,j=0;i<=90;i+=30,j++)
jb[j].setBounds(50,80+i,200,20);
}
boolean check()
{
if(current==0)
return(jb[1].isSelected());
if(current==1)
return(jb[2].isSelected());
if(current==2)
return(jb[3].isSelected());
if(current==3)
return(jb[0].isSelected());
if(current==4)
return(jb[2].isSelected());
if(current==5)
return(jb[2].isSelected());
if(current==6)
return(jb[1].isSelected());
if(current==7)
return(jb[3].isSelected());
if(current==8)
return(jb[1].isSelected());
if(current==9)
return(jb[2].isSelected());
return false;
}
public static void main(String s[])
{
new OnlineTest("Online Test Of Java");
}
}
CHAPTER 5
SNAPSHOTS
CHAPTER 6
CONCLUSION
The development of the project is not an easy process as it involves lot of challenges indifferent
stages of software analysis, design, coding and testing. Having understood the requirements
properly and implementing the solutions as per the expectation as brought to the closure of the
project. We have tried our best to make this project very realistic, so that the user does not face
any trouble when switching over from any real life to this highly useful one.
CHAPTER 7
REFERNCES:
Websites:
www.Github.com
javatpoint.com
www.Youtube.com