Advance Java Report
Advance Java Report
A MICRO-PROJECT REPORT
ON
(2022-2023)
2) Course Outcomes
3) Proposed Methodology
We develop a project on Simple MCQ Quiz under the subject Advance JAVA
Programming. We make this projects for user entertainment purpose. We start the
program code with the used of import java.awt.event.* of this java package. Here
we use Swing components to create our project. For some condition expressions
we used if else statement in our program. Our Quiz consist of serval number of
MCQ we can give answer of them among provided Four options .
Pune District Education Association’s
INSTITUTE OF TECHNOLOGY, HADAPSAR, PUNE.
INDEX
Sr.no. Contents
1. Rational
2. Aim Benefits of Micro-Project
3. Course Outcomes Addressed
4. Literature Review
5. Actual Methodology Followed
6. Resources Required
7. Shill Developed/Learning outcome of Micro-Project
8. Application of Micro-Project
9. Information Description
Source Code
Output of Micro-Project
Conclusion
Pune District Education Association’s
INSTITUTE OF TECHNOLOGY, HADAPSAR, PUNE.
Micro–Project Report
“ MCQ Quiz using java”
1.0) Rational :
Java technology is widely used for web applications development. Based on the
object oriented concepts and core Java concepts, this course will equip the students
with the required knowledge and skill of object oriented programming approach
needed for the development of robust, powerful web applications. Through this
course students will get hands-on experience on GUI Technologies viz. AWT and
Swings, event handling mechanisms and network programming. The course also
gives coverage to various web applications aspects like Database
Interaction, server side components and servlets.
(INFORMATION DESCRIPTION)
• java.awt.event.*; :-
The java.awt.event package defines classes and interfaces used for
event handling in the AWT and Swing. The members of this package fall into three
categories: Events. The classes with names ending in "Event" represent specific
types of events, generated by the AWT or by one of the AWT or Swing
components.
• Javax.Swing.* ; :-
Java Swing is a part of Java Foundation Classes (JFC) that is used to create
windowbased applications. It is built on the top of AWT (Abstract Windowing
Toolkit) API and entirely written in java.
The javax.swing package provides classes for java swing API such as JButton,
JTextField, JTextArea, JRadioButton, JCheckbox, JMenu, JColorChooser etc.
• java.util.*; :-
The java.util.* package Contains the collections framework, some
internationalization support classes, a service loader, properties, random
number generation, string parsing and scanning classes, base64 encoding
and decoding, a bit array, and several miscellaneous utility classes. This
package also contains legacy collection classes and legacy date and time
classes.
Pune District Education Association’s
INSTITUTE OF TECHNOLOGY, HADAPSAR, PUNE.
SOURCE CODE :-
import java.awt.*;
import
java.awt.event.*;
import javax.swing.*;
import java.util.*;
Quiz() { initializedata();
setTitle("Quiz Program");
Pune District Education Association’s
INSTITUTE OF TECHNOLOGY, HADAPSAR, PUNE.
setDefaultCloseOperation(EXIT_ON_CLOS
E);
setSize(430, 350);
setLocation(300, 100);
setResizable(false);
Container cont = getContentPane(); cont.setLayout(null);
cont.setBackground(Color.GRAY); bg = new ButtonGroup();
choice1 = new JRadioButton("Choice1",
true); choice2 = new
JRadioButton("Choice2", false); choice3 =
new JRadioButton("Choice3", false);
choice4 = new JRadioButton("Choice4", false);
bg.add(choice1); bg.add(choice2);
bg.add(choice3); bg.add(choice4);
lblmess = new JLabel("Choose a correct
answer");
lblmess.setForeground(Color.BLUE);
lblmess.setFont(new Font("Arial", Font.BOLD,
11)); btnext = new JButton("Next");
btnext.setForeground(Color.BLUE);
btnext.addActionListener(this); panel = new
JPanel();
panel.setBackground(Color.LIGHT_GRAY);
panel.setLocation(10, 10); panel.setSize(400,
300); panel.setLayout(new GridLayout(6,
Pune District Education Association’s
INSTITUTE OF TECHNOLOGY, HADAPSAR, PUNE.
2)); panel.add(lblmess);
panel.add(choice1); panel.add(choice2);
panel.add(choice3); panel.add(choice4);
panel.add(btnext); cont.add(panel);
setVisible(true); qaid = 0;
readqa(qaid);
}
public void
actionPerformed(ActionEvent e) { if
(btnext.getText().equals("Next")) {
if (qaid < 9) { map.put(qaid,
getSelection()); qaid++;
readqa(qaid);
} else
{ map.put(qaid,
getSelection());
btnext.setText("Show answers");
}
}
else if (btnext.getText().equals("Show
answers")) { new Report();
}
}
3)
Pune District Education Association’s
INSTITUTE OF TECHNOLOGY, HADAPSAR, PUNE.
4)
CONCLUSION
The MCQ Quiz is developed using java Programming . we have use java AWT and
Swing package to create the interface of our project where we provided Ten
different java MCQ to solve and at end we have provided the answers of theses
questions and your score.