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

Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxbodapatigopi8531
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantAxelRicardoTrocheRiq
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providermohitmore19
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️anilsa9823
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionSolGuruz
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerThousandEyes
 
Test Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and BackendTest Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and BackendArshad QA
 
Active Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdfActive Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdfCionsystems
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfjoe51371421
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Modelsaagamshah0812
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxComplianceQuest1
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AIABDERRAOUF MEHENNI
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdfWave PLM
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️Delhi Call girls
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...gurkirankumar98700
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsJhone kinadey
 

Recently uploaded (20)

Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service Consultant
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 
Test Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and BackendTest Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and Backend
 
Active Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdfActive Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdf
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdf
 
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
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;
  • 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.