Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Quiz Application: A Microproject in Advanced Java Programming, Cheat Sheet of Java Programming

This microproject report details the development of a java-based quiz application. The report includes the code for the application, which focuses on testing knowledge of java concepts like classes, inheritance, and keywords. The report also includes a brief overview of the software requirements and a conclusion summarizing the project's purpose and functionality.

Typology: Cheat Sheet

2023/2024

Uploaded on 11/25/2024

shlok-chaknalwar
shlok-chaknalwar 🇮🇳

1 document

1 / 11

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
A Report Of Microproject
On
“Quiz Application”
Subject :- Advanced Java Programming (22517)
Submitted By
Anushka Chimalwar Isha Kshirsagar
Krupa Urade Pihu Sonwane
Sachin Ade Yash Punekar
Guided By :-
MISS. P. Singh Mam
Branch :- Computer Engineering
BAJAJ CHANDRAPUR POLYTECHNIC CHANDRAPUR
Session :- 2024-25
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Quiz Application: A Microproject in Advanced Java Programming and more Cheat Sheet Java Programming in PDF only on Docsity!

A Report Of Microproject

On

“Quiz Application”

Subject :- Advanced Java Programming (22517)

Submitted By

Anushka Chimalwar Isha Kshirsagar

Krupa Urade Pihu Sonwane

Sachin Ade Yash Punekar

Guided By :-

MISS. P. Singh Mam

Branch :- Computer Engineering

BAJAJ CHANDRAPUR POLYTECHNIC CHANDRAPUR

Session :- 2024-

Submission

This is to declare this Micro Project report has been written by us. No Part of the report is plagiarized from other sources. All information included from other sources has been duly acknowledged. We aware that if any part of the report is found to be plagiarized. We will take full responsibility for it.

Anushka Chimalwar…………………………………………………

Isha Kshirsagar………………………………………………………

Krupa Urade…………………………………………………………

Pihu Sonwane……………………………………………………….

Sachin Ade……………………………………………………………

Yash Punekar…………………………………………………………

Guided By

MISS. P. Singh Mam

HOD Name

MISS. P. Singh Mam

INTRODUCTION

The purpose of this program is to minimize the work of all humans, which is a massive challenge. Users working on the equation would be significantly shortened by using this Basic Calculator. The machine would be able to perform operations such as addition, subtraction, multiplication, division, finding the square root of a number, etc. Quick Calculator is user-friendly and easy to use. ABSTRACT The calculator is an application to calculate the values of two numbers and helps to solve numerical equations. The system would provide basic equation like add/sub/div/multiply the numerical equations, and manage check in specifications for the systems based on the user's input of need. It allows the user to calculate the numbers and helps to solve the sums and mathematical equations. This software allows addition, subtraction, division and multiplication It helps to calculate the values and also to solve the numerical sums/equations. The implementation of this system will provide the options of (+,-, *) to calculate numerical sums.

CODING

import java.awt.; import java.awt.event." import javax.swing.: public class QuizGame3 extends JFrame implements ActionListener { JLabel lolQuestion; JRadioButton rbOpt1, rbOpt2, rbOpt3, rbOpt4; ButtonGroup bg. JButton btnNext, int current = 0, score = 0 String[][] questions = { {"What is the superclass of all classes in Java?", "Object", "Class", "String", "Integer"). "Which statement is used to define a class in Java?", { "Class", "Method", "Inheritance", "Object"). {"What is the keyword used to create a subclass in Java?", "Extends", "Subclass", "Inheritance", "Parent"). {"Which keyword is used to overload a method in java?", "Overload", "Override", "Super", "This"). {"Which keyword is used to access the members of a class?". "This", "Super", "Overload", "Override"}, {"What is the keyword used to refer to a member of the superclass?", "Super", "Parent", "Child", "Class"}, {"Which keyword is used to create an interface in Java?", "Interface", "Class", "Extends", "Implements"}, {"Which keyword is used to prevent a class from being inherited?", "Final", "Static", "Private", "Protected"). {"Which keyword is used to define a method that can be overridden?",

IblQuestion setText(questions[current][0]): rbOpt1 setText(questions [current] [1]). rbOpt2 setText(questions[current][2]). rbOpt3.setText(questions[current][3]); rbOpt4.setText(questions[current][4]); } public void actionPerformed(ActionEvent e) { if (rbOpt1.isSelected() || rbOpt2.isSelected() || rbOpt3.1sSelected() rbOpt4.is Selected()) { if (rbOpt1 isSelected()) { if (questions[current] [1] equals("Object") || questions[current][1].equals("Class") || questions[current][1] equals("Extends") || questions[current] [1].equals("Overload") || questions[current][1].equals("This") || questions[current] [1] .equals("Super") || questions [current][1].equals("Interface") | questions[current] [1].equals("Final") || questions[current][1].equals("Virtual") || questions[current][1].equals("Abstract")) { score++; } if (rbOpt2.isSelected()) { if (questions[current][2].equals("Object") || questions[current][2].equals("Class") || questions[current][2] equals("Extends") || questions[current] [2] equals("Overload") || questions[current][2].equals("This") || questions[current][2].equals("Super") || questions[current][2].equals("Virtual") || questions[current][2].equals("Interface") || questions[current] [2].equals("Final") || questions[current][2].equals("Abstract")) { score++

if (rbOpt3.isSelected()) { if (questions[current] [3] equals("Object") || questions[current] [3] .equals("Class") || questions [current][3].equals("Extends") || questions [current][3].equals("Overload") || questions[current][3].equals("This") || questions[current][3].equals("Super") || questions[current][3].equals("Interface") || questions[current] [3].equals("Final") || questions[current][3].equals("Virtual") || questions[current][3].equals("Abstract")) { score++; } } if (rbOpt4.isSelected()) { if (questions[current] [4] equals("Object") || questions[current][4].equals("Class") || questions[current][4] equals("Extends") || questions[current][4].equals("Overload") || questions [current][4].equals("This") || questions[current][4].equals("Super") || questions[current][4] equals("Interface") || questions[current][4].equals("Final") || questions [current][4].equals("Virtual") || questions[current] [4].equals("Abstract")) { score++: } } current++;

OUTPUT

SOFTWARE REQUIREMENTS

 Notepad  JAVA (jdk)  Command Prompt CONCLUSION The Calculator allows the user to calculate the numbers and helps to solve the sums and mathematical equations. This software allows addition, subtraction, division and multiplication It helps to calculate the values and also to solve the numerical sums/equations. The implementation of this system will provide the options of (+,-, /.*) to calculate numerical sums. REFERENCE  www.google.com  www.geeksforgeeks.com  www.javapoint.com  www.github.com