0% found this document useful (0 votes)
19 views14 pages

AJP Microproject

Uploaded by

sujalbpatil76
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views14 pages

AJP Microproject

Uploaded by

sujalbpatil76
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

Program for Online Quiz

Submitted in fulfillment of the requirements of


micro-project

Advanced Java Programming

By

“ SHREYA AWARI”
“SALONI PATIL”
“ADITYA SHELKE”

ROLL NO:- 49
50
51

ENROLLMENT NO:- 2209640221


2209640222
2209640223

SUBJECT INCHARGE
Mrs. Smita Kuldiwar

Computer Engineering Department


Academic Year 2024-2025
CERTIFICATE
This is to certify that the microproject

“Program for Online Quiz"


is done by

“ SHREYA AWARI”
“SALONI PATIL”
“ADITYA SHELKE”

is submitted for

“Advanced Java Programming”


for

the diploma in Computer Engineering to the

Maharashtra State Board of Technical Education, Mumbai


(Autonomous) (ISO-9001-2008) (ISO/IEC 27001:2013)

Subject Incharge Head of Department


(Mrs.Smita Kuldiwar) (Mrs.Smita Kuldiwar)
Program for Online Quiz
Submitted in fulfillment of the requirements
of micro-project

Advanced Java Programming

By

Roll Enrollment Process and Individual Total


No Name No Project Presentation (10 marks)
Assessment (4 marks)
(6 marks)

49 Shreya 2209640221
Awari

50 Saloni 2209640222
Patil

51 Aditya 2209640223
Shelke

SUBJECT INCHARGE
(Mrs.Smita Kuldiwar)

Computer Engineering Department


Academic Year 2024-2025
COMPUTER ENGINEERING DEPARTMENT VISION AND
MISSION OF THE PROGRAMME

Vision: -

To provide technically competent and skilled diploma


computer engineers to fulfill the needs of industry and society.

Mission: -
M1:- To provide industry oriented quality education and training.

M2:- To impart and inculcate theoretical and practical knowledge.

M3:- To provide interpersonal skills and social ethics.


COMPUTER ENGINEERING DEPARTMENT PROGRAMME
OUTCOMES

PO1: Basic and Discipline specific knowledge: Apply knowledge of basic mathematics,
science and engineering fundamentals and engineering specialization to solve the engineering
problems.

PO2: Problem analysis: Identify and analyze well-defined engineering problems using
codified standard methods.

PO3: Design/ Development of solutions: Design solutions for well-defined technical


problems and assist with the design of systems components or processes to meet specified
needs.

PO4: Engineering Tools, Experimentation and Testing: Apply modern engineering


tools and appropriate technique to conduct standard tests and measurements.

PO5: Engineering practices for society, sustainability and environment: Apply


appropriate technology in context of society, sustainability, environment and ethical
practices

PO6: Project Management: Use engineering management principles individually, as a


team member or a leader to manage projects and effectively communicate about well-
defined engineering activities.

PO7: Life-long learning: Ability to analyze individual needs and engage in updating in the
context of technological changes
COMPUTER ENGINEERING DEPARTMENT PROGRAMME
EDUCATIONAL OBJECTIVES
PEO1: Provide socially responsible, environment friendly solutions
to Computer engineering related broad-based problems adapting professional ethics.

PEO2: Adapt state-of-the-art Computer engineering broad-based technologies to work in


multidisciplinary work environments.

PEO3: Solve broad-based problems individually and as a team member communicating


effectively in the world of work.

PROGRAMME SPECIFIC OUTCOMES


PSO1: Computer Software and Hardware Usage: Use state-of-the-art technologies for
operation and application of computer software and hardware.

PSO2: Computer Engineering Maintenance: Maintain computer engineering related


software and hardware systems.
Program for Online Quiz
Aim

The aim of the Online Quiz Competition is to engage participants in an interactive learning
experience that assesses their knowledge across various subjects through a user-friendly
graphical interface. This initiative seeks to promote critical thinking, quick decision-making,
and retention of information among participants.

Course Outcomes
1. CO (a) - Develop a program using GUI framework (AWT and Swing)

2.CO (b) - Handle events of AWT and Swing Components

Proposed Methodology
1. Quiz Design

2. User Interface Development

3. Score Calculation

4. Feedback Mechanism

5. Deployment

Action Plan:

Detail of activity Plan Start Date Plan Finish Date


Sr.
No.

04-08-2024
1. Searching of Topic 06-08-2024

09-08-2024
2. Gathering information 13-08-2024

15-08-2024
3. Execution of Program 22-08-2024

05-09-2024
4. Report Making 12-09-2024

Subject In-charge
(Mrs.Smita Kuldiwar)
Program for Age Calculator
Rationale
The Online Quiz Competition leverages technology to create an engaging learning environment that
is accessible to a wider audience. It encourages participants to explore their knowledge while
fostering a competitive spirit. With the increasing shift towards digital education, an online quiz
serves as an effective tool for both learning and assessment, making it relevant in today’s educational
landscape.

Literature
Numerous studies have highlighted the effectiveness of gamification in education, indicating that
interactive methods like quizzes enhance student engagement and retention of knowledge. Research
shows that online quizzes can significantly improve learning outcomes by providing immediate
feedback and fostering a sense of competition among participants. Moreover, the incorporation of
technology in assessments aligns with contemporary educational practices, making learning more
dynamic and interactive.

Actual Methodology Followed

Topic Work Done Data Work Done By


1. Searching of topic (Program for Online Quiz Saloni Patil
Competition)

2. Gathering of Information (Rationale, Aim, Applications,


Aditya Shelke
etc.)
3. Execution of Program 1. Develop the program.
2. Run the program. Shreya Awari
3. Get output.
4. Report Making Finalization of report Shreya Awari

Resources Required

Sr. Name of Resources Specification Qty. Remark


No.

1. Computer Intel i3, 4GB RAM or above 1 -

2. MS-Word Office 2007 or above 1 -

3. VS code Latest 1 -
Source Code

import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class OnlineQuizGUI extends JFrame implements ActionListener {

// Components of the quiz GUI


JLabel questionLabel;
JRadioButton option1, option2, option3, option4;
ButtonGroup optionsGroup;
JButton nextButton;
int currentQuestion = 0;
int score = 0;

// Questions, options, and answers


String[] questions = {
"What is the capital of France?",
"Who is the inventor of Java?",
"What is the largest planet in our solar system?",
"What year did the Titanic sink?",
"Who wrote 'Hamlet'?"
};

String[][] options = {
{"Paris", "Rome", "Madrid", "Berlin"},
{"Dennis Ritchie", "James Gosling", "Bjarne Stroustrup", "Ken Thompson"},
{"Earth", "Mars", "Jupiter", "Venus"},
{"1905", "1912", "1920", "1930"},
{"Charles Dickens", "Leo Tolstoy", "William Shakespeare", "Mark Twain"}
};

char[] answers = {'a', 'b', 'c', 'b', 'c'}; // Correct answers (mapped to options)

// Constructor to set up the quiz GUI


public OnlineQuizGUI() {
// Frame settings
setTitle("Online Quiz");
setSize(400, 300);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setLayout(new GridLayout(6, 1));

// Question label
questionLabel = new JLabel();
add(questionLabel);

// Option buttons
option1 = new JRadioButton();
option2 = new JRadioButton();
option3 = new JRadioButton();
option4 = new JRadioButton();

// Group buttons to allow single selection


optionsGroup = new ButtonGroup();
optionsGroup.add(option1);
optionsGroup.add(option2);
optionsGroup.add(option3);
optionsGroup.add(option4);

add(option1);
add(option2);
add(option3);
add(option4);
// Next button
nextButton = new JButton("Next");
nextButton.addActionListener(this);
add(nextButton);

loadQuestion(); // Load the first question


}

// Load the current question and options


public void loadQuestion() {
questionLabel.setText("Q" + (currentQuestion + 1) + ": " + questions[currentQuestion]);
option1.setText("a) " + options[currentQuestion][0]);
option2.setText("b) " + options[currentQuestion][1]);
option3.setText("c) " + options[currentQuestion][2]);
option4.setText("d) " + options[currentQuestion][3]);
optionsGroup.clearSelection();
}

// Action listener for button clicks


@Override
public void actionPerformed(ActionEvent e) {
if (e.getSource() == nextButton) {
char selectedAnswer = ' ';
if (option1.isSelected()) selectedAnswer = 'a';
else if (option2.isSelected()) selectedAnswer = 'b';
else if (option3.isSelected()) selectedAnswer = 'c';
else if (option4.isSelected()) selectedAnswer = 'd';

// Check if the selected answer is correct


if (selectedAnswer == answers[currentQuestion]) {
score++;
}
// Load next question or show result
currentQuestion++;
if (currentQuestion < questions.length) {
loadQuestion();
} else {
JOptionPane.showMessageDialog(this, "Quiz Over! Your score: " + score + "/" +
questions.length);
System.exit(0); // End the quiz
}
}
}

public static void main(String[] args) {


OnlineQuizGUI quiz = new OnlineQuizGUI();
quiz.setVisible(true);
}
}
Output
Skill Developed
1. Able to develop Java Programs
2. Able to analyze and fix the errors.
3. Able to debug the program.

Application
Can be used in college and school level programs

Subject In-charge
(Mrs. Smita Kuldiwar)

You might also like