Visvesvaraya Technological University BELAGAVI - 590002: "Quiz Application"

Download as pdf or txt
Download as pdf or txt
You are on page 1of 21

VISVESVARAYA TECHNOLOGICAL UNIVERSITY

BELAGAVI - 590002

A MOBILE APPLICATION DEVELOPMENT MINI PROJECT ON


“QUIZ APPLICATION”

A Project Submitted to Visvesvaraya Technological University in Partial


fulfillment of requirements for the 6th semester, Department of Computer
Science & Engineering

Submitted By

NAME USN
SHEJAL GAONKAR 2GP19CS022
PREETAM NAIK 2GP19CS019
DANISH SHAIKH 2GP19CS008
SOUJANYA DALLINAKERI 2GP17CS036

Under the Guidance of


Prof. MANJUVANI GOUDA Prof. SMITHA CG
Assistant Professor Assistant Professor
Dept of CSE Dept of CSE

Department of Computer Science & Engineering


GOVERNMENT ENGINEERING COLLEGE MAJALI,
KARWAR-581345, DIST.UTTAR KANNADA, KARNATAKA
GOVERNMENT ENGINEERING COLLEGE
MAJALI, KARWAR – 581345
Department of Computer Science Engineering

CERTIFICATE
Certified that the Mobile Application Development Mini Project work entitled

“QUIZ APPLICATION”

SHEJAL GAONKAR 2GP19CS022


PREETAM NAIK 2GP19CS019
DANISH SHAIKH 2GP19CS008
SOUJANYA DALLINAKERI 2GP17CS036

This is to certify that above students have satisfactorily completed the Mobile
Application Development laboratory mini project work for the partial fulfillment of
Bachelor of Engineering in COMPUTER SCIENCE AND ENGINEERING of the
Visvesvaraya Technological University, Belagavi During the year 2021 – 2022.

___________________________ ___________________________

Prof. MANJUVANI GOUDA Prof. SMITHA CG


Assistant Professor Dept of CSE, Assistant Professor Dept of CSE,
GEC, Karwar GEC, Karwar

__________________________ ___________________________

Dr. SOMESHA M Dr. SHANTHALA B


HOD, Dept of CSE, Principal
GEC, Karwar GEC, Karwar

Examination Section:

Examiner 1 ___________________________________________________

Examiner 2 ___________________________________________________
ACKNOWLEDGEMENT
We give our high, respectful gratitude to our guide Prof. MANJUVANI GOUDA &
Prof. SMITHA CG, who have been our source of inspiration. They have been especially
enthusiastic in giving their opinions and critical reviews.

We have learnt a lot throughout this semester with many challenges yet valuable
experience in order to complete this task. We will remember her contribution forever.

We sincerely thank Dr. SOMESHA M, HOD, Dept of CSE, who has been the constant
driving force behind the completion of the project.

We also thank our respected Principal Dr. SHANTHALA B for her constant help and
support throughout.

Our special thanks to faculty members who have supported us in making this project a
successful one.

We also take this opportunity to thank the technician staffs who have helped us a lot in
providing the software support and any other support whenever needed. Our thanks and
appreciation also goes to our friends who have willingly helped us with their ability.

SHEJAL GAONKAR 2GP19CS022


PREETAM NAIK 2GP19CS019
DANISH SHAIKH 2GP19CS008
SOUJANYA DALLINAKERI 2GP17CS036

i
ABSTRACT
The evolution of today’s mobile devices increases the number of mobile applications
developed and among them is the quiz application. Android mobile hardware and software
platforms allow the running of faster and richer applications. This presents the main steps in
the development of a quiz application for android using android studio. This work deals with
the development of an android-based multiple-choice question examination system, namely:
Quiz App. This application is developed for educational purposes, allowing the users to prepare
the multiple-choice questions for different tests conducted.

ii
TABLE OF CONTENTS

CHAPTER DESCRIPTION PAGE NO


ACKNOWLEDGEMENT i

ABSTRACT ii

1. INTRODUCTION 1

1.1 Introduction to Android Application


1.2 Introduction to Android Studio

1.3 Mini Project Description

2. REQUIREMENT SPECIFICATION 5

2.1 Hardware Requirements

2.2 Software Requirements

3. SYSTEM DESIGN 6

3.1 Flowchart

3.2 Explanation

4. IMPLEMENTATION 8

4.1 List of Classes Imported

4.2 List of Functions Used

5. SNAPSHOTS 10

CONCLUSION

REFERENCES

iii
QUIZ APPLICATION

CHAPTER 1

INTRODUCTION

1.1 Introduction to Android Application

➢ Android is a mobile operating (OS) currently developed by Google, based on the


Linux kernel and designed primarily for touchscreen mobile devices such as
smartphones and tablets.

➢ Android app is a software designed to run on an Android device or emulator.


Android apps can be written in Kotlin, Java, and C++ and are run inside a virtual
machine. The official development environment for Android apps is Android Studio.

➢ Android apps are normally distributed through the app markets such as Google Play
Store, so it is possible to enable installation from APK file or via USB connection in
device settings.

➢ Android application can be thought of as a collection of interacting components.

Android application components come in 4 flavours:

• Activities: An activity component implements interactions with the user.

• Services: Long-running or background components that do not directly interact with


the user are expressed as service components.

• Broadcast receivers: System-wide broadcast events can be generated by the system


software or applications.

• Content providers: Components that provide access to an application’s data are


content providers.

DEPT OF CSE GEC, KARWAR 2021-22 1


QUIZ APPLICATION

Fig 1.1.1: Components of Android Application

1.2 Introduction to Android Studio

➢Android Studio is known as an IDE, or Integrated Development Environment. It contains


lot of tools, these tools help to write the code and layout how the app will look on the
screen. It will show the real time preview of how the design will look like as you create the
screen.

➢Android Studio supports all the same programming languages of IntelliJ (and Cilona)
like Java, C++, Kotlin and more extensions.

➢Android Studio has many features that can help to develop the Android Application such
as:

• Powerful code editor with smart editing and code re-factoring.

DEPT OF CSE GEC, KARWAR 2021-22 2


QUIZ APPLICATION

• Emulator to show the output in various resolutions, including Nexus4, Nexus 7, Nexus10
and many other android phones.

• Gradle based build support.

• Template based wizards.

➢Android studio consists of SDK (Software Development Kit) which includes the
following:

• Required libraries.

• Debugger

• An emulator

• Relevant documentation for the Android application programming

interfaces (APIs)

• Sample source code

• Tutorials for the Android OS

➢Each project in Android Studio contains one or more modules with source code files and
resource files. Types of modules includes: Android app modules, Library modules, Google
app Engine modules.

➢All the files in the Android Studio are visible at the top level under Gradle Scripts and
each app module contains the following folders:

• manifests: Contains the AndroidManifest.xml file.

• java: Contains the java source code files, including JUnit test code.

• res: Contains all non-code resources, such as XML layouts, UI strings, and

bitmap images.

DEPT OF CSE GEC, KARWAR 2021-22 3


QUIZ APPLICATION

➢Android Studio supports a variety of version control (VCS’s), including Git, GitHub,
CVS, Mercurial, Subversion and Google Cloud Source Repositories.

➢Dependencies in Android Studio are specified by the name build. Gradle file. Gradle
takes care of finding dependencies and making them available in the build.

➢Android Studio supports annotations for variables, parameters, and return values to catch
bugs, such as null pointer expectations and resource type conflicts.

➢Android Studio comes in with built in SQLite database implementation and the latest
version of Android Studio contains Firebase Android SDK source.

1.3 Mini Project Description

Quiz Application is an application design to practice Quiz for various users. It


contains a set of curated questions and its answers checks for the correctness of the answer
given by the use. It navigates through the questions using dynamic programming. This
application is developed for education purpose, allowing the users to prepare for multiple
choice questions for different kind of examinations. The quiz app includes the main module
like computer science, verbal and analytical skills etc. This quiz includes the result like the
questions answered correctly, wrongs answers and the score of the person. Quiz app also
includes a restart button which will help the user to practice continuously without any
problem. The quiz application also pops a toast message for every question attempted
showing weather it is right or wrong. The app is basically implemented in java and designed
in xml.

DEPT OF CSE GEC, KARWAR 2021-22 4


QUIZ APPLICATION

CHAPTER 2

REQUIREMENT SPECIFICATION

2.1 Hardware Requirements

▪ Processor: Intel Core i5, 2GHZ and above/AMD Ryzen 5

▪ RAM: 8GB

▪ System type: Windows XP / Linux.

▪ Smartphone with Android OS version 4.4 (KitKat) or higher

▪ Android API version 19

▪ Permission to install applications over USB and installation from unknown sources from
‘Developer Options’.

2.2 Software Requirements

▪ Operating System: Windows 10

▪ Tool/IDE used: Android Studio 4.2.2

▪ Emulator Used: Pixel 4 XL API 31/Pixel 2 API 29

▪ Language used: Java

DEPT OF CSE GEC, KARWAR 2021-22 5


QUIZ APPLICATION

CHAPTER 3

SYSTEM DESIGN

3.1 FLOWCHART

Fig 3.1.1: Flowchart of Quiz Application

DEPT OF CSE GEC, KARWAR 2021-22 6


QUIZ APPLICATION

3.2 EXPLANATION

➢ Initially the user on opening the app enters the main menu of the application.

➢ The user is presented with two options namely the name and start.

➢ The user needs to enter their name before proceeding.

➢ After that there is a option available start.

➢ On clicking the start button the user is directed towards the quiz presented with one
question and four option.

➢ For every correct answer a pop-up messages are shown as correct and for the wrong
vice versa.

➢ If the user wishes to discontinue the quiz, then they can quit.

➢ After dynamically displaying 10 questions the user is presented with the score.

➢ The score describes correct answered, wrong answered and points.

➢ If the user wish they can quit the quiz or click on restart and play it again.

➢ In this manner the Quiz application works to provide required services.

DEPT OF CSE GEC, KARWAR 2021-22 7


QUIZ APPLICATION

CHAPTER 4

IMPLEMENTATION

4.1 List of Classes Imported

❖ Bundle: Bundles are generally used for passing data from one activity to another
activity.

❖ Intent: Intent is the message that is passed between components such as activities,
content providers, broadcast receivers, services etc.

❖ Text View: A user interface element that displays text to the user.

❖ Edit Text: A Edit Text is an overlay over Text View that configures itself to be
editable. It is the predefined subclass of Text View that includes rich editing
capabilities.

❖ Toast: A toast is a view containing a quick little message.

❖ Button: Button is a subclass or Text View and Compound Button is a subclass od


Button class. There are different types of buttons in android such as Radio Button,
Toggle Button, Compound Button etc.

❖ App Compat Activity: Alternate constructor that can be used to provide a default
layout that will be in flated as part of super.

❖ View: These are invisible view container that define how the child view are laid out
,such as in grid or a vertical list.

DEPT OF CSE GEC, KARWAR 2021-22 8


QUIZ APPLICATION

4.2 List of Functions Used

❖ findViewById(): Finds a view that was identified by the id attribute from the XML
that was presented in On Create (Bundle).

❖ getText(): To get text entered in the Edit Text views

❖ toString(): It’s a method in java’s Object class, which is the superclass of every java
object. It is meant for returning textual representation of an object.

❖ getName(): Method class is helpful to get the name of methods, as a String. To get
the name of all methods of a class, get all the methods of that class object.

❖ putExtra(): Adds extended data to the intent. It has two parameters, first one
specifies the name of the extra data, and second parameter is the data itself.

❖ getInstance(): Provided class is used to return Signature object that implements the
specified signature algorithm

❖ setOnClickListener(): OnclickListener wires the listener to the button using


setOnClickListener. As a result, the system executes the code you write in on Click
after the user presses the button

❖ setText(): It is used to set the text to be displayed in the Text View either when
declaring in the layout file, or by using this method

❖ setClickable(): Defines whether the view reacts to the click events

❖ setEnabled():. The function must usually be called in the context of a user action,
such as click handler for a button.

DEPT OF CSE GEC, KARWAR 2021-22 9


QUIZ APPLICATION

CHAPTER 5
SNAPSHOTS

Fig 5.1: Start Page

DEPT OF CSE GEC, KARWAR 2021-22 10


QUIZ APPLICATION

Fig 5.2: Correct Choice

DEPT OF CSE GEC, KARWAR 2021-22 11


QUIZ APPLICATION

Fig 5.3: Wrong Choice

DEPT OF CSE GEC, KARWAR 2021-22 12


QUIZ APPLICATION

Fig 5.4: Asks user to select a particular choice

DEPT OF CSE GEC, KARWAR 2021-22 13


QUIZ APPLICATION

Fig 5.5: Result

DEPT OF CSE GEC, KARWAR 2021-22 14


CONCLUSION
Using Android studio gives us more flexibility, thus the Quiz App is very important in
future learning systems, it can be easily adopted by educational institutions and universities in
order to make the quiz more flexible and safer. This gives the system maximum benefit by
demonstrating carefully each subsystem service.

The proposed system is easy and flexible for future maintenance and development
because each subsystem can be handled separately without influence on another system. The
results are shown instantly to users, with the number of wrong as well as correct answers.
REFERENCES
[1] https://developer.android.com/studio/
[2] https://www.geeksforgeeks.org/
[3] https://www.w3schools.com/java/
[4] https://www.tutorialspoint.com/android/android_studio.htm
[5] https://youtu.be/EKgqkQsmvKY

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy