#include <iostream>
using namespace std;
int main(){
cout<<"start of program"<<endl;
int m=0;
char r;
string sname;
cout<<"
__________________online quiz________________"<<endl;
cout<<"enter your sname...";
cin>>sname;
cout<<"if the statement is true ,mark it(T)if it the false mark it(F)"<<endl;
cout<<"*****************************************************************"<<endl;
// qquestion 1
cout<<"
1:-mashine language is the combination of 0 & 1 [T/F]...";
cin>>r;
if(r=='t' || r=='T' ) {
cout<<" your answer is correct";
m+=10;
cout<<" total marks ="<<m;
}else{
cout<<" your answer is in correct";
m+=0;
cout<<" total marks ="<<m;
}
// question 2
cout<<"
2:-computer is a mashine usse only ghygraps 0 & 1 [T/F]...";
cin>>r;
if(r=='f' || r=='F' ) {
cout<<" your answer is correct";
m+=10;
cout<<" total marks ="<<m;
}else{
cout<<" your answer is in correct";
m+=0;
cout<<" total marks ="<<m;
}
// question 3
cout<<"
3:-java and C++ in same language 0 & 1 [T/F]...";
cin>>r;
if(r=='f' || r=='F' ) {
cout<<" your answer is correct";
m+=10;
cout<<" total marks ="<<m;
}else{
cout<<" your answer is in correct";
m+=0;
cout<<" total marks ="<<m;
}
//question 4
cout<<"
4:-window as an oppreating system 0 & 1 [T/F]...";
cin>>r;
if(r=='t' || r=='T' ) {
cout<<" your answer is correct";
m+=10;
cout<<" total marks ="<<m;
}else{
cout<<" your answer is in correct";
m+=0;
cout<<" total marks ="<<m;
}
//question 5
cout<<"
5:-you can make games both by java and c++ 0 & 1 [T/F]...";
cin>>r;
if(r=='t' || r=='T' ) {
cout<<" your answer is correct";
m+=10;
cout<<" total marks ="<<m;
}else{
cout<<" your answer is in correct";
m+=0;
cout<<" total marks ="<<m<<endl;
}
if(m==50){
cout<<"
congratulation !!!your answer all is correctly";
}
}