This Project is based on online examination system. In this the candidate can select the subjects from the given subjects and can easily give the online exam.
Right Money Management App For Your Financial Goals
Online exam
1. Aryabhatta International College
of Technical Education
Ajmer, Rajasthan
A
PROJECT REPORT
ON
Online Exam Portal: C++
Submitted in partial fulfilment for the
Award of the Degree of
BACHELOR OF COMPUTER APPLICATIONS
2017-2018
Submitted to:
Aryabhatta International College of Technical Education
Submitted by:
Harshita Bhargava
2. ACKNOWLEDGEMENT
I am thankful to Kriti Sankhla Ma’am for her valuable time she has devoted to
me and given me a lot of knowledge and help for the project. I am also thankful
to other teachers for their expert guidance. It was a great experience for me to
work and learn under their guidance.
Words defeat us in expressing our deep sense of gratitude for our friends, whose
continued resourceful support and guidance enabled me to overcome all the
challenges that I have faced while developing the project.
Harshita Bhargava
3. ONLINE EXAM PORTAL
#include<iostream.h>
#include<conio.h>
#include<string.h>
#include<stdlib.h>
void main()
{
clrscr();
int x,contact,no,sub,ans,marks=0,i,marks1=0,marks2=0;
char name[20],name1[20],pass[20],cnfpass[20],id[40],id1[40],pass1[20];
int ans1,ans2,ans3,ans4,ans5,ans6,ans7,ans8,ans9,ans10,ans11,ans12;
char sol1,sol2,sol3,sol4;
cout<<"nnnnnnnnnnttt---------------------------------";
cout<<"ntttPROJECT ON ONLINE EXAM MANAGEMENT";
cout<<"nttt---------------------------------";
getch();
clrscr();
cout<<"tttONLINE EXAM PORTAL";
cout<<"nttt__________________";
cout<<"nn******WELCOME TO ONLINE EXAM PORTAL******";
cout<<"nnOptions are displayed:";
cout<<"n1.) Create an Account";
cout<<"n2.) Exit";
a: cout<<"nnSelect the option:";
cin>>x;
if(x==1)
{
4. cout<<"Create your Account";
cout<<"nnEnter the first name:";
cin>>name;
cout<<"Enter the last name:";
cin>>name1;
cout<<"Enter your contact no.:";
cin>>contact;
cout<<"Enter your User-id:";
cin>>id;
cout<<"Enter password of 8 characters:";
o: for(i=0;i<8;i++)
{
pass[i]=getch();
cout<<"*";
}
cout<<"nEnter the confirm password:";
for(i=0;i<8;i++)
{
cnfpass[i]=getch();
cout<<"*";
}
for(i=0;i<8;i++)
{
if(pass[i]==cnfpass[i])
{
}
else
{
5. cout<<"nPassword not matched....";
cout<<"nEnter the password:";
goto o;
}
}
clrscr();
cout<<"nnYOUR ACCOUNT IS SUCCESSFULLY
CREATED....";
cout<<"nn********************************************";
cout<<"n1.) Continue";
cout<<"n2.) Exit";
cout<<"n********************************************";
cout<<"nnPress option you want to select:";
w: cin>>no;
if(no==1)
{
cout<<"nn**LOGIN TO YOUR ACCOUNT**";
cout<<"nnEnter your User-id:";
d: cin>>id1;
if(strcmp(id,id1)==0)
{
}
else
{
cout<<"nIncorrect User-id";
cout<<"nEnter the correct User-id:";
goto d;
7. cout<<"Enter the correct option:";
goto w;
}
c: cout<<"Subjects are:-";
clrscr();
y: cout<<"nnSubjects are:-";
cout<<"n1.) C++tt 2.) JAVA";
cout<<"n3.) DBMSt 4.) Exit";
cout<<"nnEnter the option of your choice:";
cin>>sub;
if(sub==1)
{
clrscr();
cout<<"ttt--------------------";
cout<<"nttt|C++ QUESTION PAPER|";
cout<<"nttt--------------------";
cout<<"nnQ1.) What is void?";
cout<<"n1.) Datatype"<<endl<<"2.) Class";
cout<<"n3.) Function"<<endl<<"4.) Parameter";
cout<<"nnAnswer:";
cin>>ans1;
if(ans1==1)
{
cout<<"Your answer is correct";
cout<<"nMarks=1";
marks=marks+1;
}
else
8. {
cout<<"Marks=0";
}
cout<<"nnQ2.)Which is the correct statement to calculate
factorial?";
cout<<"n1.) fact=i*fact; "<<endl<<"2.) fact=fact*i;";
cout<<"n3.) fact=fact*fact"<<endl<<"4.) None of the
above";
cout<<"nnAnswer:";
cin>>ans2;
if(ans2==2)
{
cout<<"Your answer is correct";
cout<<"nMarks=1";
marks=marks+1;
}
else
{
cout<<"Marks=0";
}
cout<<"nnQ3.) Which is the header file for graphics?";
cout<<"n1.) <graph.h> "<<endl<<"2.) <graphic.h>";
cout<<"n3.) <graphics.h> "<<endl<<"4.) none of the
above";
cout<<"nnAnswer:";
cin>>ans3;
if(ans3==3)
{
9. cout<<"Your answer is correct";
cout<<"nMarks=1";
marks=marks+1;
}
else
{
cout<<"Marks=0";
}
cout<<"nnQ4.) What is the old name for C++?";
cout<<"n1.) C class"<<endl<<"2.) CPP";
cout<<"n3.) C#"<<endl<<"4.) C with classes";
cout<<"nnAnswer:";
cin>>ans4;
if(ans4==4)
{
cout<<"Your answer is correct";
cout<<"nMarks=1";
marks=marks+1;
}
else
{
cout<<"Marks=0";
}
cout<<"nnTotal marks you scored:"<<marks;
cout<<"nntYour answertt Correct answer";
cout<<"nnQ1.)t1.)"<<ans1<<"ttt 1.) Datatype";
cout<<"nQ2.)t2.)"<<ans2<<"ttt 2.) fact=fact*i;";
cout<<"nQ3.)t3.)"<<ans3<<"ttt 3.) <graphics.h>";
10. cout<<"nQ4.)t4.)"<<ans4<<"ttt 4.) C with classes";
getch();
clrscr();
goto y;
}
else if(sub==2)
{
clrscr();
cout<<"ttt---------------------";
cout<<"nttt|JAVA QUESTION PAPER|";
cout<<"nttt---------------------";
cout<<"nnQ1.) What is the range of datatype byte in
java?";
cout<<"n1.) -128 to 127"<<endl<<"2.) -32768 to 32767";
cout<<"n3.) -128 to +128"<<endl<<"4.) None of the
above";
cout<<"nnAnswer:";
cin>>ans5;
if(ans5==1)
{
cout<<"Your answer is correct";
cout<<"nMarks=1";
marks1=marks1+1;
}
else
{
cout<<"Marks=0";
}
11. cout<<"nnQ2.) Modulus operator ,%, can be applied to
which of these?";
cout<<"n1.) Integers"<<endl<<"2.) Floating-point
numbers";
cout<<"n3.) Both Integers and floating-point
numbers"<<endl;
cout<<"4.) None of the above";
cout<<"nnAnswer:";
cin>>ans6;
if(ans6==3)
{
cout<<"Your answer is correct";
cout<<"nMarks=1";
marks1=marks1+1;
}
else
{
cout<<"Marks=0";
}
cout<<"nnQ3.) Decrement operator ,-, decreases value of
variable by what number?";
cout<<"n1.) 1"<<endl<<"2.) 2";
cout<<"n3.) 3"<<endl<<"4.) 4";
cout<<"nnAnswer:";
cin>>ans7;
if(ans7==1)
{
cout<<"Your answer is correct";
12. cout<<"nMarks=1";
marks1=marks1+1;
}
else
{
cout<<"Marks=0";
}
cout<<"nnQ4.) What is the size of double variable?";
cout<<"n1.) 8 bit"<<endl<<"2.) 16 bit";
cout<<"n3.) 32 bit"<<endl<<"4.) 64 bit";
cout<<"nnAnswer:";
cin>>ans8;
if(ans8==4)
{
cout<<"Your answer is correct";
cout<<"nMarks=1";
marks1=marks1+1;
}
else
{
cout<<"Marks=0";
}
cout<<"nnTotal marks you scored:"<<marks1;
cout<<"nntYour answertt Correct answer";
cout<<"nnQ1.)t1.)"<<ans5<<"ttt 1.) -128 to 127";
cout<<"nQ2.)t2.)"<<ans6<<"ttt 3.) Both Integers and
floating-point numbers";
cout<<"nQ3.)t3.)"<<ans7<<"ttt 1.) 1";
13. cout<<"nQ4.)t4.)"<<ans8<<"ttt 4.) 64 bit";
getch();
clrscr();
goto y;
}
else if(sub==3)
{
clrscr();
cout<<"ttt---------------------";
cout<<"nttt|DBMS QUESTION PAPER|";
cout<<"nttt---------------------";
cout<<"nnQ1.) _______ function used to remove duplicate
spaces and spaces at the start nand end of the string?";
cout<<"n1.) LOWER"<<endl<<"2.) SUM";
cout<<"n3.) UPPER"<<endl<<"4.) TRIM";
cout<<"nnAnswer:";
cin>>ans9;
if(ans9==4)
{
cout<<"Your answer is correct";
cout<<"nMarks=1";
marks2=marks2+1;
}
else
{
cout<<"Marks=0";
}
14. cout<<"nnQ2.) The ascending order of a data hierarchy
is:";
cout<<"n1.) Bit-Byte-Field-Record-File-Database"<<endl;
cout<<"2.) Bit-Byte-Record-Field-File-Database"<<endl;
cout<<"3.) Bytes-Bit-Record-Field-File-Database"<<endl;
cout<<"4.) None of the above";
cout<<"nnAnswer:";
cin>>ans10;
if(ans10==2)
{
cout<<"Your answer is correct";
cout<<"nMarks=1";
marks2=marks2+1;
}
else
{
cout<<"Marks=0";
}
cout<<"nnQ3.) Which of the following statement is used to
modify a sequence?";
cout<<"n1.) Drop"<<endl<<"2.) Select";
cout<<"n3.) Alter"<<endl<<"4.) Replace";
cout<<"nnAnswer:";
cin>>ans11;
if(ans11==3)
{
cout<<"Your answer is correct";
cout<<"nMarks=1";