if(choice == q1) // if choice == '\0' if(choice == q2) // if choice == '\0'
you are comparing user choice with null character, this is never true. and quiz never runs.
anyway, why do you initialize q1 and q2 with '\0' ?
Aren't we supposed to initialize char with '\0'?
Okay now i wont initialize q1 and q2 with '\0'. Chervil and codekiddy what do you suggest that I should do with this? How can I fix this?
What is the user expected to type in response to the prompt? If the user types "Quiz-1", the next line cin>>choice; will get the letter 'Q' as the value of choice. So, make it clear that only a single character should be typed, and specify what the possible choices are.
cout<<"Show marks of Quiz-1 or Quiz-2? Please enter 1 or 2:"<<endl;
Now that is clear, it should also be clear what values should be assigned to q1 and q2.