Anda di halaman 1dari 56

Android based Quiz Application

By
Muhammad Junaid
BCS 2011-2015

A Report Submitted to the Faculty of the Institute of Management Sciences, Peshawar, in


Partial Fulfillment of the Requirements for the Degree of
Bachelor in Computer Science

INSTITUTE OF MANAGEMENT SCIENCES PESHAWAR


1

Session 2011-2015
Certificate of Approval
I certify that I have read Android based Quiz Application by
MUHAMMAD JUNAID, and in my opinion this work meets the criteria for approving a
Thesis submitted in partial fulfillment of the requirements for the Bachelors of
Computer Science at Institute of Management Sciences, Peshawar.

Supervisor
Name: Dr. Fakhir alam.
Designation: Assistant Professor
Signature: ______________

Coordinator Computer science Department


Name: Dr. Furqan
Signature: _____________

EXORDIUM

In the name of Allah, the Compassionate, the Merciful.


Praise be to Allah, Lord of Creation,
The Compassionate, the Merciful,
King of Judgment-day!
You alone we worship, and to you alone we pray for help,
Guide us to the straight path
The path of those who you have favored,
Not of those who have incurred your wrath,
Nor of those who have gone astray.

DEDICATION

We dedicate our dissertation work to our family


, Special feeling of gratitude to our loving
Parents. Without their patience, understanding,
Support and almost of all love, the completion
Of this work would not have been possible.

Contents
LIST OF FIGURES_________________________________________________________________7
CHAPTER 1_______________________________________________________________________10
1.1 INTRODUCTION________________________________________________________________10
1.2 WHY I CHOOSE ANDROID?______________________________________________________10
1.3 SCOPE_________________________________________________________________________10
1.4 GOALS_________________________________________________________________________11
CHAPTER 2_______________________________________________________________________12
2.1 PROJECT DEVELOPMENT APPROACH___________________________________________12
2.1.1 REQUIREMENTS ANALYSIS (REQUIREMENTS PHASE)___________________________________13
2.1.3. SOFTWARE DEVELOPMENT PHASE_________________________________________________13
2.1.4 SOFTWARE TESTING PHASE_______________________________________________________14
2.2 SOFTWARE REQUIREMENTS SPECIFICATIONS:__________________________________14
2.3 FOR WEB SERVER______________________________________________________________15
2.4 HARDWARE REQUIREMENTS___________________________________________________15
2.5 PROPOSED LANGUAGES AND TOOLS____________________________________________16
2.6 FUNCTIONAL REQUIREMENTS_________________________________________________16
3.1 SYSTEM ARCHITECTURE_______________________________________________________17
3.2 ANDROID RUNTIME____________________________________________________________18
3.3 APPLICATION FRAMEWORK____________________________________________________19
3.4 APPLICATIONS_________________________________________________________________19
5

3.5 APPLICATION FRAMEWORK____________________________________________________20


EXPENDED USE CASES____________________________________________________________21
SYSTEM SEQUENCE DIAGRAM_____________________________________________________29
ENTITY RELATIONSHIP DIAGRAM (ERD)___________________________________________32
CLASS DIAGRAM__________________________________________________________________33
CHAPTER 4_______________________________________________________________________35
ANDROID FRAME WORK COMPONENT_____________________________________________35
4.1 ANDROID MANIFEST___________________________________________________________35
4.2 ACTIVITY:_____________________________________________________________________39
4.3 INTENTS_______________________________________________________________________39
4.3.1 EXPLICIT INTENTS_______________________________________________________________40
4.3.2 IMPLICIT INTENTS_______________________________________________________________40
4.4 WEB SERVICES:________________________________________________________________41
CHAPTER 5 IMPLEMENTATION___________________________________________________44
5.1 SCREEN SHORTS_______________________________________________________________44
CHAPTER 6 SOFTWARE TESTING __________________________________________________47
CHAPTER 7_______________________________________________________________________48
CONCLUSION_____________________________________________________________________48
FUTURE WORK___________________________________________________________________48
REFRENCE________________________________________________________________________49
COPYRIGHTS NOTICE_____________________________________________________________50
6

List of Figures
Figure [01] water fall..12
Figure [2] of android version..15
Figure [3] System architecture17
Figure [4] use case 120
Figure [5] Expended use cases 1..21
Figure [6] Expended use cases 2..22
Figure [7] Expended use cases 3...23
Figure [8] Expended use cases 424
Figure [9] Expended use cases 525
Figure [10] Expended use cases 6..26
Figure [11] Expended use cases 7..27
Figure [12] Expended use cases 8..28
Figure [13] System sequence diagram 1.29
Figure [14] System sequence diagram 2.30
Figure [15] Data flow diagram 1.30
Figure [16] Data flow diagram 2.31
Figure [17] Entity relationship diagram..32
Figure [18] Class Diagram 133
Figure [19] Class Diagram 234
Figure [20] web login ..41
Figure [21] View Question ..42
7

Figure [22] Delete Question..42


Figure [22] Add Question..43
Figure [23] Logout ... 43
Figure [24] Main screen.44
Figure [24] Category selection..
.45
Figure [25] Question screen...
46

Abstract
8

This document is created for determining all the features and procedures that were followed
while developing the system. This document explains the details of the android application and
how it was developed and its primary requirements and different functionality of the project and
producers followed to achieve these objects. The point of this task to provide android users with
such a medium that facilitate the quiz for the educational purpose it is very useful for the users to
gain knowledge and enhancing their IQ level this system is very helpful for multiple choice
questions it is easily available app for the android smart phones that captures most of market
share thats the reason I chose android operating system.

Chapter 1
1.1 Introduction
It is an android project fashioned to make education fun. Our idea was to generate a crossplatform application that combines elements such as gaming, quiz based on content that the user
9

is interested to learn. The application should give users an easy way to repeat curriculum, learn
about new topics and work as a place to look for references and tips. The application should be
easy to use and pause making it easy to work with at any time in any place.

1.2 Why I choose android?

1.3 Scope
The scope of this project is very broad in terms of learning and preparing for entry test user can
use this app anywhere and anytime user location does not matter this system handle all the
operation and generate reports as soon the quiz is complete. The administrator maintain the data

base for inserting deleting and upgrading the questions. This app also covers different topics of
interest .that is very useful for students of all levels.

1.4 Goals

The goal of the project is to have a functional running prototype of the application and
complete the requirements of the course.
10

Our application ware have a server for insertion and delectation the questions for the quiz

application
Also in android phone application integrated with the server and provide a friendly
learning environment to the user

11

Chapter 2
2.1 PROJECT DEVELOPMENT APPROACH

Fig
ure
[01]
water

fall

12

2.1.1 Requirements Analysis (Requirements Phase)

2.1.3. Software Development Phase

13

2.1.4 Software Testing Phase

2.2 Software requirements specifications:


For Mobile
I observed that most of the Android users have 4.0 and onwards versions of Android but it was
also noticed that there are people who use the older versions of Android so I kept the minimum
required version for this application as 2.2 (Froyo) and the maximum as the latest version i-e: 4.4
(Kit Kat). This application would be updated as new versions of Android are launched.

14

Figure [2] of android version

2.3 For web server


Operating system
Apache server

Windows 7 or higher /Linux


Xampp

2.4 Hardware requirements for development


Processer
Ram
Hard Drive
Monitor
Keyboard
Mobile Set

Intel core 2 duo or higher


4GB
10GB
HDMI
104 Keys
Android smart phone

2.5 Proposed languages and tools


Front End
Back End
Programing language

Android
MySQL
Java using android studio

15

2.6 Functional requirements

16

Chapter 3
System architecture and design
3.1 System architecture

Figure [3] System architecture

Having covered the Java-based core libraries in the Android runtime, it is now time to turn our
attention to the C/C++ based libraries contained in this layer of the Android software stack.

17

3.2 Android Runtime

18

3.3 Application Framework

3.4 Applications

19

3.5 Application Framework


The Application Framework level provides higher-level service for presentations in the form of
Java classes. Application developers are indorsed to variety use of these facilities in their
applications.

System design

Figure [4] use case 1

20

21

Expended use cases

22

Expended use cases 1

23

Figure [5] Expended use cases 1

Expended use cases 2

Figure [6] Expended use cases 2

24

Expended use cases 3

Figure [7] Expended use cases 3


25

Expended use cases 4

26

Figure [8] Expended use cases 4

Expended use cases 5

Figure [9] Expended use cases 5


27

Figure [10] Expended use cases 6

28

Figure [11] Expended use cases 7

29

Figure [12] Expended use cases 8

30

System sequence diagram

Figure [13] System sequence diagram 1

31

Figure [14] System sequence diagram 2

Data flow diagram

Figure [15] Data flow diagram 1

32

Figure [16] Data flow diagram 2

33

Entity relationship diagram (ERD)

Figure [17] Entity relationship diagram

34

Class Diagram

Figure [18] Class Diagram 1

35

Class Diagram 2

Figure [19] Class Diagram 2

36

Chapter 4
Android frame work component
In this chapter we will discuss about android frame work

37

4.1 Android Manifest

38

39

40

41

42

43

4.2 Activity:

4.3 Intents

44

4.3.1 Explicit Intents

4.3.2 Implicit Intents

4.4 Web Services:


Web services are also referred as application services. Web services generally contain some
permutation of programming and information, but feasibly include human resources as well,

45

which

4.41 Web Shots

46

Figure [20] web login

Figure [21] View question

Figure [22] Delete question


47

Figure [22] Add question

Figure [23] Logout

48

Chapter 5 Implementation
5.1 SCREEN SHORTS

Main screen

Figure [24] Main screen

49

Category selection

Figure [24] Category selection

50

Question

Figure [25] Question

51

Chapter

Software testing
6.1 Black Box Testing:
Black Box Testing is not a type of testing; it instead is a testing strategy, which does not need any
knowledge of internal design or code etc. As the name "black box" suggests, no knowledge of
internal logic or code structure is required. The types of testing under this strategy are totally
based/focused on the testing for requirements and functionality of the work product/software
application. Black box testing is sometimes also called as "Opaque Testing". The base of the
Black box testing strategy lies in the selection of appropriate data as per functionality and testing
it against the functional specifications in order to check for normal and abnormal behavior of the
system.

6.2 White Box Testing:


White box testing strategy deals with the internal logic and structure of the code. White box
testing is also called as glass, structural, open box or clears box testing. The tests written based
on the white box testing strategy incorporate coverage of the code written, branches, paths,
statements and internal logic of the code etc. In order to implement white box testing, the tester
has to deal with the code and hence is needed to possess knowledge of coding and logic i.e.
internal working of the code. White box test also needs the tester to look into the code and find
out which unit/statement/chunk of the code is malfunctioning.

52

Chapter 7
Conclusion
The prime resign for this project is to developed effectual and controlling android app which is
used for educational and learning process this application is its mass and fast Quiz application
agree its user to select their area of attentiveness and gain knowledge by taking Quiz. The adman
of the app need authentication to log in in web server , adman can change the question by adding
and removing questions user dont need login authentication to play the app.

Future work
I will implement this application for IOS devices in the future so that all smart phone users can
access it and benefit from it. I will make advance changes like; friendly user interface interesting
categories for questions make your own quiz and time correction module. This project may be
available for educational institutions for their exams.

53

REFRENCE
1) Why I choose android available at:
http://www.androidauthority.com/why-developers-choose-android-285774/
(Accessed: 20 December, 2015)
2) Project Development Approach available at:
http://xbsoftware.com/blog/software-development-life-cycle-waterfall-model/
(Accessed: 22 December, 2015)
3) Android frame work component available at:
http://www.tutorialspoint.com/android/android_application_components.htm
(Accessed: 22 December, 2015)
4) Activity available at:
http://developer.android.com/intl/ja/reference/android/app/Activity.html
(Accessed: 22 December, 2015)
5) Web Services available at:
http://www.vogella.com/tutorials/AndroidIntent/article.html
(Accessed: 23 December, 2015)

54

Copyrights Notice
This research dissertation under the title android base Quiz application is the intellectual property
of supervisor and Muhammad Junaid No part of this document may be reproduced, stored in any
retrieval system or used otherwise without the prior permission of the author. I hereby allow
Institute of Management Sciences to make copies of this dissertation for academic purposes only.
Any individual/organization may make copies of this document for non-commercial purposes
with prior permission of the author.

__________________
Muhammad Junaid
BCS (Hons)

55

Anda mungkin juga menyukai