SlideShare a Scribd company logo
A
REPORT
on
ONLINE TEST APPLICATION
Submitted by
Umang Talpara
BACHELOR OF ENGINEERING
IN
COMPUTER SCIENCE & ENGINEERING
:::ABSTRACT:::
This projectis based on the online test examination model,
such as RTO exam,Quize, Entrance Exam.In this there is an
series of question thatyou have to answer,on clicking the next
button will take you to the nextquestion.At last the resultwill be
displayedby clicking on the resultbutton, and the resultwill be
displayedby the message box.
:::CODE:::
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import
javax.swing.ButtonGroup;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import
javax.swing.JOptionPane;
import
javax.swing.JRadioButton;
import javax.swing.*;
class OnlineTestextends JFrame implements ActionListener{
JLabellabel;
JRadioButtonradioButton[] = new JRadioButton[5];
JButton btnNext, btnBookmark,extra,bk[] = new JButton[9];
ButtonGroup bg;
int count = 0, current = 0, x = 1, y = 1, now =
0,z=0; int m[] = new int[10];
OnlineTest(String
s) { super(s);
label = new
JLabel(); add(label);
bg = new ButtonGroup();
for (int i = 0; i < 5; i++) {
radioButton[i] = new
JRadioButton();
add(radioButton[i]);
bg.add(radioButton[i]);
}
btnNext = new JButton("Next");
btnBookmark = new
JButton("Bookmark");extra =new
JButton();
extra.setBounds(500,40,100,20);
extra.setVisible(false);
add(extra);
btnNext.addActionListener(this);
btnBookmark.addActionListener(this);
add(btnNext);
add(btnBookmark);
set();
label.setBounds(30,40,450, 20);
radioButton[0].setBounds(50,80,200, 20);
radioButton[1].setBounds(50,110,200,20);
radioButton[2].setBounds(50,140,200, 20);
radioButton[3].setBounds(50,170,200,20);
btnNext.setBounds(100,240,100, 30);
btnBookmark.setBounds(270,240,100,30);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setLayout(null);
setLocation(250,100);
setVisible(true);
setSize(1000,1000);
}
public void actionPerformed(ActionEvent
e) { if (e.getSource()== btnNext) {
if (check())
count = count +
1;current++;
set();
if (current == 9) {
btnNext.setEnabled(false);
btnBookmark.setText("Result");
}
}
if (e.getActionCommand().equals("Bookmark")){
bk[z] = new JButton("Bookmark" + x);
bk[z].setBounds(500,20 + 40 * x, 100,30);
extra.setText("jay");
//extra.setVisible(true);
//getContentPane().add(bk);
bk[z].addActionListener(this);
getContentPane().add(bk[z]);
z++;
m[x] =
current; x++;
current++;
set();
if (current == 9)
btnBookmark.setText("Result")
; repaint();
}
for (int i = 0, y = 1; i < x; i++, y++) {
if (e.getActionCommand().equals("Bookmark" +
y)) { if (check())
count = count + 1;
now =
current;
current =
m[y]; set();
((JButton)
e.getSource()).setEnabled(false);
current = now;
}
}
if
(e.getActionCommand().equals("R
esult")){ if (check())
count = count +
1;current++;
JOptionPane.showMessageDialog(this, "correct
answers= " + count);
System.exit(0);
}
}
void set() {
radioButton[4].setSelected(true)
; if (current == 0) {
label.setText("Que1:Where is Bose Institute ?");
radioButton[0].setText("gujrat");
radioButton[1].setText("Kolkata");
radioButton[2].setText("NewDelhi");
radioButton[3].setText("Dispur");
}
if (current == 1) {
label.setText("Que2:World Tourism Day is
celebrated
on-");
radioButton[0].setText(" September 27");
radioButton[1].setText("September 12");
radioButton[2].setText("September
25");
radioButton[3].setText("September
29t");
}
if (current == 2) {
label.setText("Que3:When is the International Yoga
Day
celebrated ?");
radioButton[0].setText("June 20");
radioButton[1].setText("June 21");
radioButton[2].setText(" April 22");
radioButton[3].setText("May 31");
}
if (current == 3) {
label.setText("Que4:'Line of Blood' is a book written
by
whom?");
radioButton[1].setText("BairajKhanna");
radioButton[0].setText("Ursula Vernon");
radioButton[2].setText("AmalEI-Mohtar");
radioButton[3].setText("DikshaBasu");
}
if (current == 4) {
label.setText("Que5: .........is the first woman to head
a
public sectorbank?");
radioButton[0].setText(" Usha
Ananthasubramanyan");
radioButton[1].setText("BairajKhanna");
radioButton[2].setText("Shikha Sharma");
radioButton[3].setText("Arundhati Bhattacharya");
}
if (current == 5) {
label.setText("Que6:Indian Army celebrated the
Poonch Link-up Day on which date?");
radioButton[0].setText("November21");
radioButton[1].setText("November25");
radioButton[2].setText("November24");
radioButton[3].setText("November 23");
}
if (current == 6) {
label.setText("Que7:The first Indian State to go
wholley
organic is -?");
radioButton[0].setText(" Sikkim");
radioButton[1].setText("Meghalaya");
radioButton[2].setText("Manipur");
radioButton[3].setText("Kerala");
}
if (current == 7) {
label.setText("Que8:What is the name of Indira
Gandhi's Samadhi?");
radioButton[0].setText("Shakti Sthal");
radioButton[1].setText(" Shanti Van");
radioButton[2].setText(" Shanti Sthal");
radioButton[3].setText(" Shanti Sthal");
}
if (current == 8) {
label.setText("Que9:Dallol GeothermalField belongs
to
which country?");
radioButton[0].setText("Ethiopia");
radioButton[1].setText(" Sudan");
radioButton[2].setText("Norway");
radioButton[3].setText("Russia");
}
if (current == 9) {
label.setText("Que10:In which state living root
bridges
are found?");
radioButton[0].setText("Meghalaya");
radioButton[1].setText("Assam");
radioButton[2].setText("Manipur");
radioButton[3].setText(" Odisha");
}
}
boolean check() {
if (current == 0)
return
(radioButton[1].isSelected());if (current
== 1)
return
(radioButton[0].isSelected());if (current
== 2)
return
(radioButton[1].isSelected());if (current
== 3)
return
(radioButton[1].isSelected());if (current
== 4)
return
(radioButton[3].isSelected());if (current
== 5)
return
(radioButton[0].isSelected());if (current
== 6)
return (radioButton[1].isSelected());
if (current == 7)
return
(radioButton[2].isSelected());if (current
== 8)
return
(radioButton[0].isSelected());if (current
== 9)
return (radioButton[0].isSelected());
return false;
}
public static void main(String s[]) {
new OnlineTest("Online TestApp");
}
}
:::OUTPUT:::
Online Test App
Oue3: When is the International Yoga Day celebrated ?
June 20
June 21
’•’ Apnl22
May 31
Next BooKnJark
— O X
Online test App
Oue4: 'Line of Blood' is a book written by whom?
Ursula Vernon
. Bairaj Khanna
Annal E I-Mohtar
9 Diksha Bas u
Next Bookmark
— O X
Online Test App
Oue5: .........is thefirst wom antohead a public sector bank?
'4? U sha A nanthasu bra manyan
f /J Bairaj K hanna
fiJ Shikha Sharma
f”?• Amndhati Bhattachary a
Next Bookmark
— O X
Online Test App
Que6: Indian Army celebrated the Poonch Link-up Day on which date?
”! November 21
'! November 25
November 24
NovemDera3
Ne*+ Bookmark
— O X
: Online Test App
Oue8: Mat is thename ofIndira Gandhi's Samadhi?
q Shanti Sthal
Next Bookmark
Bookmark
Manipur
Oue7: The first Indian Statetogowholley organieis -?
OnlineTestApp
Result
Oue10: Inwhich statelivingroot bridges arefound?
Meghalay a
'•” Assam
Manipur
Ddisha
BookmarkNect
Oue9: Dallol Geothermal Fieldbelongstowhichcountry?
Ethiopia
•. Sudan
Russia
Oue10: In which state living root bridges are found?
Me ghalay d
Manipur
Odisha
Result
@UMANG TALPARA (BE/BTECH)
Mesh age
".. I .." correci answers - 2
OF

More Related Content

Recently uploaded

Heat Resistant Concrete Presentation ppt
Heat Resistant Concrete Presentation pptHeat Resistant Concrete Presentation ppt
Heat Resistant Concrete Presentation ppt
mamunhossenbd75
 
spirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptxspirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptx
Madan Karki
 
Computational Engineering IITH Presentation
Computational Engineering IITH PresentationComputational Engineering IITH Presentation
Computational Engineering IITH Presentation
co23btech11018
 
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Sinan KOZAK
 
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdfIron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
RadiNasr
 
Generative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of contentGenerative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of content
Hitesh Mohapatra
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
Aditya Rajan Patra
 
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
171ticu
 
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
ihlasbinance2003
 
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
Yasser Mahgoub
 
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.pptUnit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
KrishnaveniKrishnara1
 
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMSA SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
IJNSA Journal
 
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
University of Maribor
 
TIME DIVISION MULTIPLEXING TECHNIQUE FOR COMMUNICATION SYSTEM
TIME DIVISION MULTIPLEXING TECHNIQUE FOR COMMUNICATION SYSTEMTIME DIVISION MULTIPLEXING TECHNIQUE FOR COMMUNICATION SYSTEM
TIME DIVISION MULTIPLEXING TECHNIQUE FOR COMMUNICATION SYSTEM
HODECEDSIET
 
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECTCHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
jpsjournal1
 
Engineering Drawings Lecture Detail Drawings 2014.pdf
Engineering Drawings Lecture Detail Drawings 2014.pdfEngineering Drawings Lecture Detail Drawings 2014.pdf
Engineering Drawings Lecture Detail Drawings 2014.pdf
abbyasa1014
 
ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024
Rahul
 
Manufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptxManufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptx
Madan Karki
 
A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...
nooriasukmaningtyas
 
Eric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball play
Eric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball playEric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball play
Eric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball play
enizeyimana36
 

Recently uploaded (20)

Heat Resistant Concrete Presentation ppt
Heat Resistant Concrete Presentation pptHeat Resistant Concrete Presentation ppt
Heat Resistant Concrete Presentation ppt
 
spirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptxspirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptx
 
Computational Engineering IITH Presentation
Computational Engineering IITH PresentationComputational Engineering IITH Presentation
Computational Engineering IITH Presentation
 
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
 
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdfIron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
 
Generative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of contentGenerative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of content
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
 
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
 
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
 
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
 
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.pptUnit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
 
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMSA SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
 
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
 
TIME DIVISION MULTIPLEXING TECHNIQUE FOR COMMUNICATION SYSTEM
TIME DIVISION MULTIPLEXING TECHNIQUE FOR COMMUNICATION SYSTEMTIME DIVISION MULTIPLEXING TECHNIQUE FOR COMMUNICATION SYSTEM
TIME DIVISION MULTIPLEXING TECHNIQUE FOR COMMUNICATION SYSTEM
 
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECTCHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
 
Engineering Drawings Lecture Detail Drawings 2014.pdf
Engineering Drawings Lecture Detail Drawings 2014.pdfEngineering Drawings Lecture Detail Drawings 2014.pdf
Engineering Drawings Lecture Detail Drawings 2014.pdf
 
ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024
 
Manufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptxManufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptx
 
A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...
 
Eric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball play
Eric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball playEric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball play
Eric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball play
 

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
Christy Abraham Joy
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
MindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Online test (java)

  • 1. A REPORT on ONLINE TEST APPLICATION Submitted by Umang Talpara BACHELOR OF ENGINEERING IN COMPUTER SCIENCE & ENGINEERING
  • 2. :::ABSTRACT::: This projectis based on the online test examination model, such as RTO exam,Quize, Entrance Exam.In this there is an series of question thatyou have to answer,on clicking the next button will take you to the nextquestion.At last the resultwill be displayedby clicking on the resultbutton, and the resultwill be displayedby the message box.
  • 3. :::CODE::: import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.ButtonGroup; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JOptionPane; import javax.swing.JRadioButton; import javax.swing.*; class OnlineTestextends JFrame implements ActionListener{ JLabellabel; JRadioButtonradioButton[] = new JRadioButton[5]; JButton btnNext, btnBookmark,extra,bk[] = new JButton[9]; ButtonGroup bg; int count = 0, current = 0, x = 1, y = 1, now = 0,z=0; int m[] = new int[10];
  • 4. OnlineTest(String s) { super(s); label = new JLabel(); add(label); bg = new ButtonGroup(); for (int i = 0; i < 5; i++) { radioButton[i] = new JRadioButton(); add(radioButton[i]); bg.add(radioButton[i]); } btnNext = new JButton("Next"); btnBookmark = new JButton("Bookmark");extra =new JButton(); extra.setBounds(500,40,100,20); extra.setVisible(false); add(extra); btnNext.addActionListener(this); btnBookmark.addActionListener(this); add(btnNext); add(btnBookmark); set(); label.setBounds(30,40,450, 20);
  • 5. radioButton[0].setBounds(50,80,200, 20); radioButton[1].setBounds(50,110,200,20); radioButton[2].setBounds(50,140,200, 20); radioButton[3].setBounds(50,170,200,20); btnNext.setBounds(100,240,100, 30); btnBookmark.setBounds(270,240,100,30); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setLayout(null); setLocation(250,100); setVisible(true); setSize(1000,1000); } public void actionPerformed(ActionEvent e) { if (e.getSource()== btnNext) { if (check()) count = count + 1;current++; set(); if (current == 9) { btnNext.setEnabled(false); btnBookmark.setText("Result"); }
  • 6. } if (e.getActionCommand().equals("Bookmark")){ bk[z] = new JButton("Bookmark" + x); bk[z].setBounds(500,20 + 40 * x, 100,30); extra.setText("jay"); //extra.setVisible(true); //getContentPane().add(bk); bk[z].addActionListener(this); getContentPane().add(bk[z]); z++; m[x] = current; x++; current++; set(); if (current == 9) btnBookmark.setText("Result") ; repaint(); } for (int i = 0, y = 1; i < x; i++, y++) { if (e.getActionCommand().equals("Bookmark" + y)) { if (check()) count = count + 1;
  • 7. now = current; current = m[y]; set(); ((JButton) e.getSource()).setEnabled(false); current = now; } } if (e.getActionCommand().equals("R esult")){ if (check()) count = count + 1;current++; JOptionPane.showMessageDialog(this, "correct answers= " + count); System.exit(0); } } void set() { radioButton[4].setSelected(true) ; if (current == 0) { label.setText("Que1:Where is Bose Institute ?"); radioButton[0].setText("gujrat"); radioButton[1].setText("Kolkata");
  • 8. radioButton[2].setText("NewDelhi"); radioButton[3].setText("Dispur"); } if (current == 1) { label.setText("Que2:World Tourism Day is celebrated on-"); radioButton[0].setText(" September 27"); radioButton[1].setText("September 12"); radioButton[2].setText("September 25"); radioButton[3].setText("September 29t"); } if (current == 2) { label.setText("Que3:When is the International Yoga Day celebrated ?"); radioButton[0].setText("June 20"); radioButton[1].setText("June 21"); radioButton[2].setText(" April 22"); radioButton[3].setText("May 31"); } if (current == 3) { label.setText("Que4:'Line of Blood' is a book written by whom?"); radioButton[1].setText("BairajKhanna"); radioButton[0].setText("Ursula Vernon");
  • 9. radioButton[2].setText("AmalEI-Mohtar"); radioButton[3].setText("DikshaBasu"); } if (current == 4) { label.setText("Que5: .........is the first woman to head a public sectorbank?"); radioButton[0].setText(" Usha Ananthasubramanyan"); radioButton[1].setText("BairajKhanna"); radioButton[2].setText("Shikha Sharma"); radioButton[3].setText("Arundhati Bhattacharya"); } if (current == 5) { label.setText("Que6:Indian Army celebrated the Poonch Link-up Day on which date?"); radioButton[0].setText("November21"); radioButton[1].setText("November25"); radioButton[2].setText("November24"); radioButton[3].setText("November 23"); } if (current == 6) { label.setText("Que7:The first Indian State to go wholley organic is -?"); radioButton[0].setText(" Sikkim"); radioButton[1].setText("Meghalaya");
  • 10. radioButton[2].setText("Manipur"); radioButton[3].setText("Kerala"); } if (current == 7) { label.setText("Que8:What is the name of Indira Gandhi's Samadhi?"); radioButton[0].setText("Shakti Sthal"); radioButton[1].setText(" Shanti Van"); radioButton[2].setText(" Shanti Sthal"); radioButton[3].setText(" Shanti Sthal"); } if (current == 8) { label.setText("Que9:Dallol GeothermalField belongs to which country?"); radioButton[0].setText("Ethiopia"); radioButton[1].setText(" Sudan"); radioButton[2].setText("Norway"); radioButton[3].setText("Russia"); } if (current == 9) { label.setText("Que10:In which state living root bridges are found?"); radioButton[0].setText("Meghalaya"); radioButton[1].setText("Assam");
  • 11. radioButton[2].setText("Manipur"); radioButton[3].setText(" Odisha"); } } boolean check() { if (current == 0) return (radioButton[1].isSelected());if (current == 1) return (radioButton[0].isSelected());if (current == 2) return (radioButton[1].isSelected());if (current == 3) return (radioButton[1].isSelected());if (current == 4) return (radioButton[3].isSelected());if (current == 5) return (radioButton[0].isSelected());if (current
  • 13. if (current == 7) return (radioButton[2].isSelected());if (current == 8) return (radioButton[0].isSelected());if (current == 9) return (radioButton[0].isSelected()); return false; } public static void main(String s[]) { new OnlineTest("Online TestApp"); } }
  • 15. Online Test App Oue3: When is the International Yoga Day celebrated ? June 20 June 21 ’•’ Apnl22 May 31 Next BooKnJark — O X Online test App Oue4: 'Line of Blood' is a book written by whom? Ursula Vernon . Bairaj Khanna Annal E I-Mohtar 9 Diksha Bas u Next Bookmark — O X
  • 16. Online Test App Oue5: .........is thefirst wom antohead a public sector bank? '4? U sha A nanthasu bra manyan f /J Bairaj K hanna fiJ Shikha Sharma f”?• Amndhati Bhattachary a Next Bookmark — O X Online Test App Que6: Indian Army celebrated the Poonch Link-up Day on which date? ”! November 21 '! November 25 November 24 NovemDera3 Ne*+ Bookmark — O X
  • 17. : Online Test App Oue8: Mat is thename ofIndira Gandhi's Samadhi? q Shanti Sthal Next Bookmark Bookmark Manipur Oue7: The first Indian Statetogowholley organieis -? OnlineTestApp
  • 18. Result Oue10: Inwhich statelivingroot bridges arefound? Meghalay a '•” Assam Manipur Ddisha BookmarkNect Oue9: Dallol Geothermal Fieldbelongstowhichcountry? Ethiopia •. Sudan Russia
  • 19. Oue10: In which state living root bridges are found? Me ghalay d Manipur Odisha Result @UMANG TALPARA (BE/BTECH) Mesh age ".. I .." correci answers - 2 OF