0% found this document useful (0 votes)
11 views23 pages

Final Adiee C Project

The document outlines a micro project report for a Quiz Game developed using C programming by students from the Computer Engineering program at Government Polytechnic Awasari Khurd. It details the project's aim, methodology, course outcomes, and includes a sample program code along with an algorithm for the quiz game. Additionally, it discusses the advantages and disadvantages of quiz games, as well as features that enhance user engagement.

Uploaded by

rutujagaikawad27
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)
11 views23 pages

Final Adiee C Project

The document outlines a micro project report for a Quiz Game developed using C programming by students from the Computer Engineering program at Government Polytechnic Awasari Khurd. It details the project's aim, methodology, course outcomes, and includes a sample program code along with an algorithm for the quiz game. Additionally, it discusses the advantages and disadvantages of quiz games, as well as features that enhance user engagement.

Uploaded by

rutujagaikawad27
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/ 23

Assessment Manual

For

Micro Projects

Computer Engineering Program


(K Scheme Curriculum)

Maharashtra state

Board of Technical Education Mumbai


(ISO-9001-2008)(ISO/IEC27001:2013)

A Micro Project Report On

Quiz Game Using C Programming


GOVERNMENT POLYTECHNIC AWASARI KHURD
MICROPROJECT
PROGRAMMING IN ‘C’(312303)

Branch: Computer Engineering


Year: First Year
Academic Year: 2023-24
Topic of project: Quiz Game Using C Programming
Group Number: 01
Group Leader: Chavan Aditi Santosh
Subject teacher: Miss S. Panchakshari

Board of Technical Education Mumbai


(ISO-9001-2008)(ISO/IEC27001:2013)
1. CERTIFICATE

This is to certify that the following student of semester II of


diploma in Computer Engineering of institute, Government
Polytechnic Awasari (KH)(Inst.code-1051)have completed
the micro project satisfaction in course of Programming in C
for the academic year 2023-24 as prescribed in the
curriculum.
SUBMITTED BY :-

Roll no.​ Name of team members. Enrollment no.

23CO102 Bendage Akanksha Ankush 23210270243

23CO103 Bhendekar Siddhi Vilas 23210270222

23CO104 Borase Khushi Bhausaheb 23210270233

23CO105 Chavan Aditi Santosh 23210270255


23CO106 Chavan Siddhi Pradip 23210270254

PLACE :- AWASARI (KH) DATE :-

SIGN OF GUIDE H.O.D PRINCIPAL


Part A- Micro Project Proposal

1.0) Aim :- Quiz Game Using C Programming

2.0) Course out comes :-

 Develop C program using input - output functions and


arithmetic expressions.
 Implement Arrays using C programs.
 Develop C program using user-defined functions.
 Develop flowchart and algorithm to solve problems logically.

3.0) Proposed Methodology Followed :-


⚫ First of all, we will select a topic and then take a reference
of subject teacher. The teacher will assign one set of micro
projects
⚫ First we will get the title of micro-project from our subject
teacher.
⚫ We will search information on our micro-project topic.
⚫ Then we will gather information of micro-project.
⚫ Then we will check it from subject teacher.
⚫ After checking we will prepare final copy of the report.
⚫ Then we will take the final print out of the report.
4.0) Action plan :-

SR.
Name of
NO. Details of activity Planned Planned responsible
start date finish date Team
members
1
Formation of group and
All
Allocation of project title 10/01/2024 17/01/2024
members
2
Information search and
11/01/2024 17/01/2024
required analysis

3
Collection of data
with team members 18/01/2024 24/01/2024
All
4 members
Verify project by subject
teacher 08/02/2024 14/02/2024

5
Approval of Project 21/02/2024 28/02/2024

6 All
Submission of project 25/03/2024 30/03/2024
members
5.0) Actual resources used :-

Sr.no Name of resources/material. Specifications. Qty.

1. window7,RAM 16 GB, 1
Laptop s 11 pro

2. 1
Development software Turbo C++ 3.2

3. 1
Notepad Version 11.2401.26.0

4. 1
Reference books Books of C programming

5. -
Internet Browser


Part B

1.0) Aim/Benefits of the Micro-project :-


Developing a quiz game allows for creativity in designing the
user interface, question formats,and feedback mechanisms.
Developing a quiz game allows for creativity in designing the user
interface, question formats, and feedback mechanisms.

2.0) Rationale :-
developing a quiz game in C provides an engaging and
versatile project opportunity that fosters learning, skill development,
and community contribution.Quiz games are inherently engaging and
enjoyable for users. They encourage participation and interaction,
making them a popular choice among both developers and players.

3.0) Course Outcomes Addressed :-


 Develop C program using input - output functions and
arithmetic expressions.
 Implement Arrays using C programs.
 Develop C program using user-defined functions.
 Develop flowchart and algorithm to solve problems logically.
4.0) Literature Review :-
A literature review on the topic of implementing a quiz game
using C as a micro project might yield limited academic sources
directly addressing this specific subject.While there might not be
specific academic papers dedicated to implementing a quiz game in C
as a micro project, synthesizing information from these related areas
can provide a comprehensive understanding and practical guidance
for undertaking such a project.

5.0) Introduction :-

The objective of this micro project is to develop a fully


functional quiz game in C, capable of presenting questions to users,
evaluating their responses, and providing feedback or scores. While
supposedly straightforward, this project surrounds a range of
programming concepts and challenges, making it an ideal exercise for
both novice and experienced programmers alike.starts the journey of
developing a quiz game in C offers a chance of learning experiences
and challenges. Through this micro project, developers can refine
their programming skills, unleash their creativity, and contribute to
the ever-expanding landscape of interactive software applications.
 Quiz Game :-

Quiz games are popular forms of entertainment and education


where players answer questions on various topics to test their
knowledge. These games can be played individually or in teams, and
they often cover a wide range of subjects such as general knowledge,
history, science, pop culture, sports, and many more.
Now days quiz game mostly plays digitally. It is available as mobile
apps, online platforms, or video games. Digital quiz games often
feature interactive elements, multimedia content and leader boards.
We try to implement a short quiz game.Implementing a quiz game
involves designing a set of questions, creating a user interface for
players to interact with, and implementing logic to track scores and
determine winners.
 Program :-

#include <stdio.h>
#include <string.h>

int askQuestion(char *subject, char *question, char *options[], int


correctOption);

int main()
{
char *subjectNames[] = {"Mathematics", "Programming In C",
"Basic Electrical and Electronics"};

printf("Choose a subject:\n");
for (int i = 0; i < 3; i++)
{
printf("%d. %s\n", i + 1, subjectNames[i]);
}

int choice;
printf("Enter your choice (1-3): ");
scanf("%d", &choice);

if (choice < 1 || choice > 3)


{
printf("Invalid choice. Please enter a number between 1 and
3.\n");
return 1;
}
// Subtract 1 from choice to match array index
choice--;
// Questions, options, and correct answers for each subject
char *questions[3][4] = {
{"Who discovered zero(0)?", "When is pi day celebrated around
the world?", "Angle greater than 180 degrees but less than 360
degrees are called?", "Who invented the equals sign(=)?"},

{"We cannot use the keyboard 'break' simply within_?", "If p is


an integer pointer with a value 1000, then what will be the
value of p+5?", "How is an array initialized in C language?",
"Which of these is NOT a relational or logical operator?"},

{"What is the frequency of AC mains voltage?", "Two diodes


conduct simultaneously in the___rectifier?", "What is the
example of optical source?", "What is the unit of measurement of
Reluctance?"}};

char *options[3][4][4] = {
{{"Aryabhatta", "Archimedes", "John Walls", "Alan Turing"},
{"May 27", "February 24", "Jully 4", "March 14"},
{"Acute Angles", "Reflex Angles", "Obtuse Angle", "Right
Angle"},
{"Albert Einstein", "Katherine Johnson", "Robert Recorde",
"Harish Chandra"}},

{{"While", "For", "If-else", "Do-while"},


{"1010", "1005", "1004", "1020"},
{"int a[3]={1,2,3};", "int a={1,2,3}", "int a[]=new int[3]", "int
a(3)=[1,2,3];"},
{"||", "=", "==", "!="}},

{{"60 Hz", "50 Hz", "50 sec", "70 sec"},


{"Bridge", "Full wave", "Half wave", "Full controll"},
{"Photodiode", "LED", "Zener diode", "Rectifier"},
{"AT/Weber", "Web/m", "A/Wb-m", "Weber/m^2"}}};

int correctAnswers[3][4] = {
{1, 4, 2, 3},
{3, 4, 1, 2},
{2, 1, 2, 1}};

int scores[3] = {0}; // Array to store scores for each subject

// Loop for each subject


for (int i = 0; i < 4; i++)
{
int result = askQuestion(subjectNames[choice],
questions[choice][i], options[choice][i], correctAnswers[choice][i]);
scores[choice] += result;
}

printf("\n%s Quiz Completed!\n", subjectNames[choice]);


printf("Score: %d out of 4\n", scores[choice]);

// Check if user wants to continue


char continueChoice;
printf("Do you want to continue with C Programming (C) or Basic
Electrical and Electronics (BEE)? (C/B): ");
scanf(" %c", &continueChoice);

if (continueChoice == 'C' || continueChoice == 'c')


{
// Questions, options, and correct answers for C Programming
quiz
char *cQuestions[4] = {
"Which of the following is not a valid variable name
declaration?",
"What is the output of the following code snippet?\n\nint a =
5;\nprintf(\"%d\", a++);",
"What is the size of the 'int' data type in C?",
"What is the output of the following code snippet?\n\nint x =
5;\nint y = 10;\nprintf(\"%d\", x+++y);"};
char *cOptions[4][4] = {
{"int _a;", "int 1a;", "int $a;", "int a_b;"},
{"5", "6", "4", "Undefined behavior"},
{"2 bytes", "4 bytes", "8 bytes", "Depends on the compiler"},
{"15", "16", "14", "Undefined behavior"}};
int cCorrectAnswers[4] = {2, 1, 2, 3};

int cScores = 0;
// Loop for each question in the C Programming quiz
for (int i = 0; i < 4; i++)
{
int result = askQuestion("Programming In C", cQuestions[i],
cOptions[i], cCorrectAnswers[i]);
cScores += result;
}
printf("\nProgramming In C Quiz Completed!\n");
printf("Score: %d out of 4\n", cScores);
}
else if (continueChoice == 'B' || continueChoice == 'b')

{
// Continue with BEE quiz
// Add the logic for BEE questions here
}
else
{
printf("Invalid choice. Exiting...\n");
}
return 0;
}
int askQuestion(char *subject, char *question, char *options[], int
correctOption)
{
int answer;
printf("\n%s Quiz: %s\n", subject, question);
for (int i = 0; i < 4; i++)
{
printf("%d. %s\n", i + 1, options[i]);
}
printf("Enter your answer (1-4): ");
scanf("%d", &answer);
if (answer == correctOption)
{
printf("Correct!\n");
return 1; // Correct answer
}
else
{
printf("Incorrect!\n");
return 0; // Incorrect answer
}
}
 Output :-
 Output :-
 Algorithm of Quiz Game :-

1. Start
2. Print menu for subject selection
3. Read user's choice
4. If choice is invalid, print error message and exit
5. Subtract 1 from choice to match array index
6. Loop through each question for the selected subject
7. Ask the question and options
8. Read user's answer
9. If answer is correct, print "Correct!" and increment score
10. If answer is incorrect, print "Incorrect!"
11. Repeat steps 6-10 for all questions
12. Print subject quiz completed message and score
13. Ask user if they want to continue with C Programming or
Basic Electrical and Electronics
14. If choice is C, loop through C Programming quiz
questions
15. Ask question and options for C Programming quiz
16. Read user's answer
17. If answer is correct, print "Correct!" and increment score
18. If answer is incorrect, print "Incorrect!"
19. Repeat steps 14-18 for all C Programming questions
20. Print C Programming quiz completed message and score
21. If choice is B, add logic for Basic Electrical and
Electronics quiz
22. If choice is invalid, print error message and exit
23. End
 Advantages of Quiz Game :-

1.Educational Value: Quiz games can be designed to cover a wide


range of topics, making them effective tools for learning and
developing knowledge in a fun and interactive way.

2.Improves Memory and Recall: Engaging with quiz games requires


players to recall information quickly, which can help improve
memory and cognitive abilities over time.

3.Entertainment: Quiz games offer entertainment value for players


of all ages, serving as enjoyable pastimes for individuals, families, or
groups of friends.

4.Flexible Gameplay: Quiz games can be adapted to suit different


settings and preferences, with options for solo play, team
competitions, timed challenges, and customizable content.

 Overall, quiz games offer a multitude of benefits,


making them popular choices for free time and
educational purposes.
 While quiz games have numerous advantages, there are
also some potential disadvantages to consider:-

 Disadvantages of Quiz Game :-

1.Limited Depth: Quiz games often focus on factual knowledge and


may lack the depth of understanding that comes from more immersive
learning experiences or in-depth exploration of topics.

2.Competitive Pressure: In competitive settings, quiz games can


create pressure to perform well, leading to stress or anxiety for some
players, especially if they feel not enough prepared or fear
public embarrassment.

3.Potential for Cheating: In competitive settings, there may be


opportunities for cheating or unfair advantages, particularly in online
quiz games where players can access external resources or
collaborate with others.

4.Repetitive Content: In digital quiz games, there may be a risk of


encountering repetitive or recycled content over time, reducing the
newness and enjoyment for frequent players.
 Features :-

1.Question Database: A quiz game typically includes a database of


questions covering various topics. These questions can range from
multiple-choice and true/false to open-ended and picture-based
questions.

2.User Profiles: Users can create profiles to track their progress,


scores, and achievements over time. This feature allows for
personalized experiences and encourages continued engagement.

3.Difficulty Levels: Implementing difficulty levels (easy, medium,


hard) enables players to choose quizzes that match their skill level,
catering to both beginners and experts.

4.Power-ups and Bonuses: Incorporating power-ups or bonuses adds


excitement to the game by offering temporary advantages, such as
extra time, hints, or double points.

5.Feedback Mechanism: Including a feedback mechanism allows


users to report inaccuracies in questions, suggest new topics, or
provide general feedback to improve the game's quality.

6.Progress Tracking: The game should track users' progress within


each quiz session and provide feedback on correct and incorrect
answers. This feature helps users identify areas for improvement and
strengthens learning.
 Scopes :-

1.Content Scope: This involves determining the breadth and depth of


topics covered by the quiz game. It includes selecting categories,
subcategories, and specific questions within each topic area. The
scope may range from general knowledge to niche subjects based on
the target audience and objectives.

2.Platform Scope: The quiz game can be developed for different


platforms such as mobile devices (IOS, Android), desktop computers,
web browsers, or gaming consoles. The scope may include
considerations for platform-specific features, user interface design,
and compatibility requirements.

3.Functionality Scope: The functionality scope outlines the features


and capabilities of the quiz game. This includes basic features like
answering questions, tracking scores, and progressing through levels,
as well as advanced features such as multiplayer modes, leader boards,
customization options, and social sharing combination.

4.Scalability Scope: Considerations for scalability involve designing


the quiz game to accommodate future growth and expansion. This
includes the ability to add new content, update existing features,
support increased user traffic, and adapt to evolving
technologies or platforms.
 Reference :-

www.geeksforgeeks.org
www.github.com
www.tutorialspoint.com
www.codeproject.com

 Conclusion :-

In conclusion, the quiz game project implemented in C has


successfully achieved its goal of providing an interactive and
educational gaming experience. By utilizing fundamental C
programming concepts, we were able to develop a functional quiz
game that allows users to test their knowledge on various topics.
Throughout the project, we learned valuable lessons in program
design and user interaction.

You might also like