#include<conio.h>
                             #include<cstdlib>
                             #include<windows.h>
                            using namespace std;
                           oustrup"<<endl;
cout<<"b) Dennis Ritchie"<<endl;
cout<<"c) Ken Thompson"<<endl;
cout<<"d) Brian Kernighan"<<endl;
choice=getch();
if(choice=='A'||choice=='a'){
    cout<<choice<<" is correct Answer"<<endl<<endl;
    st.marks++;
}
else{
    cout<<choice<<" is incorrect Answer"<<endl;
    cout<<"The corrent answer is a"<<endl<<endl;
}
break;
case 4:
cout<<i+1<<")  A language which has the capability to generate new data types are called"<<endl;
cout<<"a) Extensible"<<endl;
cout<<"b) Overloaded"<<endl;
cout<<"c) Encapsulated"<<endl;
cout<<"d) Reprehensible"<<endl;
choice=getch();
if(choice=='A'||choice=='a'){
    cout<<choice<<" is correct Answer"<<endl<<endl;
    st.marks++;
}
else{
    cout<<choice<<" is incorrect Answer"<<endl;
    cout<<"The corrent answer is a"<<endl<<endl;
}
break;
case 5:
cout<<i+1<<") Which of the following is called insertion/put to operator?"<<endl;
cout<<"a) <"<<endl;
cout<<"b) >"<<endl;
cout<<"c) <<"<<endl;
cout<<"d) >>"<<endl;
choice=getch();
if(choice=='c'||choice=='C'){
    cout<<choice<<" is correct Answer"<<endl<<endl;
    st.marks++;
}
else{
    cout<<choice<<" is incorrect Answer"<<endl<<endl;
    cout<<"The corrent answer is c"<<endl;
}
break;
case 6:
cout<<i+1<<") Which of the following is called extraction/get from operator?"<<endl;
cout<<"a) <"<<endl;
cout<<"b) >"<<endl;
cout<<"c) <<"<<endl;
cout<<"d) >>"<<endl;
choice=getch();
if(choice=='d'||choice=='D'){
    cout<<choice<<" is correct Answer"<<endl<<endl;
    st.marks++;
}
else{
    cout<<choice<<" is incorrect Answer"<<endl;
    cout<<"The corrent answer is d"<<endl<<endl;
}
break;
}
i++;

}

        }
    void java(){

if(choice=='C'||choice=='c'){
    cout<<choice<<" is correct Answer"<<endl<<endl;
    st.marks++;
}
else{
    cout<<choice<<" is incorrect Answer"<<endl;
    cout<<"The corrent answer is c"<<endl<<endl;
}
break;
case 2:
cout<<i+1<<") HTML based Java Documentary help can be accessed using?"<<endl;
cout<<"a) javahelp"<<endl;
cout<<"b) javamanual"<<endl;
cout<<"c) javadoc"<<endl;
cout<<"d) None of these"<<endl;
choice=getch();
if(choice=='c'||choice=='C'){
    cout<<choice<<" is correct Answer"<<endl<<endl;
    st.marks++;
}
else{
    cout<<choice<<" is incorrect Answer"<<endl;
    cout<<"The corrent answer is c"<<endl<<endl;
}
break;
case 3:
cout<<i+1<<") Which of the following is used to interpret and execute Java Applet Classws hosted by HTML?"<<endl;
cout<<"a) appletviewer"<<endl;
cout<<"b) appletwatcher"<<endl;
cout<<"c) appletshow"<<endl;
cout<<"d) appletscreen"<<endl;
choice=getch();
if(choice=='A'||choice=='a'){
    cout<<choice<<" is correct Answer"<<endl<<endl;
    st.marks++;
}
else{
    cout<<choice<<" is incorrect Answer"<<endl;
    cout<<"The corrent answer is a"<<endl<<endl;
}
break;
case 4:
cout<<i+1<<") How to compile Java code in command prompt?"<<endl;
cout<<"a) javac filename.java"<<endl;
cout<<"b) java filename.java"<<endl;
cout<<"c) javac filename"<<endl;
cout<<"d) java filename"<<endl;
choice=getch();
if(choice=='A'||choice=='a'){
    cout<<choice<<" is correct Answer"<<endl<<endl;
    st.marks++;
}
else{
    cout<<choice<<" is incorrect Answer"<<endl;
    cout<<"The corrent answer is a"<<endl<<endl;
}
break;
case 5:
cout<<i+1<<") In which year, Sun Microsystems released much of its java virtual machine?"<<endl;
cout<<"a) 2005"<<endl;
cout<<"b) 2007"<<endl;
cout<<"c) 2006"<<endl;
cout<<"d) 2008"<<endl;
choice=getch();
if(choice=='c'||choice=='C'){
    cout<<choice<<" is correct Answer"<<endl<<endl;
    st.marks++;
}
else{
    cout<<choice<<" is incorrect Answer"<<endl<<endl;
    cout<<"The corrent answer is c"<<endl;
}
break;
case 6:
cout<<i+1<<") How to run java program in command prompt?"<<endl;
cout<<"a) javac filename.java"<<endl;
cout<<"b) java filename.java"<<endl;
cout<<"c) javac filename"<<endl;
cout<<"d) java filename" <<endl;
choice=getch();
if(choice=='d'||choice=='D'){
    cout<<choice<<" is correct Answer"<<endl<<endl;
    st.marks++;
}
else{
    cout<<choice<<" is incorrect Answer"<<endl;
    cout<<"The corrent answer is d"<<endl<<endl;
}
break;
}
i++;

Ignoring the poor formatting, can you share what isn't c++ in this 100+ lines of code. Asking for help with a few lines is fine but you went over 100 and didn't reveal where the problem(s) is/are.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.