AJP Report
AJP Report
Micro-Project Report
On
Quiz App
Submitted To
MSBTE
In Partial Fulfilment of Requirement of Diploma Of
Computer Engineering
Under I Scheme
Submitted By
Ms Gawandi T.V.
Seal of
Institution
INDEX
2. Introduction 1
5. Technology Used 6
7. Output 10-11
8. Conclusion 12
9. Reference 13
1.Abstract: -
This Quiz App is a Java-based educational tool designed for interactive programming
language quizzes. Developed using Java Swing, this application facilitates a user-
friendly graphical interface for quizzes on C, C++, Java, JavaScript, and Python.
Users navigate through a seamless experience, starting with a welcoming menu,
selecting a quiz, and answering questions with instant feedback. This project
showcases effective utilization of Java GUI programming to enhance learning
experiences, providing an adaptable foundation for future expansions.
2.Introduction: -
2. Swing:
Swing is an extension of AWT and provides a richer set of components
and features.
It is platform-independent, ensuring consistent behaviour across
different operating systems.
Swing components are lightweight, offering improved performance.
Advanced components include tables, trees, sliders, and tabbed panes.
Event handling is central to Swing, allowing developers to respond to
user actions.
3. Key Concepts:
Components: GUI elements such as buttons, labels, and text fields.
4. JavaFX (Optional):
While Swing is prevalent, JavaFX is a modern GUI framework
providing enhanced features and improved graphics capabilities.
JavaFX supports rich multimedia, 3D graphics, and a more flexible
layout system.
Key Components:
1. Quizzes: This project features quizzes for each programming language, with a
set of questions, multiple-choice options, and correct answers.
2. GUI Elements: The graphical user interface (GUI) includes buttons, labels,
radio buttons, and panels arranged to create an intuitive user experience. The
interface transitions smoothly between different sections, such as the start
menu, quiz selection page, and quiz questions.
Start Menu: Users are welcomed with a start menu displaying the application
title and a "Start" button to initiate the quiz.
Quiz Selection Page: Upon clicking "Start," users navigate to a quiz selection
page where they can choose quizzes in C, C++, Java, JavaScript, or Python.
Result Display: At the end of the quiz, users receive feedback on their total
correct answers.
2. Swing Library:
Description: Swing is a part of Java's Abstract Window Toolkit (AWT)
and provides a rich set of components for building graphical user
interfaces.
Role in Project: Swing is extensively used to create GUI components
such as buttons, labels, radio buttons, and panels. It facilitates the
development of an interactive and user-friendly interface.
4. Swing Workers:
7.Program code: -
//import statements
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public QuizApp() {
showStartMenu();
setTitle("Quiz App");
setSize(600, 300);
setLocationRelativeTo(null);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Start Menu
1. Java Documentation:
Official Java Documentation: The official documentation provides in-
depth information about the Java programming language, including
Swing and other relevant libraries.
2. Swing Documentation:
Java Swing Tutorial: The Swing tutorial by Oracle offers comprehensive
guidance on building graphical user interfaces using Java's Swing
library.