You are on page 1of 8

Malla, Mhar Angelo Cruz

BSIT 1-I
Result:
Codes:
#include <iostream>
using namespace std;

int main()
{
int ans;

cout<<"***************************************************\n";
cout<<"** Multiple choice **\n";
cout<<"**Direction: pick a number to choose your answer.**\n";
cout<<"***************************************************\n";

cout<<"\nA. In 1768, Captain James Cook set out to explore which ocean?\n";
cout<<"1. Pacific Ocean\n";
cout<<"2. Atlantic Ocean\n";
cout<<"3. Indian Ocean\n";
cout<<"4. Arctic Ocean\n";
cout<<"Enter your Answer: ";
cin>> ans;

if(ans == 1)
{
cout<<"Correct!!!";
}
else if(ans>=2)
{
cout<<"Wrong!!!";
}
else
{
cout<<"OUT OF RANGE.";
}

cout<<"\n";
cout<<"\nB. What is actually electricity?\n";
cout<<"1. A flow of water\n";
cout<<"2. A flow of air\n";
cout<<"3. A flow of electrons\n";
cout<<"4. A flow of atoms\n";
cout<<"Enter your Answer: ";
cin>> ans;
if(ans == 3)
{
cout<<"Correct!!!";
}
else if(ans == 1)
{
cout<<"Wrong!!!";
}
else if(ans == 2)
{
cout<<"Wrong!!!";
}
else if(ans >= 4)
{
cout<<"Wrong!!!";
}
else
{
cout<<"OUT OF RANGE.";
}

cout<<"\n";
cout<<"\nC. What is the speed of sound?\n";
cout<<"1. 120 km/h\n";
cout<<"2. 1,200 km/h\n";
cout<<"3. 400 km/h\n";
cout<<"4. 700 km/h\n";
cout<<"Enter your Answer: ";
cin>> ans;

if(ans == 1)
{
cout<<"Correct!!!";
}
else if(ans>=2)
{
cout<<"Wrong!!!";
}
else
{
cout<<"OUT OF RANGE.";
}

cout<<"\n";
cout<<"\nD. Which did Viking people use as money?\n";
cout<<"1. Rune stones\n";
cout<<"2. Jewellery\n";
cout<<"3. Seal skins\n";
cout<<"4. Wool\n";
cout<<"Enter your Answer: ";
cin>> ans;

if (ans == 2)
{
cout<<"Correct!!!";
}
else if(ans == 1)
{
cout<<"Wrong!!!";
}

else if(ans >= 3)


{
cout<<"Wrong!!!";
}
else
{
cout<<"OUT OF RANGE.";
}

cout<<"\n";
cout<<"\nE. Ano ang right \n";
cout<<"1. Tama\n";
cout<<"2. Kanan\n";
cout<<"3. Karapatan\n";
cout<<"4. All of the Above\n";
cout<<"Enter your Answer: ";
cin>> ans;

if (ans >= 1)
{
cout<<"Correct!!!";
}
else
{
cout<<"OUT OF RANGE.";
}
return 0;
}

You might also like