SlideShare a Scribd company logo
1 of 20
Download to read offline
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
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
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)
{
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
{
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;
}
cout<<"Enter password of 8 characters:";
e: for(i=0;i<8;i++)
{
pass1[i]=getch();
cout<<"*";
}
for(i=0;i<8;i++)
{
if(strcmp(pass,pass1)==0)
{
}
else
{
cout<<"nIncorrect password";
cout<<"nEnter the correct password:";
goto e;
}
}
cout<<"nUser-id and password are matched....";
goto c;
}
else if(no==2)
{
exit(0);
}
else
{
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
{
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)
{
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>";
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";
}
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";
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";
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";
}
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";
marks2=marks2+1;
}
else
{
cout<<"Marks=0";
}
cout<<"nnQ4.) Create table employee (name varchar, id
integer)?";
cout<<"n1.) DML"<<endl<<"2.) DDL";
cout<<"n3.) View"<<endl<<"4.) Integrity constraint";
cout<<"nnAnswer:";
cin>>ans12;
if(ans12==2)
{
cout<<"Your answer is correct";
cout<<"nMarks=1";
marks2=marks2+1;
}
else
{
cout<<"Marks=0";
}
cout<<"nnTotal marks you scored:"<<marks2;
cout<<"nntYour answertt Correct answer";
cout<<"nnQ1.)t1.)"<<ans9<<"ttt 4.) TRIM";
cout<<"nQ2.)t2.)"<<ans10<<"ttt 2.) Bit-Byte-Record-
Field-File-Database";
cout<<"nQ3.)t3.)"<<ans11<<"ttt 3.) Alter";
cout<<"nQ4.)t4.)"<<ans12<<"ttt 2.) DDL";
getch();
clrscr();
goto y;
}
else if(sub==4)
{
getch();
clrscr();
cout<<"nnnnnnnnnnntttt****THANK
YOU****";
goto z;
}
else
{
cout<<"Invalid option";
goto y;
}
}
else if(x==2)
{
exit(0);
}
else
{
cout<<"nThis option is not available...";
goto a;
}
z: getch();
}
Output :-
Created by:
Harshita Bhargava

More Related Content

Similar to Online exam

Harendra Singh,BCA Third Year
Harendra Singh,BCA Third YearHarendra Singh,BCA Third Year
Harendra Singh,BCA Third Yeardezyneecole
 
Hardik Jadam , BCA Third Year
Hardik Jadam , BCA Third YearHardik Jadam , BCA Third Year
Hardik Jadam , BCA Third YearDezyneecole
 
Deepika Mittal , BCA Third Year
Deepika Mittal , BCA Third YearDeepika Mittal , BCA Third Year
Deepika Mittal , BCA Third Yeardezyneecole
 
Vinita Vaishnav , BCA Third Year
Vinita Vaishnav , BCA Third YearVinita Vaishnav , BCA Third Year
Vinita Vaishnav , BCA Third YearDezyneecole
 
Rakesh Bijawat , BCA Third Year
Rakesh Bijawat , BCA Third YearRakesh Bijawat , BCA Third Year
Rakesh Bijawat , BCA Third YearDezyneecole
 
c++ project
c++ projectc++ project
c++ projectTrish004
 
Shivani Chouhan , BCA Third Year
Shivani Chouhan , BCA Third YearShivani Chouhan , BCA Third Year
Shivani Chouhan , BCA Third YearDezyneecole
 
programming in C++ report
programming in C++ reportprogramming in C++ report
programming in C++ reportvikram mahendra
 
Dinesh Narayan ,Project on C++,Final year BCA ,Dezyne E'cole College
Dinesh Narayan ,Project on C++,Final year BCA ,Dezyne E'cole CollegeDinesh Narayan ,Project on C++,Final year BCA ,Dezyne E'cole College
Dinesh Narayan ,Project on C++,Final year BCA ,Dezyne E'cole Collegedezyneecole
 
Object Oriented Programming Using C++ Practical File
Object Oriented Programming Using C++ Practical FileObject Oriented Programming Using C++ Practical File
Object Oriented Programming Using C++ Practical FileHarjinder Singh
 

Similar to Online exam (20)

Harendra Singh,BCA Third Year
Harendra Singh,BCA Third YearHarendra Singh,BCA Third Year
Harendra Singh,BCA Third Year
 
Hardik Jadam , BCA Third Year
Hardik Jadam , BCA Third YearHardik Jadam , BCA Third Year
Hardik Jadam , BCA Third Year
 
Deepika Mittal , BCA Third Year
Deepika Mittal , BCA Third YearDeepika Mittal , BCA Third Year
Deepika Mittal , BCA Third Year
 
KBC c++ program
KBC c++ programKBC c++ program
KBC c++ program
 
Vinita Vaishnav , BCA Third Year
Vinita Vaishnav , BCA Third YearVinita Vaishnav , BCA Third Year
Vinita Vaishnav , BCA Third Year
 
Bank management
Bank managementBank management
Bank management
 
Typerwriter
TyperwriterTyperwriter
Typerwriter
 
Rakesh Bijawat , BCA Third Year
Rakesh Bijawat , BCA Third YearRakesh Bijawat , BCA Third Year
Rakesh Bijawat , BCA Third Year
 
c++ project
c++ projectc++ project
c++ project
 
Shopping mall management
Shopping mall managementShopping mall management
Shopping mall management
 
Shivani Chouhan , BCA Third Year
Shivani Chouhan , BCA Third YearShivani Chouhan , BCA Third Year
Shivani Chouhan , BCA Third Year
 
programming in C++ report
programming in C++ reportprogramming in C++ report
programming in C++ report
 
Computer Practical XII
Computer Practical XIIComputer Practical XII
Computer Practical XII
 
Dinesh Narayan ,Project on C++,Final year BCA ,Dezyne E'cole College
Dinesh Narayan ,Project on C++,Final year BCA ,Dezyne E'cole CollegeDinesh Narayan ,Project on C++,Final year BCA ,Dezyne E'cole College
Dinesh Narayan ,Project on C++,Final year BCA ,Dezyne E'cole College
 
Mech nacp lab
Mech nacp labMech nacp lab
Mech nacp lab
 
Object Oriented Programming Using C++ Practical File
Object Oriented Programming Using C++ Practical FileObject Oriented Programming Using C++ Practical File
Object Oriented Programming Using C++ Practical File
 
C lab excellent
C lab excellentC lab excellent
C lab excellent
 
C and Data Structures Lab Solutions
C and Data Structures Lab SolutionsC and Data Structures Lab Solutions
C and Data Structures Lab Solutions
 
C and Data Structures
C and Data Structures C and Data Structures
C and Data Structures
 
Resume
ResumeResume
Resume
 

Recently uploaded

React Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaReact Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaHanief Utama
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software DevelopersVinodh Ram
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...OnePlan Solutions
 
software engineering Chapter 5 System modeling.pptx
software engineering Chapter 5 System modeling.pptxsoftware engineering Chapter 5 System modeling.pptx
software engineering Chapter 5 System modeling.pptxnada99848
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEOrtus Solutions, Corp
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmSujith Sukumaran
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxTier1 app
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureDinusha Kumarasiri
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...soniya singh
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - InfographicHr365.us smith
 
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样umasea
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideChristina Lin
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackVICTOR MAESTRE RAMIREZ
 
Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesPhilip Schwarz
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptkotipi9215
 
Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsUnveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsAhmed Mohamed
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantAxelRicardoTrocheRiq
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityNeo4j
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...stazi3110
 

Recently uploaded (20)

React Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaReact Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief Utama
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software Developers
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...
 
software engineering Chapter 5 System modeling.pptx
software engineering Chapter 5 System modeling.pptxsoftware engineering Chapter 5 System modeling.pptx
software engineering Chapter 5 System modeling.pptx
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
 
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalm
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with Azure
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - Infographic
 
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStack
 
Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a series
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.ppt
 
Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsUnveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML Diagrams
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service Consultant
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered Sustainability
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
 

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;
  • 6. } cout<<"Enter password of 8 characters:"; e: for(i=0;i<8;i++) { pass1[i]=getch(); cout<<"*"; } for(i=0;i<8;i++) { if(strcmp(pass,pass1)==0) { } else { cout<<"nIncorrect password"; cout<<"nEnter the correct password:"; goto e; } } cout<<"nUser-id and password are matched...."; goto c; } else if(no==2) { exit(0); } else {
  • 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";
  • 15. marks2=marks2+1; } else { cout<<"Marks=0"; } cout<<"nnQ4.) Create table employee (name varchar, id integer)?"; cout<<"n1.) DML"<<endl<<"2.) DDL"; cout<<"n3.) View"<<endl<<"4.) Integrity constraint"; cout<<"nnAnswer:"; cin>>ans12; if(ans12==2) { cout<<"Your answer is correct"; cout<<"nMarks=1"; marks2=marks2+1; } else { cout<<"Marks=0"; } cout<<"nnTotal marks you scored:"<<marks2; cout<<"nntYour answertt Correct answer"; cout<<"nnQ1.)t1.)"<<ans9<<"ttt 4.) TRIM"; cout<<"nQ2.)t2.)"<<ans10<<"ttt 2.) Bit-Byte-Record- Field-File-Database"; cout<<"nQ3.)t3.)"<<ans11<<"ttt 3.) Alter";
  • 16. cout<<"nQ4.)t4.)"<<ans12<<"ttt 2.) DDL"; getch(); clrscr(); goto y; } else if(sub==4) { getch(); clrscr(); cout<<"nnnnnnnnnnntttt****THANK YOU****"; goto z; } else { cout<<"Invalid option"; goto y; } } else if(x==2) { exit(0); } else { cout<<"nThis option is not available..."; goto a; }
  • 19.