Professional Documents
Culture Documents
Semester: 6I
Semester: 6I
Mr. A.P.Modak
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
1
Javeriya Ashfaque Shaikh 31
Mr.A.P.Modak
6. Introduction
7. Implementation of code
8. Ouputs
9. Conclusion
10 LogBook
11 Evaluation Sheet
ANNEXURE - II
Micro Project Report
‘QUIZ APPLICATON IN ANDROID’
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.
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;
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);
@Override
public void onClick(View view) {
AnsA.setBackgroundColor(Color.WHITE);
AnsB.setBackgroundColor(Color.WHITE);
AnsC.setBackgroundColor(Color.WHITE);
AnsD.setBackgroundColor(Color.WHITE);
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;
};
}
o OUTPUTS :
o CONCLUSION :
Firstly, the application successfully implemented features for creating, managing, and
taking quizzes.
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
3. Reported to guide
4. Architecture design
5. Implementation of Code
6. Implementation of Code
7. Implementation of Code
8. Implementation of Code
Mr. A.P.Modak
(Name & Signature Of Faculty)
Micro Project Evaluation Sheet
Name of Student:________________________________________________
(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
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
Dated Signature…………………………………………………………