You are on page 1of 22

MICRO PROJECT ON

QUIZ APPLICATION IN ANDROID

Course: Mobile Application Development

Course Code: 22617

Academic Year: 2023-2024

Semester: 6I

Name: Javeriya Ashfaque Shaikh


Roll No: 31
Enrolment No:2117340080
Name of Micro project Guide: Mr. A.P.Modak
MICRO PROJECT ON
‘QUIZ APPLICATION IN ANDROID’

Course: Mobile Application Development

Course Code: 22617

Academic Year: 2023-2024

Semester: 6I

Submitted By: Javeriya Ashfaque Shaikh

Roll No. Name of the student Enrolment No.


31 Javeriya Ashfaque Shaikh 2117340080

Name of Project Guide: Mr. A.P.Modak


CERTIFICATE

This is to certify that this Micro-Project report titled


“QUIZ APPLICATION IN ANDROID” is the bonafide work of
Mr./Ms. .…………………..……………………Roll no…………of
first year diploma in-----------------Engineering for the course
‘MAD’ & guide ‘Mr.A.P.Modak’ Course code:22617 during the
academic year 2023-24 , who carried out the micro project work
under my supervision.

Mr. A.P.Modak

Name & Signature Course Teacher


ANNEXURE I
Micro Project Proposal
‘Quiz Application In Android’
1.0 Aims/Benefit of the Micro Project (Minimum 30-50 Words):
1. The micro project of creating a quiz application in Android offers several benefits
and aims. It provides an opportunity for learners to enhance their Android
development skills in a practical setting.
2. Additionally, it fosters knowledge retention through interactive learning,
facilitates self-assessment, and promotes engagement with the subject matter.

2.0 Course Outcomes Addressed:


1. CO22617.a Android and its tools
2. CO22617.b. Installation and configuration of android
3. CO22617.c UI Components and Layouts
4. CO22617.d Designing User Interface with view
5. CO22617.e Activity and multimedia with database
6. CO22617.f .Security and application deployment

3.0 Proposed Methodology (Procedure that will be followed to do the micro project- in
about 100-200 words):
1. Project Planning and Requirements Gathering
2. Design Phase
3. Development Phase:
4. Testing and Debugging
5. Refinement and Optimization
6. Documentation and Deployment
7. Maintenance and Support

4.0 Resource Required:

Sr. No. Name of Specification Qty. Remark


Resource/Material
1. Internet/ websites Quiz application

2. Books Books on android


development Application

Name of Team Members with Roll Nos:


Sr. No Name of Students Roll No

1
Javeriya Ashfaque Shaikh 31

Mr.A.P.Modak

(Name & Signature Of Faculty)


INDEX

Sr. No. Content


1. Aims/Benefits of the Micro Project
2. Course Outcomes Achieved
3. Literature Review:

4. Actual Methodology Followed:


5. Actual Resource Used:

6. Introduction
7. Implementation of code

8. Ouputs
9. Conclusion
10 LogBook
11 Evaluation Sheet
ANNEXURE - II
Micro Project Report
‘QUIZ APPLICATON IN ANDROID’

1.0 Aims/Benefits of the Micro Project:


1. The micro project of creating a quiz application in Android offers several benefits and
aims. It provides an opportunity for learners to enhance their Android development
skills in a practical setting.
2. Additionally, it fosters knowledge retention through interactive learning, facilitates
self-assessment, and promotes engagement with the subject matter.

2.0 Course Outcomes Achieved :


1. CO22617.a Android and its tools
2. CO22617.b. Installation and configuration of android
3. CO22617.c UI Components and Layouts
4. CO22617.d Designing User Interface with view
5. CO22617.e Activity and multimedia with database
6. CO22617.f .Security and application deployment

3.0 Literature review :


A literature review for a quiz application microproject in Android would involve
exploring existing research, articles, and resources related to quiz applications, user
interface design, educational technology etc.
1. Introduction to Quiz Applications
2. Mobile App Development Frameworks and Technologies
3. User Interface (UI) and User Experience (UX) Design
4. Gamification in Quiz Applications
5. Educational Aspects and Learning Theory
6. Existing Quiz Applications and Case Studies
7. Challenges and Future Directions
8. Summarize key findings from the literature review.
9. Highlight the importance of developing a well-designed and engaging quiz
application for Android users.
10. When conducting your literature review, make sure to use academic
research papers, journals, and reputable online resources to gather
relevant information and insights.
4.0 Actual Methodology Followed :-
Creating a quiz application microproject involves several steps and methodologies.
1. Requirements Gathering:
- Understand the purpose of the quiz application (e.g., educational, entertainment).
- Define features and functionalities required in the application (e.g., user
authentication, quiz creation, scoring system).
2. Design:
- Design the user interface (UI) for the application.
- Design the database schema for storing quiz questions, user data, and results.
3. Development:
- Implement the UI using HTML/CSS for the front end.
- Develop the logic for presenting questions to users, recording answers, and
calculating scores. Integrate with a database management system (e.g., MySQL,
MongoDB) for data storage.
4. Testing:
- Perform unit testing to check individual components.
- Perform system testing to ensure the application works as expected as a whole.
- Fix any bugs or issues identified during testing.
5. Deployment:
- Choose a hosting platform (e.g., AWS, Heroku) for deploying the application.
- Configure the server environment and deploy the application.
6. Maintenance:
- Regularly update the application to fix bugs and add new features..
- Address any user feedback and make improvements to the application accordingly.
Throughout the development process, it's important to follow best practices such as
modularization, code documentation, and version control (e.g., using Git).

5.0 Actual Resources Used :


Sr. No. Name of Specification Qty. Remark
Resource/Material
1. Internet/ websites Websites on personal As
appearance and grooming required
2. Books Books on personal As
appearance and grooming required
o INTRODUCTION :

In the age of digital learning and interactive engagement, the Quiz Application
microproject emerges as a vibrant solution to foster knowledge exploration and
retention. With the proliferation of smartphones and digital devices, educational
applications have become an integral part of modern learning ecosystems. Quiz
Application stands as a testament to this trend, offering a seamless platform for
users to engage in quizzes across diverse topics and subjects.

The aim of Quiz Application is to provide a user-friendly, intuitive, and enriching


experience for individuals keen on testing their knowledge, learning new facts, and
challenging themselves in a fun and interactive manner. Through a meticulously
designed interface and a robust backend system, Quiz Application promises to be a
go-to destination for both casual learners and avid quiz enthusiasts alike.

Quiz Application represents a dynamic fusion of education, technology, and


entertainment, encapsulating the essence of modern learning paradigms. Whether
used for self-improvement, academic reinforcement, or social interaction, Quiz
Application stands as a versatile microproject poised to make a meaningful impact in
the realm of interactive quizzing. Join the Quiz Application community today and
embark on a journey of discovery, knowledge, and endless fun!

Key Features:

1. Multi-Category Quizzes
2. Custom Quiz Creation
3. Progress Tracking
4. Leaderboards and Achievements
5. Engaging UI/UX
6. Social Sharing and Challenges
7. Offline Mode
o IMPLEMENTATION OF CODE :

XML FILE :-
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent" android:background="#DAF7A6"
android:padding="24dp"
tools:context=".MainActivity">

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/total_questions"
android:text="TOTAL QUESTIONS"
android:layout_centerHorizontal="true"
android:textSize="20dp"
android:textColor="#7F33FF"/>

<TextView
android:id="@+id/question"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_above="@+id/choices_layout"
android:layout_marginBottom="25dp"
android:text="THIS WILL BE THE QUESTION?"
android:textAlignment="center"
android:textColor="@color/black"
android:textSize="24dp"
android:textStyle="bold" />

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/choices_layout"
android:layout_centerInParent="true"
android:orientation="vertical">

<Button
android:id="@+id/ans_A"
android:layout_width="276dp"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:layout_marginBottom="5dp"
android:layout_marginLeft="35dp"
android:backgroundTint="@color/white"
android:text="Ans A"
android:textColor="@color/black" />

<Button
android:id="@+id/ans_B"
android:layout_width="276dp"
android:layout_height="wrap_content"
android:layout_marginBottom="5dp"
android:layout_marginLeft="35dp"
android:backgroundTint="@color/white"
android:text="Ans B"
android:textColor="@color/black"/>

<Button
android:id="@+id/ans_C"
android:layout_width="276dp"
android:layout_height="wrap_content"
android:layout_marginBottom="5dp"
android:layout_marginLeft="35dp"
android:backgroundTint="@color/white"
android:text="Ans C"
android:textColor="@color/black"/>

<Button
android:id="@+id/ans_D"
android:layout_width="276dp"
android:layout_height="wrap_content"
android:layout_marginBottom="5dp"
android:layout_marginLeft="35dp"
android:backgroundTint="@color/white"
android:text="Ans D"
android:textColor="@color/black"/>

<Button
android:id="@+id/submit"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="50dp"
android:layout_marginLeft="110dp"
android:text="SUBMIT"
android:textSize="25dp" />

</LinearLayout>
</RelativeLayout>
MAIN ACTIVITY. JAVA :-
package com.example.myproject2;

import androidx.appcompat.app.AppCompatActivity;

import android.app.AlertDialog;
import android.graphics.Color;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

public class MainActivity extends AppCompatActivity implements View.OnClickListener {

TextView totalquestionsTextView;
TextView questionTextView;
Button AnsA,AnsB,AnsC,AnsD;
Button submit;

int score=0;
int totalQuestion = QuestionAnswer.question.length;
int currentQuestionIndex = 0;
String selectedAnswer = " ";

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

totalquestionsTextView = findViewById(R.id.total_questions);
questionTextView = findViewById(R.id.question);
AnsA = findViewById(R.id.ans_A);
AnsB = findViewById(R.id.ans_B);
AnsC = findViewById(R.id.ans_C);
AnsD = findViewById(R.id.ans_D);
submit = findViewById(R.id.submit);

AnsA.setOnClickListener(this);
AnsB.setOnClickListener(this);
AnsC.setOnClickListener(this);
AnsD.setOnClickListener(this);
submit.setOnClickListener(this);

totalquestionsTextView.setText("Total questions : "+totalQuestion);


loadNewQuestion();
}

@Override
public void onClick(View view) {
AnsA.setBackgroundColor(Color.WHITE);
AnsB.setBackgroundColor(Color.WHITE);
AnsC.setBackgroundColor(Color.WHITE);
AnsD.setBackgroundColor(Color.WHITE);

Button clickedButton = (Button) view;


if(clickedButton.getId()==R.id.submit) {
if (selectedAnswer.equals(QuestionAnswer.correctanswers[currentQuestionIndex])) {
score++;
}
currentQuestionIndex++;
loadNewQuestion();
}else {
selectedAnswer = clickedButton.getText().toString();
clickedButton.setBackgroundColor(Color.MAGENTA);
}
}
void loadNewQuestion() {
if (currentQuestionIndex == totalQuestion) {
finishQuiz();
return;
}

questionTextView.setText(QuestionAnswer.question[currentQuestionIndex]);
AnsA.setText(QuestionAnswer.choices[currentQuestionIndex][0]);
AnsB.setText(QuestionAnswer.choices[currentQuestionIndex][1]);
AnsC.setText(QuestionAnswer.choices[currentQuestionIndex][2]);
AnsD.setText(QuestionAnswer.choices[currentQuestionIndex][3]);
}

void finishQuiz(){
String passStatus = " ";
if(score > totalQuestion*0.60){
passStatus = "Passed";
}else {
passStatus = "Failed";
}

new AlertDialog.Builder(this)
.setTitle(passStatus)
.setMessage("Score is "+score+"out of "+totalQuestion)
.setPositiveButton("Restart",(dialogInterface, i) -> restartQuiz())
.setCancelable(false)
.show();
}
void restartQuiz() {
score=0;
currentQuestionIndex =0;
loadNewQuestion();
}
}
QUESTION ANSWERS. JAVA :-
package com.example.myproject2;

public class QuestionAnswer {

public static String question[] ={

"What is Full Form of JVM?",


"Which one is not Programming Language?",
"What is the fullform of MAD?",
"Which is the most used APP?",
"The ScreenOrientation is an attribute of ______________ element?",
"Which of the following is not a type of Button in android?",
"What is Toast?",
"Radio Button cannot be unchecked once it is checked by user?",
"Which of the following is not a type of Multiplexing?",
"API stands for?"
};

public static String choices[][] = {

{"JAVA VIRTUAL DEVICE ","JAVA VIRTUAL MACHINE","JAVA VIDEO DEVICE","JAVA V


MACHINE"},
{"KOTLIN","JAVA","NOTEPAD","PYTHON"},
{"Mobile Application Development","Mini Add Development","Mobile Android
Development","Memory Android Development"},
{"SNAPCHAT","INSTAGRAM","WHATSAAP","FACEBOOK"},
{"Layout","Menifest File","Activity","None of the above"},
{"PushButton","ToggleButton","LinkButton","RadioButton"},
{"Class","Activity","Method","Layout"},
{"True","False","Both true","None of these"},
{"FDM","TDM","VDM","CDM"},
{"Android Programming Interface","Application Programming Internet","Application
Programming Interface","Android Programming Interchange"}
};
public static String correctanswers[] = {

"JAVA VIRTUAL MACHINE",


"NOTEPAD",
"Mobile Application Development",
"SNAPCHAT",
"Activity",
"LinkButton",
"Class",
"True",
"VDM",
"Application Programming Interface"

};
}
o OUTPUTS :
o CONCLUSION :

In conclusion, the quiz application microproject aimed to develop a user-friendly and


interactive platform for conducting quizzes. Throughout the development process,
several key objectives were achieved.

Firstly, the application successfully implemented features for creating, managing, and
taking quizzes.

Overall, the quiz application microproject served as an effective learning experience,


providing insights into the development process of interactive web applications. By
addressing user needs and incorporating feedback, future iterations of the application
have the potential to become even more robust and engaging.

This conclusion summarizes the project's achievements, acknowledges potential areas


for improvement, and reflects on the learning experience gained from the
microproject.
Log Book of the Student (Weekly Work Report)
Academic Year: 2023-2024

Name of Student:
…………………………………………………………………………………….
Title of the Project: ‘Quiz Application In Android’
Course: Mobile Application Development Course Code: 22617 Semester: 6I
Sr. No./ Date Time Work Done
Hour No.
1. Research on Problem of Sociaty

2. Finalize the Project

3. Reported to guide

4. Architecture design

5. Implementation of Code

6. Implementation of Code

7. Implementation of Code

8. Implementation of Code

9. Meeting Conducted With Guide for Review

10. Changes are Done

11. Implementation of Code

12. Implementation of Code

13. Implementation of Code

14. Project Completed

15. Project And Documentation Completed

16. Presentation And Submission Of Project

Mr. A.P.Modak
(Name & Signature Of Faculty)
Micro Project Evaluation Sheet

Name of Student:________________________________________________

Name of Program: TYCO Semester: CO-6-I

Course Title: Mobile Application Development Code: 22617

Title of the Micro-project: QUIZ APPLICATION IN ANDROID


Course Outcomes Achieved: -
a) Android and its tools
b) Installation and configuration of android
c) UI Components and Layouts
d) Designing User Interface with view
e) Activity and multimedia with database
f) Security and application deployment

Sr. Characteristic to be Poor Average Good Excellent Sub


No. accessed (Marks 1-3) (Marks 4-5) (Marks 9-10) Total
(Marks 6-8)

(A) Process and Product Assessment (Convert above total marks out of 6 Marks)
1 Relevance to the
course

2 Literature
Review/information
collection

3 Completion of the
Target as per project
proposal

4 Analysis of Data and


representation

5 Quality of the
Prototype/Model

6 Report Preparation

(B) Individual Presentation/ Viva (Convert above total marks out of 4 Marks)
7 Presentation

8 Viva
(A) (B) Total Marks

Process and Product Individual Presentation/ 10


Assessment Viva
(6 Marks) (4 Marks)

Comments/ suggestions about Team work/ Leadership/Inter-Personal communication


(Ifany)…………………………………………………………………………………………
……
…………………………………………………………………………………………………
…… ………………………………………………………………………………………

Name and Designation of the Teacher……………………………………..

Dated Signature…………………………………………………………

You might also like