0% found this document useful (0 votes)
137 views58 pages

Kundan Kumar

This document summarizes a student project on developing an artificial intelligence based quiz competition. It includes an acknowledgment section thanking various individuals for their support and guidance. It also includes a certificate and declaration by the student confirming this is their original work. An attached curriculum vitae provides details of the guide for this project such as their educational qualifications, publications, seminars attended and areas of expertise. The overall document provides details on the student project for developing a quiz competition using artificial intelligence.

Uploaded by

Raj Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
137 views58 pages

Kundan Kumar

This document summarizes a student project on developing an artificial intelligence based quiz competition. It includes an acknowledgment section thanking various individuals for their support and guidance. It also includes a certificate and declaration by the student confirming this is their original work. An attached curriculum vitae provides details of the guide for this project such as their educational qualifications, publications, seminars attended and areas of expertise. The overall document provides details on the student project for developing a quiz competition using artificial intelligence.

Uploaded by

Raj Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 58

‘Artificial Intelligence Based

Quiz Competition’
AN PROJECT SUBMITTED
IN PARTIAL – FULFILMENT OF THE REQUIREMENT
FOR THE AWARD OF THE DEGREE
OF

BACHELOR OF SCIENCE
(COMPUTER APPLICATION)
BY

KUNDAN KUMAR (20MCRBS580045)

DEPARTMENT OF BCA
MARWARI COLLEGE
RANCHI -834001

(2020 - 2023)
ACKNOWLEDGEMENT

This thesis work has been an intellectually invigorating experience for me.
I am sure that the knowledge and experience gathered during the course
of this work will make me stand in good stead in future.
With immense pleasure and due respect I express my sincere gratitude to
In-charge, Marwari college Ranchi, for all his support and co-operation in
successfully completing this thesis work by providing excellent facilities.

I am highly grateful to the Department Coordinator Mr. Prakash Kumar


for her ever helping attitude and encouraging us to excel in studies,
besides, she has been a source of inspiration during my entire period of
BCA.

I would also like to extend my sincere gratitude to all faculties’ members


and staff for helping me in my college during my BCA course.
I would like to take this opportunity to extend my sincere gratitude and
thanks to my Pioneer Dr. Archana Kumari, firstly for coming up with such
an innovative thesis idea. He has not only made us to work but guided
us to orient toward research. It has been real pleasure working under
his guidance and it is chiefly his encouragement and motivation that
has made this thesis a reality.

Last, but not the last I am heartily thankful to almighty God for showering
his blessing forever during my entire life and also to my family members
for providing me a great support.
CERTIFICATE FOR PROJECT

This is to certify that this is a bona fide record of the project work entitled
“Artificial Intelligence Based Quiz Competition” done satisfactory at
“Marwari College Ranchi”
By
KUNDAN KUMAR (20MCRBS580045)
In partial fulfillment of BCA Examination.

This report or similar report on the topic has not been submitted for any other
examination and doesn’t form part of any other course undergone by the candidate.

INTERNAL GUIDE EXTERNAL GUIDE

UNDER THE GUIDANCE OF

Dr. ARCHANA KUMARI


Declaration by the Candidate
KUNDAN KUMAR (20MCRBS580045)
Hereby declare that the work, which is being presented in the dissertation, entitled
“Artificial Intelligence Based Quiz Competition”, in partial fulfillment of
requirement for the award of the degree of “Bachelor of Computer Application”
submitted in Marwari College, Ranchi is an authentic record of our work carried out
under theguidance of Dr. Archana Kumari

We have not submitted the matter embodied in this dissertation for the award
Of any other degree.
CURRICULUM VITAE

Name: Dr. Archana Kumari

Department: Computer Application

Designation: Assistant Professor

Date of joining Ranchi University: 3rd November 2006

Educational Qualifications / Year of Certification


• Ph.D. From Vinoba Bhave University
Title: Study on Parametric Optimization of Molding Sand System
using Soft Computing Techniques.
• M.Tech. (Computer Science and Engineering): BIT Mesra, Ranchi
Book Published:

Name of book Published by year ISBN


Elementary Disha International 2019 978-93-87002-17-3
Computer Publishing House
Application

Chapters in Books:

Title of Chapter Name of Book Year ISBN No


Development of Demand The Next Leap: 2014 978-93-83842-10-0
Forecasting Model for Retail Exploring New
Inventory Management: A Paradigms in
Soft Computing Based business
Approach
Prediction of Green Sand Advances in 2020 ISBN: 978-81-
Moulding Properties using Science & 946375-0-9
Artificial Neural Network Technology
Publication on International Journal

Title of Paper Name of Journal Year ISSN No

Retail Forecasting using Neural International Journal of 2013 2278-6856


Network and Data Mining Emerging Trends and
Technique: A Review and Technology in Computer
Reflection. Science (UETTCS), Vol.
2, Issue -6, pp 266-276
PREDICTION OF International Journal of 2019 2394-7780
PERMEABILITY OF CLAY Advance and Innovative
BONDED MOULDING SAND Research, Volume 6, Issue
MIX: NEUROFUZZY BASED 2(XXVI): April-June
APPROACH 2019, pp 32-39
Multi-objective Parametric IEEE Xplore 2016 Electronic
Optimization of Green Sand ISBN:978- 1-
Moulding Properties using Genetic 4799- 8579-1
Algorithm
"the Green Sand Moulding Process IEEE Xplore 2020 Electronic
using Grey Taguchi Method Multi ISBN:978- 1-
Response Optimization of 7281- 5830-3

Details of Seminars/Webinar/ Workshops/FDP/ Refresher/ Orientation Attended:

Nature of Program Period Topic Conducted by


attended
Refresher 09-09-2015 to Fundamental of soft Indian School of Mines,
13-09-2015 computing and its Dhanbad
application
Refresher 09-09-2015 to Software IIT Kharagpur
13-09-2015 Engineering
Refresher 22.02.2006 to Information UGC
14-03-2006 Technology
Workshop 22-24 june Recent trends in NIT, Rourkela
2009 Object Oriented
Software Testing
Workshop 27 April to 28 Hack-Trick's Zonal Wegilant Net Solutions Pvt. Ltd.,
Mumbai with Ecell, IIT Bombay at
April 2013 Leg,a Ethical Hacking University Polytechnic, B.I.T, Mesra
& Cyber Security
National 9th and Need for Vocational National Institute of Foundry
and
Seminar cum 10th Education and Forge Technology (NIFFT)
Exhibition September,2008 Training in Jharkhand and Ministry of Human
Resource Development,
Government of Jharkhand
Seminar 28th February- Global Warming & Marwari College, Ranchi
1st March 2011 Environmental
Conservation
Seminar 29th-30 th April Role of Ethics In Marwari College, Ranchi
2017 Professional and with Ranchi College, Ranchi
Public Life Ranchi University, Ranchi.
Faculty 19 April 2014 LaTeX Ranchi College, Ranchi with
Development Spoken Tutorial Project, IIT
Programme Bombay
Faculty 22-26 may Artificial Intelligence Chaitanya Bharti Institute of
Development 2020 technology,hyderabad,
programme Telangana
Orientation 28th May 2008 Orientation IGNOU Regional Centre,
Programme for Ranchi.
Coordinators
/Programme Incharges
& Academic
Counsellors
Webinar 15 june 2020 2020 Trends in Jharkhand Rai University in
Workforce association with Nirmala
Productivity through College, Ranchi
Computer
Application
Publication on International/National Seminar

Nature of Program Period Title of Paper Topic Conducted by


ICCSEA 2020 March Multi Response International GIET University,
13,14 Optimization of the Conference on Gunupur, India
2020 Green Sand Computer Science,
Moulding Process Engineering and
using Grey Taguchi Applications
Method (ICCSEA 2020)
International Dec 15- Multi Response 3d International Materials
Conference 18, 2019 Optimization of the Conference on Research.
Green Sand Frontiers in Materials Society(MRS),
Moulding Process Processing. Singapore
using Grey Application,
relational analysis Research and
in the Taguchi Technology
Method
3rd IEEE March 03- Multi-objective Recent Advancement Indian School of
International. 05, 2016 Parametric in Information. Mines, Dhanbad-
Conference Optimization of Technology 826004
Green, Sand (Jharkhand)
Moulding INDIA.
Properties using
Genetic Algorithm
International February Development of The Next Leap: Centre for
Conference 6-7 2014 Demand Exploring New Business
Forecasting. Model Paradigms in Administration
for Retail Inventory Business Central
Management: A University of
Soft Computing Jharkhand,
Based Approach Ranchi
National Seminar February Purchase Challenges In Central
8- 9, 2014 Dependency based Mathematical University of
Demand Science Jharkhand,
Forecasting for Ranchi, INDIA
Retail Inventory
Management"
National Seminar February Management" Challenges In Central
8- 9, 2014 Demand Mathematical University of
Forecasting Using Science Jharkhand,
Intelligent Ranchi, INDIA
Modelling
Techniques
National Seminar February Retail Sales Challenges In Central
8- 9, 2014 Forecasting: A Mathematical University of
multivariate Fuzzy Science Jharkhand,
logic baesd Ranchi, INDIA
Approach
National Seminar 29th-30 th Machine Ethics: A Role of Ethics In Marwari College,
April Future Challenges Professional and & Ranchi
2017 of Artificial Public Life College, Ranchi
Intellegence University Ranchi
National Conference 30-31 Multi-objective Advancement in Department of
Aug. 2019 Parametric Material Processing Metallurgical and
Optimization of Technology(AIMPT- Material
Clay Bonded 19) Engineering,NIT
Moulding Sand Jamsedpur
Mix: Taguchi
Method and
Genetic Algorithm
Based Approach
Workshop 22-24 Software Testing: Recent trends in NIT, Rourkela
June 2009 An overview Object Oriented
Software Testing

Counseling Services Rendered:


• Name of Institution: Indira Gandhi Open University
• Experience in years as counselor:17 years
• Subjects/Key areas of counseling: Computer Science

Other Experience Details in any other Institution:

Worked in Government Women's Polytechnic, Ranchi from January 1996 to


August 1998
A. Resource Person in seminar cyber security at Department of Computer
Application,
Nirmala College Ranchi, on 11th February 2016.
B. Coordinated a Short-Term Course in Computer Literacy and Web
Awareness under Technical Education Quality Improvement Programme
(TEQIP) scheme at National Institute of Foundry and Forge Technology
(NIFFT), Hatia, Ranchi, from May 15-19, 2006.

Address for Correspondence:


Dr. Archana Kumari
W/O Prof. (Dr.) Rajkumar Ohdar
Qr No.- PI, NIFFT Colony NIFFT,
Hatia, Ranchi-834003
Mob.: 9431389410
Email id: [email protected] (Dr.Archana Kumari)
Computer Education Centre, Lalpur, Ranchi
A Registered Enterprise Under Govt.OfIndia,Ministry Of Micro,Small& Medium Enterprise
RegNo:JH20D0019792
An ISO 9001:2008(QMS) CERTIFIED INSTITUTION

Report on “Job Tranining”


Name : KUNDAN KUMAR
Course : BCA
College : MARWARI COLLEGE
Exam Roll No: 20MCRBS580045
Topic : ANDROID

ON JOB TRAINING REPORT- ATTENDANCE SHEET


DATE SIGNATURE
TIME DURATION TOPIC
(dd-mm-yyyy) OF OJT GUIDE
INTRODUCTION
1 1-2-2023 3:00 - 5:00 p.m. 120 MINUTES & HISTORY OF
ANDROID
INSTALL ATION
2 2-2-2023 3:00 - 5:00 p.m. 120 MINUTES OF ANDROID
STUDIO
CREATING GUI
3 3-2-2023 3:30 - 5:30 p.m. 120 MINUTES IN ANDROID
STUDIO
WORK ON
ANDROID
STUDIO
4 6-2-2023 3:30 - 5:30 p.m. 120 MINUTES COMPONENTS(L
ABEL,TEXT
BOX,COMBO
BUTTON)
WORK ON
ANDROID
STUDIO
COMPONENTS
5 7-2-2023 3:30 - 5:30 p.m. 120 MINUTES
(IMAGE
FLIPPER,LIST
VIEW,TEXT
VIEW)
WORK ON
ANDROID
STUDIO
6 8-2-2023 3:30 - 5:30 p.m. 120 MINUTES COMPONENTS(S
PINNER,IMAGE
TEXT,TIME
PICKER)
CONTROL
7 9-2-2023 3:30 - 5:30 p.m. 120 MINUTES STATEMENT(SW
ITCH CASE)
CONTROL
8 10-2-2023 3:30 - 5:30 p.m. 120 MINUTES STATEMENT(IF
ELSE)
LOOPING
9 13-2-2023 3:30 - 5:30 p.m. 120 MINUTES STATEMENT(DO
WHILE)
LOOPING
10 14-2-2023 3:30 - 5:30 p.m. 120 MINUTES STATEMENT(DO
WHILE,FOR)
LOOPING
11 15-2-2023 3:30 - 5:30 p.m. 120 MINUTES STATEMENT(WH
ILE LOOP)
12 16-2-2023 3:30 - 5:30 p.m. 120 MINUTES. ARRAY LIST
IMPLEMENTATI
13 17-2-2023 3:30 - 5:30 p.m. 120 MINUTES ON OF ARRAY
LIST
INTRODUCTION
14 18-2-2023 3:30 - 5:30 p.m. 120 MINUTES
TO SQLITE
DATABASE
15 19-2-2023 3:30 - 5:30 p.m. 120 MINUTES CONNECTIVITY
BY SQLITE
PERFORMING
FUNDAMENTAL
OPERATION ON
16 22-2-2023 3:30 - 5:30 p.m. 120 MINUTES
DATABASE LIKE
INSERT
&DELETE
PERFORMING
FUNDAMENTAL
OPERATION
17 13-2-2023 3:30 - 5:30 p.m. 120 MINUTES
LIKE
SEARCH&UPDA
TE
INTRODUCTION
18 14-2-2023 3:00 - 5:30 p.m. 120 MINUTES
TO XML
ADVANTAGES
19 25-2-2023 3:00 - 5:30 p.m. 120 MINUTES &DISADVANTA
GES OF XML
GUI DESINGING
BY SQLITE IN
20 01-3-2023 3:30 - 5:30 p.m. 120 MINUTES
ANDROID
STUDIO
PROJECT
21 2-2-2023 3:30 - 5:30 p.m. 120 MINUTES
SUBMISSION
ABSTRACT

Artificial intelligence based quiz competition project is developed or implemented in


PYTHON platform. This project is helpful for students to practice different mock
examinations from this site. In current generation lots of the examinations like SSC,
UPSC, JPSC, RAILWAY etc… is conducted through online system. This project will help
students to get practiced to online examination method by taking mock tests from this
web portal. Artificial intelligence based quiz competition portal is implemented in &
modules student examination module and examination admin module. Admin module will
add multiple courses under different branches so students can easily know about test
details. Student quiz module students ought to register with application and choose
interested courses and participate in the online test.

LIFE CYCLE MODEL


Feasibility
Study
Requirement
Analysis And
Specification
Design

Coding And
Unit Testing
Integration And
System Testing

Maintenance
SYSTEM ANALYSIS
System analysis is the process of gathering and interpreting facts, diagnosing
problems and using the information to recommend improvements on the
system. System analysis is a problem solving activity that requires intensive
communication between the system users and system developers.

System analysis or study is an important phase of any system development


process. The system is viewed as a whole, the inputs are identified and the
system is subjected to close study to identify the problem areas. The
solutions are given as a proposal. The proposal is reviewed on user request
and suitable changes are made. This loop ends as soon as the user is
satisfied with the proposal.

EXISTING SYSTEM
The current system for shopping is to visit the shop manually and from the
available product choose the item customer want and buying the item by
payment of the price of the item.
1. It is less user-friendly.
2. User must go to shop and select products.
3. It is difficult to identify the required product.
4. Description of the product limited.
5. It is a time consuming process
6. Not in reach of distant users.
PROPOSED SYSTEM
In the proposed system customer need not go to the shop for buying the
products. He can order the product he wish to buy through theapplication in
his Smartphone. The shop owner will be admin of the system. Shop owner
can appoint moderators who will help owner in managing the customers
and product orders. The system also recommends a home delivery system
for the purchased products.
SYSTEM REQUIREMENT SPECIFICATION
1. GENERAL DESCRIPTION
Product Description:
The system consists of two parts .A web application which can provide the
online shopping service and an android application for the customer
toaccess the web service from his Smartphone. Web application should be
able to help the customer for selecting his item and to help the owner in
managing the orders from the customers.
Problem Statement:
As online shopping became a trend nowadays the regular shops are losing
their customers to online brands. Customers have effortless shopping
experience and saving time through shopping online. For competing with
those online brands, If shops are providing an online portal where their
customers can shop through internet and get the products at their doors it
will increase the number of customers.

FEASIBILITY STUDY
WHAT IS FEASIBILITY STUDY?
The feasibility study involves the analysis of the problem and collection of all
relevant information relating to the product such as the different data items
which would be input to the system, the processing required to be carried
out on these data, the output data required to be produced by the system,
as well as various constraints on the behavior of the system

❖ Technical Feasibility
❖ Economic Feasibility
❖ Operational Feasibility

TECHNICAL FEASIBILITY
In the feasibility study first step is that the organization or company has to
decide that what technologies are suitable to develop by considering
existing system. Here in this application used the technologies like PHP,
HTML, JAVA SCRIPT,CSSandMySQL

ECONOMICAL FEASIBILITY

It refers to the benefits or outcomes we are deriving from the product as


compared to the total cost we are spending for developing the product. If
the benefits are more or less the same asthe older system, then it is not
feasible to develop the product. In the present system, the development of
new product greatly enhances the accuracy of the system and cuts short the
delay in the processing of Birth and Death application. The errors can be
greatly reduced and at the same time provides a great level of security. Here
we don’t need any additional equipment except memory of required
capacity. No need for spending money on client for maintenance because
the database used is web enabled database.
OPERATIONAL FEASIBILITY
Not only must an application make economic and technical sense, it must
also make operational sense; Very often we need to improve the existing
operations, maintenance, and support infrastructure to support the
operation of the new application that you intend to develop. To determine
what is the impact we will need to understand both the current operations
and support infrastructure of our organization and the operations and
support characteristics of our new application

TESTING
Testing is a process of executing a program with a intent of finding an error.
A good test case is one that has a high probability of finding an error that is
yet undiscovered. A successful test is one that uncovers a yet undiscovered
error. Testing cannot show the absence of defects, it can only show software
defects that are present.

TEST CASE DESIGN


White box Testing:
White box testing is a test case design method that uses the control
structure of the procedural design to derive test cases. Using white box
testing method, the software engineer can derive test cases that guarantee
that all independent parts within a module have been exercised atleast
once, exercise all logical decisions on their true and false sides, execute all
loops at their boundaries and within their operational bounds and exercise
internal data structures to ensure their validity.
Black box testing:
Black box testing method focus on functional requirements of the software.
That is , black box testing enables the software engineer to derive sets of
input condition that will fully exercise all functional requirements for a
program.

Black box testing attempts to find errors in the following


categories:
1.Incorrect or missing functions
2.Interface errors and performance errors
3.Errors in data structures or external database access.
4.Performance errors
5.Initialization and termination errors.
TESING STRATEGIES

A software strategy for software testing integrates software test case design
techniques into a well-planned series of steps that result in successful
construction of software.
There are four types of strategies:
Unit test:
Unit testing focuses on verification effort on the smallest unit of software
design module.
The test is always white box oriented, and the step can be conducted in
parallel for multiple modules.This testing is carried out during coding stage.
Integration test:
Integration testing is a systematic technique for construction of program
structure while the time of conducting tests to uncover errors associated
with interfacing. The objective is to take unit-tested modules and build a
program structure that has been dictated by the design
Validation test:
Validation testing is a final series of software testing. Validation testing
succeeds when the software function in a manner that can be reasonably
expected by the customer. Software validation is achieved through a series
of black box tests that demonstrate conformity with requirements.
System test:
After integration of all modules of the system it will give appropriate
information , expected to the user.
MAINTENANCE
Software maintenance in software engineering is the modification of a
software product after delivery to correct faults, to improve performance or
other attributes.
A common perception of maintenance is that it merely involves fixing
defects. However, one study indicated that over 80% of maintenance effort
is used for non-corrective actions.
This perception of maintenance is perpetuated by users submitting problem
reports that in reality are functionality enhancements to the system. More
recent studies put the bug-fixing proportion closer to 21%.

SYSTEM DESIGNS
System design is the solution for the creation of a new system. This phase
focuses on the detailed implementation of the feasible system. It emphasis
on translating design. Specifications to performance specification. System
design has two phases of development
 Logical design
 Physical design
During logical design phase the analyst describes inputs (sources), output
s(destinations), databases (data sores) and procedures (data flows) all in a
format that meets the user requirements. The analyst also specifies the
needs of the user at a level that virtually determines the information flow in
and out of the system and the data resources. Here the logical design is
done through data flow diagrams and database design. The physical design
is followed by physical design or coding. Physical design produces the
working system by defining the design specifications, which specify
exactly what the candidate system must do. The programmers write the
necessary programs that accept input from the user, perform necessary
processing on accepted data and produce the required report on a hard
copy or display it on the screen.

INPUT AND OUTPUT DESIGN


INPUT DESIGN:
Input design is the link that ties the information system into the world of its
users. The input design involves determining the inputs, validating thedata,
minimizing the data entry and provides amulti-user facility.Inaccurate inputs
are the most common cause of errors in dataprocessing. Errors entered by
the data entry operators can be controlled by input design. The user-
originated inputs are converted to a computer based format in the input
design. Input data are collected and organized into groups of similar data.
Once identified, the appropriate input media are selected for processing. All
the input data are validated and if any data violates any conditions, the user
is warned by a message. If the data satisfies all the conditions, it is
transferred to the appropriate tables in the database. In this project the
student details are to be entered at the time of registration. A page is
designed for this purpose which is user friendly and easy to use. The design
is done such that users get appropriate messages when exceptions occur.
OUTPUT DESIGN:
Computer output is the most important and direct source of information to
the user. Output design is a very important phase since the output needs to
be in an efficient manner. Efficient and intelligible output design improves
the system relationship with the user and helps in decision making. Allowing
the user to view the sample screen is important because the user is the
ultimate judge of the quality of output. The output module of this system is
the selected notifications.
Artificial intelligence

Artificial intelligence makes it possible to reduce resource use and process vast amounts
of data, and, in certain cases, make better decisions than humans. It can even reduce
stress in fish.
Artificial intelligence (AI) is a word on everyone’s lips. Computing power and the sheer
amount of data to be processed are growing exponentially. With AI, vast opportunities
are opening up for performing tasks that used to require human intelligence in better,
faster and more efficient ways.
The term "Artificial Intelligence" (AI) has become an integral part of our everyday life. Almost all of us
use AI in some form or another - sometimes without even noticing it. For example, when unlocking our
smartphone via face recognition, when using Instagram, Facebook and other social media platforms or
when shopping online.

Artificial Intelligence Definition

• An intelligent entity created by humans.


• Capable of performing tasks intelligently without being explicitly instructed.
• Capable of thinking and acting rationally and humanely.

How do we measure if Artificial Intelligence is acting like a human?

Even if we reach that state where an AI can behave as a human does, how can we be sure it can
continue to behave that way? We can base the human-likeness of an AI entity with the:

• Turing Test
• The Cognitive Modelling Approach
• The Law of Thought Approach
How Artificial Intelligence (AI) Works?
Building an AI system is a careful process of reverse-engineering human traits and capabilities in a
machine, and using it’s computational prowess to surpass what we are capable of.
To understand How Aritificial Intelligence actually works, one needs to deep dive into the various sub
domains of Artificial Intelligence and and understand how those domains could be applied into the
various fields of the industry. You can also take up an artificial intelligence course that will help you
gain a comprehensive understanding.

• Machine Learning : ML teaches a machine how to make inferences and


decisions based on past experience. It identifies patterns, analyses past data to
infer the meaning of these data points to reach a possible conclusion without
having to involve human experience. This automation to reach conclusions by
evaluating data, saves a human time for businesses and helps them make a better
decision.
• Deep Learning : Deep Learning ia an ML technique. It teaches a machine to
process inputs through layers in order to classify, infer and predict the outcome.
• Neural Networks : Neural Networks work on the similar principles as of Human
Neural cells. They are a series of algorithms that captures the relationship between
various underying variabes and processes the data as a human brain does.
• Natural Language Processingc: NLP is a science of reading, understanding,
interpreting a language by a machine. Once a machine understands what the user
intends to communicate, it responds accordingly.
• Computer Vision : Computer vision algorithms tries to understand an image by
breaking down an image and studying different parts of the objects. This helps the
machine classify and learn from a set of images, to make a better output decision
based on previous observations.
• Cognitive Computing : Cognitive computing algorithms try to mimic a human
brain by anaysing text/speech/images/objects in a manner that a human does and
tries to give the desired output.

What are the Types of Artificial Intelligence?


Not all types of AI all the above fields simultaneously. Different Artificial Intelligence entities are built
for different purposes, and that’s how they vary. AI can be classified based on Type 1 and Type 2
(Based on functionalities). Here’s a brief introduction the first type.

3 Types of Artificial Intelligence


• Artificial Narrow Intelligence (ANI)
• Artificial General Intelligence (AGI)
• Artificial Super Intelligence (ASI)
Introduction of the Project

In this project an attempt is made to design a application for Artificial intelligence based quiz
competition. Today has become a fast growing examination method because of its speed and

accuracy. It is also needed less manpower to execute the quiz. Almost all organizations now-a-days, are
conducting their objective exams by Artificial intelligence based quiz competition, it saves
students time in quiz. Organizations can also easily check the performance of the student that they give
in an quiz. As a result of this, organizations are releasing results in less time. It also helps the
environment by saving paper.
According to today’s requirement, Artificial intelligence based quiz competition in python is very
useful to learn it.

Objective of the Project

Artificial intelligence based quiz competition is a non-removable quiz pattern of today’s life. We

need more time saving and more accurate quiz system as the number of applicants is increasing day by
day. For all IT students and professionals, it is very important to have some basic understanding about
the Artificial intelligence based quiz competition.

1.3 Hardware & software requirement specification

Hardware configuration

Processor - Pentium IV/Dual Core

Memory - 512 MB RAM

Software specification

Operating system - Window 10

Front End - Python

Back End - My Sql


Data Flow Diagram
The data flow diagram (also known as bubble chart) is a simple graphical notation that can be used to
represent a system in terms of the input data to the system, various processing carried out on these
data, and the output generated by the system .
The main reason why the DFD technique is so popular is on account of the fact that it is very simple
formalism –it is simple to understand and use. The DFD model uses a very limited number of
primitive symbol to represent the class performed by a system and a data flow among these class.
A Data Flow Diagram (DFD) is a diagram that describes the flow of data and the processes that change
or transform data throughout a system. It’s a structured analysis and design tool that can be used for
flowcharting in place of, or in association with, information oriented and process oriented system
flowcharts.
and
data
storag
e. The
points
at
which
data
are
transf
ormed
are
repres
entedb
y
enclos
ed
figures
,
usuall
y circles, which are called nodes.

Primitive symbol used for constructing DFD’s

➢ Class symbol:A class is represented using a circle. This symbol is

Called process or bubbles.


➢ External entity symbol :A rectangle represent an external entity such as a
librarian, a library member etc. the external entities are essentially those
physical entities which are external to the software system and interact with
the system by inputting data to the system or by consuming the data
produced by
➢ the system.
➢ Data flow symbol:A directed arc or an arrow is used as a data flow symbol.
A data flow symbol represents the data flow occurring between two
processes or between an external entity and a process in the direction of the
data flow arrow.
DATAFLOW DIAGRAM

Entity Relationship Diagram


A database is an organized mechanism that has the capability of storing information
through which a user can retrieve stored information in an effective and efficient
manner. The data is the purpose of any database and must be protected.

➢ Relational Database Management System (RDBMS)


A relational model represents the database as a collection of relations. Each relation
resembles a table of values or file of records. In formal relational model terminology, a
row is called a tuple , a column header is called an attribute and the table is called a
relation. A relational database consists of a collection of tables, each of which is
assigned a unique name. A row in a table represents a set of related values.
ghggffghhh

ER DIAGRAM
Screenshots

Login page

Success login page


User panel

quiz start
Registration page

Database
Database
Source Code

App source code

from question import question


question_prompt=["What color are apple?\n(a) red/green\n(b)
gray\n(c) purpal\n\n","What color are bananas?\n(a) red\n(b)
black\n(c) yellow\n\n"]
questions=[
question(question_prompt[0],"a"),
question(question_prompt[1],"c"),

]
def run_test(questions):
score=0
for question in questions:
answer=input(question.prompt)
if answer==question.answer:
score+=1
print("You Got "+str(score)+"/"+str(len(questions)))
run_test(questions)
faceproject source code
from tkinter import*
root=Tk()
root.title("check youself before go further")
root.iconbitmap('p1.png')
img_txt source code
import pytesseract
pytesseract.pytesseract.tesseract_cmd = r'C:\Program
Files\Tesseract-OCR\tesseract'
print(pytesseract.image_to_string(r'text2.jpg'))
login page source code
from tkinter import*
from tkinter import ttk
from PIL import Image,ImageTk
from tkinter import messagebox
from register import Register
from profile import pro
import mysql.connector
class login_window:
def __init__(self,root):
self.root=root
self.root=root
self.root.title("login")
self.root.geometry("1550x800+0+0")
img=Image.open("back2021.webp")
img=img.resize((1400,1200))

self.bg=ImageTk.PhotoImage(img)
lbl_bg=Label(self.root,image=self.bg)
lbl_bg.place(x=0,y=0,relwidth=1,relheight=1)

frame=Frame(self.root,bg="grey")
frame.place(x=500,y=170,width=340,height=450)

img1=Image.open(r"user.png")
img1=img1.resize((100,100),Image.Resampling.LANCZOS)
self.photoimage1=ImageTk.PhotoImage(img1)

lblimg1=Label(image=self.photoimage1,bg="grey",borderwidth=0)
lblimg1.place(x=620,y=175,width=100,height=100)

get_str=Label(frame,text="GetStarted",font=("times new
roman",20,"bold"),fg="black",bg="grey")
get_str.place(x=95,y=100)
#labels for login
username=lbl=Label(frame,text="Email Id",font=("times of
roman",15,"bold"),fg="black",bg="grey")
username.place(x=70,y=155)
self.txtuser=ttk.Entry(frame,font=("times of roman",15,"bold"))
self.txtuser.place(x=40,y=180,width=270)

password=lbl=Label(frame,text="Password",font=("times of
roman",15,"bold"),fg="black",bg="grey")
password.place(x=70,y=225)
self.txtpass=ttk.Entry(frame,font=("times of roman",15,"bold"))
self.txtpass.config(show="*")
self.txtpass.place(x=40,y=250,width=270)

#iconimages

img2=Image.open(r"user.png")
img2=img2.resize((25,25),Image.Resampling.LANCZOS)
self.photoimage2=ImageTk.PhotoImage(img2)

lblimg2=Label(image=self.photoimage2,bg="grey",borderwidth=0)
lblimg2.place(x=542,y=325,width=25,height=25)
img3=Image.open(r"lock.png")
img3=img3.resize((25,25),Image.Resampling.LANCZOS)
self.photoimage3=ImageTk.PhotoImage(img3)

lblimg3=Label(image=self.photoimage3,bg="grey",borderwidth=0)
lblimg3.place(x=542,y=394,width=25,height=25)

#login buttons

loginbtn=Button(frame,command=self.Login,text="login",font=("ti
mes new
roman",15,"bold"),bd=3,relief=RIDGE,fg="white",bg="black",activ
eforeground="grey",activebackground="black")
loginbtn.place(x=110,y=300,width=120,height=35)

#register button

regbtn=Button(frame,text="New User
Register",command=self.register_window,font=("times new
roman",10,"bold"),borderwidth=0,fg="white",bg="grey",activeforeg
round="white",activebackground="grey")
regbtn.place(x=15,y=350,width=160)

#forgetpasswordbutton
passbtn=Button(frame,text="Forget Password",font=("times
new
roman",10,"bold"),borderwidth=0,fg="white",bg="grey",activeforeg
round="white",activebackground="grey")
passbtn.place(x=10,y=370,width=160)

def register_window(self):
obj=Register(self.root)

def Login(self):
p1=self.txtuser.get()
p2=self.txtpass.get()
print(p1)
print(p2)

my1=mysql.connector.connect(host="127.0.0.1",user="root",passwd
="")
x1=my1.cursor()
x1.execute("use xyz")
x1.execute("select * from info where email="+"'"+p1+"'"+"and
password="+"'"+p2+"'"+"")
res=x1.fetchall()
k=0
for i in res:
messagebox.showinfo("mymessage","Welcome : "+i[0])
k=k+1
pro(i[0],i[1],i[2],i[3],i[4])
break
if k==0:
messagebox.showerror("Error","Invalid Login details" )

if __name__ == "__main__":

root=Tk()
app=login_window(root)
root.mainloop()

source code p1
from tkinter import*
from PIL import ImageTk,Image
from tkinter.ttk import *
#next is a seprate next.py file and xyz is a UDF under next.py file

t=Tk()
t.geometry("1500x1300")
def go1():
xyz()
def go():
t1=Toplevel()
t1.geometry("1500x1300")
img=Image.open("img1.jpg")
img=img.resize((1500,800),Image.ANTIALIAS)
img=ImageTk.PhotoImage(img)

l=Label(t1)
l.config(image=img)
l.image=img
l.place(x=0,y=0)
x=2
img=Image.open("img2.jpg")
img=img.resize((1800,1750),Image.ANTIALIAS)
img=ImageTk.PhotoImage(img)
l=Label(t,image=img)
l.place(x=0,y=0)
sto = Style()
sto.configure('W.TButton', font= ('Arial', 20, 'underline'),
foreground='Green')

b=Button(t,style='W.TButton',text="START ON SAME
PAGE",command=go)
b.place(x=950,y=600)
b1=Button(t,style='W.TButton',text="START ON DIFFERENT
PAGE",command=go1)
b1.place(x=200,y=600)
def a():
global x
img=Image.open(r"C:\gui\p"+str(x)+".jpg")
img=img.resize((1500,800),Image.ANTIALIAS)
img=ImageTk.PhotoImage(img)
l.config(image=img)
l.image=img
x=x+1
t.after(2000,a)
if x==4:
x=2
a()
Profile source code
from tkinter import*
from tkinter import ttk
from PIL import Image,ImageTk
from tkinter import messagebox
from register import Register
from tkinter import filedialog
import pytesseract
from question import question

import mysql.connector
def pro(fname,ln,c,e,p):
t=Toplevel()
t.title("login")
t.geometry("1550x800+0+0")
fname=""
def a():
global fname
fname=filedialog.askopenfilename(title='Open Image File')
def b():
question_prompt=["What color are apple?\n(a) red/green\n(b)
gray\n(c) purpal\n\n","What color are bananas?\n(a) red\n(b)
black\n(c) yellow\n\n","which is first planet of solar system?\n(a)
venus\n(b) earth\n(c) mercury \n\n"]
questions=[
question(question_prompt[0],"a"),
question(question_prompt[1],"c"),
question(question_prompt[2],"c"),
]
def run_test(questions):
score=0
for question in questions:
answer=input(question.prompt)
if answer==question.answer:
score+=1
print("You Got "+str(score)+"/"+str(len(questions)))
run_test(questions)

img=Image.open("back2021.webp")
img=img.resize((1400,1200))

bg=ImageTk.PhotoImage(img)

#bg=ImageTk.PhotoImage(file="back2021.webp")
lbl_bg=Label(t)
lbl_bg.config(image=bg)
lbl_bg.image=bg
lbl_bg.place(x=0,y=0,relwidth=1,relheight=1)

frame=Frame(t,bg="grey")
frame.place(x=0,y=0,width=400,height=150)

get_str=Label(frame,text="Welcome User : "+fname+"


"+ln,font=("times new roman",15,"bold"),fg="black",bg="grey")
get_str.place(x=0,y=0)

get_str1=Label(frame,text="Mobile No : "+c+" "+ln,font=("times


new roman",15,"bold"),fg="black",bg="grey")
get_str1.place(x=0,y=30)

get_str2=Label(frame,text="EmailId : "+e+" "+ln,font=("times


new roman",15,"bold"),fg="black",bg="grey")
get_str2.place(x=0,y=60)

get_str3=Label(frame,text="password : "+p+" "+ln,font=("times


new roman",15,"bold"),fg="black",bg="grey")
get_str3.place(x=0,y=90)
bg1=ImageTk.PhotoImage(file="uploadimg1.jpg")
bg2=ImageTk.PhotoImage(file="texticon1.png")
b1=Button(t,text="UPLOAD IMAGE FILE",font=("times new
roman",15,"bold"),command=a)
b1.config(image=bg1,)
b1.image=bg1
#b1.place(x=1000,y=0)
b2=Button(t,text="Click To Start Quiz",font=("times new
roman",15,"bold"),command=b)

b2.place(x=1000,y=290)

Question source code


class question:
def __init__(self,prompt,answer):
self.prompt=prompt
self.answer=answer

Register source code


from tkinter import*
from tkinter import ttk
from PIL import Image,ImageTk
from tkinter import messagebox
import mysql.connector
import cv2
import numpy as np

path=""
class Register:
def __init__(self,root):
self.root=root
self.root.title("register")
self.root.geometry("1600x900+0+0")

#variables#

self.var_fname=StringVar()
self.var_lname=StringVar()
self.var_contact=StringVar()
self.var_email=StringVar()
self.var_pass=StringVar()
self.var_confpass=StringVar()

self.bg=ImageTk.PhotoImage(file="kk.jpg")
bg_lbl=Label(self.root,image=self.bg)
bg_lbl.place(x=0,y=0,relheight=1,relwidth=1)
#frame

frame=Frame(self.root,bg="white")
frame.place(x=300,y=100,width=1000,height=500)
register_lbl=Label(frame,text="REGISTER
HERE",font=("times new
roman",25,"bold"),fg="darkgrey",bg="white")
register_lbl.place(x=20,y=20)

#label entry#
fname=Label(frame,text=" First Name",font=("times of
roman",15,"bold"),bg="white")
fname.place(x=50,y=100)

self.fname_ent=ttk.Entry(frame,textvariable=self.var_fname,font=("t
imes of roman",15,"bold"))
self.fname_ent.place(x=50,y=130,width=250)
pic=Label(frame,text=" picture",font=("times of
roman",15,"bold"),bg="white")
pic.place(x=375,y=200)

lname=Label(frame,text="Last Name",font=("times of
roman",15,"bold"),bg="white")
lname.place(x=370,y=100)

self.txt_lname=ttk.Entry(frame,textvariable=self.var_lname,font=("ti
mes of roman",15))
self.txt_lname.place(x=370,y=130,width=250)

self.pic=Label(frame,text=" picture",font=("times of
roman",15,"bold"),bg="white")
#self.pic.place(x=700,y=100)

#row 2#

contact=Label(frame,text="Contact No",font=("times new


roman",15,"bold"),bg="white",fg="black")
contact.place(x=50,y=170)

self.txt_contact=ttk.Entry(frame,textvariable=self.var_contact,font=(
"times new roman",15))
self.txt_contact.place(x=50,y=200,width=250)

email=Label(frame,text="Email",font=("times new
roman",15,"bold"),bg="white",fg="black")
email.place(x=370,y=170)

self.txt_email=ttk.Entry(frame,textvariable=self.var_email,font=("ti
mes new roman",15))
self.txt_email.place(x=370,y=200,width=250)

#row3#

pswd=Label(frame,text="Password",font=("times new
roman",15,"bold"),bg="white",fg="black")
pswd.place(x=50,y=240)

self.txt_pswd=ttk.Entry(frame,textvariable=self.var_pass,font=("tim
es new roman",15))
self.txt_pswd.place(x=50,y=270,width=250)
confirm_pswd=Label(frame,text="Confirm
Password",font=("times new
roman",15,"bold"),bg="white",fg="black")
confirm_pswd.place(x=370,y=240)

self.txt_confirm_pswd=ttk.Entry(frame,textvariable=self.var_confpa
ss,font=("times new roman",15))
self.txt_confirm_pswd.place(x=370,y=270,width=250)

#check button#
self.var_check=IntVar()
checkbtn=Checkbutton(frame,variable=self.var_check,text="I
Agree The Terms and Conditions",font=("times new
roman",12,"bold"),fg="black",bg="white",onvalue=1,offvalue=0)
checkbtn.place(x=50,y=320)

#buttons#

img=Image.open(r"registerbtn.png")
img=img.resize((200,50),Image.ANTIALIAS)
self.photoimage=ImageTk.PhotoImage(img)

b1=Button(frame,image=self.photoimage,command=self.register_da
ta,borderwidth=0,cursor="hand2",font=("times new
roman",15,"bold"),fg="white",bg="white")
b1.place(x=10,y=370,width=200)

#camerabutton

img1=Image.open(r"cam.jpg")
img1=img1.resize((100,100),Image.ANTIALIAS)
self.photoimage1=ImageTk.PhotoImage(img1)

b2=Button(frame,image=self.photoimage1,command=self.camera,bo
rderwidth=0,cursor="hand2",font=("times new
roman",15,"bold"),fg="white",bg="white",activeforeground="red",a
ctivebackground="white")
# b2.place(x=330,y=370,width=200)

#function declaration#

def register_data(self):
t1=self.fname_ent.get()
t2=self.txt_lname.get()
t3=self.txt_contact.get()
t4=self.txt_email.get()
t5=self.txt_pswd.get()
t6=self.txt_confirm_pswd.get()
print(t1)
print(t2)
print(t3)
print(t4)
print(t5)
print(t6)

my=mysql.connector.connect(host="127.0.0.1",user="root",passwd=
"")
x=my.cursor()
x.execute("use xyz")
x.execute("insert into info
values("+"'"+t1+"'"+","+"'"+t2+"'"+","+"'"+t3+"'"+","+"'"+t4+"'"+","
+"'"+t5+"'"+","+"'"+t6+"'"+",'kjhjs')")
my.commit();
messagebox.showinfo("My message","You Are Register!!!!")
print(path)
def camera(self):
global path
cap=cv2.VideoCapture(0)
x=1
while (True):
rect,frame=cap.read()
cv2.imshow("MY WINDOW",frame)

my=mysql.connector.connect(host="127.0.0.1",user="root",passwd=
"")
x=my.cursor()
x.execute("use xyz")
x.execute("select * from info ")
count=0
res=x.fetchall()
for rows in res:
count=count+1
cv2.imwrite(r"x"+str(count+1)+".jpg",frame)
path=r"x"+str(count+1)+".jpg"
if cv2.waitKey(1) & 0xFF==ord('q'):
break
cap.release()
cv2.destroyAllWindows()
img=Image.open(path)
img=img.resize((200,200),Image.ANTIALIAS)
img=ImageTk.PhotoImage(img)
self.pic.config(image=img)
self.pic.image=img
if __name__=="__main__":
root=Tk()
app=Register(root)
root.mainloop()
CONCLUSION
In conclusion, the integration of AI technology into quiz
competitions has revolutionized the way we engage and interact with
these events. Through the development of intelligent algorithms,
machine learning models, and natural language processing
capabilities, AI has enhanced the quiz experience for both
participants and audiences alike.
AI-powered quiz competitions have enabled efficient question
generation, accurate scoring, and real-time feedback. This has
eliminated the need for manual question creation and evaluation,
reducing human bias and ensuring fairness. Moreover, AI algorithms
can adapt to participants' skill levels, providing customized
challenges and promoting continuous learning.
The utilization of AI in quiz competitions has not only enhanced the
overall experience but also expanded accessibility. With AI-enabled
platforms and chatbots, participants can now engage in quizzes
remotely, at any time and from anywhere, breaking down
geographical barriers and promoting inclusivity.
Additionally, AI has opened up new avenues for innovation in quiz
competitions. Techniques such as sentiment analysis and predictive
analytics can be employed to gauge audience reactions, improve
content, and enhance the overall entertainment value of quizzes. AI-
driven virtual assistants can also provide engaging interactions and
assist quiz masters in delivering a seamless and captivating
experience.
However, it is important to acknowledge that while AI brings
numerous benefits to quiz competitions, it cannot completely replace
human involvement. The human touch, creativity, and intuition
remain invaluable in crafting engaging questions and providing an
entertaining atmosphere.
In summary, the integration of AI into quiz competitions has
transformed the way we participate, spectate, and organize these
events. By leveraging the power of AI algorithms and technologies,
we can enhance fairness, accessibility, and engagement, taking the
quiz experience to new heights. As AI continues to evolve, we can
look forward to even more exciting developments in the field of quiz
competitions.

You might also like