oop.report-2
oop.report-2
Polytechnic ,Dhangawadi
Tal.Bhor,Dist.Pune-112206(M.S)India
A MICRO PROJECT REPORT
On
“Develop microproject on Quiz Management
System”
Is submitted by:-
Miss.Petkar Esha Vijay
Miss.Tarade Aditi Santosh
Miss.Gujar Tanvi Nilesh
Miss.Tambe Shravani Sanjay
Under the guidance of:-
Prof.Khade P.A.
Subject:-Object Oriented Programming
using C++
In partial fulfilment of
Project Guide
Head of Department
Prof.Khade P.A.
Prof.Salunkhe A.A
ACKNOWLEDGEMENT
ABSTRACT
INTRODUCTION
Purpose
The primary goal of a Quiz Management System is to automate
the traditional, manual process of conducting quizzes. This
includes creating questions, organizing them into quizzes,
administering the quizzes to participants, and evaluating their
performance.
Key Features
SOURCE CODE
#include <iostream>
#include <string>
struct Student {
string name;
string roll_number;
};
void displayQuiz() {
string questions[10] = {
"1. Which of the following is the correct syntax of
including a user-defined header file in C++?\n(a)
#include 'file.h'\n(b) #include <file>\n(c) #include
<file.h>\n(d) #include file",
"2. Which of the following data types is used to store
a value that has only two possible states?\n(a) int\n(b)
bool\n(c) char\n(d) double",
"3. What is the output of the following code?\nint x =
10;\ncout << ++x;\n(a) 10\n(b) 11\n(c) 9\n(d) None of
the above",
"4. What is a correct syntax to declare a pointer?\
n(a) int* p;\n(b) int p*;\n(c) *int p;\n(d) int& p;",
"5. Which operator is used to access the value at the
address stored in a pointer?\n(a) &\n(b) *\n(c) ->\n(d) []",
"6. What is the size of a 'float' in C++?\n(a) 2 bytes\
n(b) 4 bytes\n(c) 8 bytes\n(d) 16 bytes",
"7. Which of the following correctly declares an array
in C++?\n(a) int arr[] = {1, 2, 3};\n(b) int arr(3);\n(c)
array<int> arr(3);\n(d) arr{1, 2, 3};",
"8. What is the value of x after this code executes?\
nint x = 5;\nx += 10;\n(a) 5\n(b) 10\n(c) 15\n(d) 20",
"9. Which keyword is used to define a constant in C+
+?\n(a) constant\n(b) const\n(c) final\n(d) static",
"10. What is the purpose of the 'new' keyword in C+
+?\n(a) To create objects\n(b) To free memory\n(c) To
allocate memory dynamically\n(d) To return memory to
the OS"
};
char answers[10] = {'a', 'b', 'b', 'a', 'b', 'b', 'a', 'c', 'b',
'c'};
char userAnswer;
int score = 0;
int main() {
Student student;
displayQuiz();
return 0;
}
OUTPUT
[Program finished]
CONCLUSION
REFERENCES
Certainly! Here are some references links that you can explore for
your micro project on a program in C for forming Quiz
Management System.
o https://www.geeksforgeeks.org/quiz-game-in-c/
o https://www.sanfoundry.com/cplusplus-interview-question
answers/
o https://www.w3schools.com/cpp/cpp_intro.asp