#include<stdio.h>
int main()
{
int a,b,c,d,e,f,g,h,i,j,result;
int kahoy;
int choice;
printf("=========COLLEGE EXAMINATION=========");
printf("\n\n\nEnter your ID number : ");
scanf("%d",&kahoy);
switch(kahoy){
case 1003956:
printf("Awing,Ian\n1st yr. IT");
break;
case 1004080:
printf("Menchavez,Gelou\n1st yr. IT");
break;
case 1004082:
printf("Demoral,Edwin\n1st yr. IT");
break;
case 1003955:
printf("cabigas,cerelouiscerelouis S.\n1st yr. IT");
break;
case 5:
printf("Rosaldo,laurence\n1st yr. IT");
break;
case 1004079:
printf("Villanueva,Micah C.\n1st yr. IT");
break;
case 1004099:
printf("Tomaquin ,John Rave Y\n1st yr. IT");
break;
case 1003815:
printf("Garso,Abegail\n1st yr. IT");
break;
case 152165:
printf("Drazzel,Janinne\n1st yr. IT");
break;
default:
printf("Sorry No Names Exist!!");
return 0;
break;
}
printf("\n\n PREPARE FOR EXAMINATION!!");
do{
printf("\n\n\nPLEASE ENTER (1) IF YOU WANT TO PROCEED.\n MEAN WHILE, ENTER (2) IF DON'T!!");
printf("\n\nEnter your Mind: ");
scanf("%d",&e);
if (e <2);
else if (e == 2) {
printf("\n Sorry NUMBER .%d got 0 score!!, due by regret to proceed....\n\n ",kahoy);
return 0;
}
}
while (e > 2);
do{
printf("1.IT /INFORMATION TECHNOLOGY\n");
printf("2.PURPOSIVE COMMUNICATION\n");
printf("3.NSTP\n");
printf("4.ARTS APP\n");
printf("5.UNDERSTANDING SELF\n\n");
printf("PLSS 'choice' a subject : ");
scanf("%d",&choice);
if ( choice <= 5) ;
}
while (choice > 5);
switch(choice){
case 1:
if (e == 1){
printf("\n\n'QUESTIONS'");
}
do{
printf("\n\nPlss 'Enter' the correct choices below!!");
printf("\n\nⒶ.Which of the following is not a database management system (DBMS)?\n\n(1)MySQL\n(2)Oracle\n(3)MongoDB\n(4)Microsoft Word\n\nANSWER: ");
scanf("%d",&kahoy);
if(kahoy < 4);
}
while(kahoy > 4);
if(kahoy == 4){
a = 1;
}
else if (kahoy == 1){
a = 0;
}
else if (kahoy == 2){
a = 0;
}
else if (kahoy == 3){
a = 0;
}
do{
printf("\n\nPlss 'Enter' the correct choices below!!");
printf("\n\nⒷ.What is the main function of an IP address?\n\n(1) To identify a website\n(2) To assign unique identification to networked devices\n(3) To measure network speed\n(4) To store user data\n\nANSWER: ");
scanf("%d",&kahoy);
if (kahoy < 4);
}
while(kahoy > 4);
if(kahoy == 2){
b = 1;
}
else if (kahoy == 1){
b = 0;
}
else if (kahoy == 3){
b = 0;
}
else if (kahoy == 4){
b = 0;
}
else{
printf ("b = 0");
}
do{
printf("\n\nPlss 'Enter' the correct choices below!!");
printf("\n\nⒸ.Which protocol is primarily used for sending emails over the internet?\n\n(1)FTP\n(2)SMTP\n(3)IMAP\n(4)HTTP\n\nANSWER: ");
scanf("%d",&kahoy);
if (kahoy < 4);
}
while(kahoy > 4);
if(kahoy == 2){
c = 1;
}
else if (kahoy == 1){
c = 0;
}
else if (kahoy == 3){
c = 0;
}
else if (kahoy == 4){
c = 0;
}
else{
}
do{
printf("\n\nPlss 'Enter' the correct choices below!!");
printf("\n\nⒹ.Which of the following is not a programming language?\n\n (1)Python\n(2) Java\n(3) HTML\n(4) Excel\n\nANSWER: ");
scanf("%d",&kahoy);
if (kahoy < 4);
}
while(kahoy > 4);
if(kahoy == 4){
d = 1;
}
else if (kahoy == 1){
d = 0;
}
else if (kahoy == 2){
d = 0;
}
else if (kahoy == 3){
d = 0;
}
else{
d = 0;
}
do{
printf("\n\nPlss 'Enter' the correct choices below!!");
printf("\n\nⒺ.What is a DNS (Domain Name System) used for?\n\n(1) To convert IP addresses into domain names\n(2) To encrypt data during internet communication\n(3) To measure bandwidth speed\n(4) To store websites' HTML file?\n\nANSWER: ");
scanf("%d",&kahoy);
if (kahoy < 4);
}
while(kahoy > 4);
if(kahoy == 1){
e = 1;
}
else if (kahoy == 2){
e = 0;
}
else if (kahoy == 3){
e = 0;
}
else if (kahoy == 4){
e = 0;
}
else{
e = 0;
}
do {
printf("\n\nPlss 'Enter' the correct choices below!!");
printf("\n\nⒻ.What does the term Cloud Computing refer to?\n\n(1)Storing data on a local hard drive\n(2)Using a network of remote servers hosted on the internet to store, manage, and process data\n(3)Managing data through a personal computer\n(4)A system that tracks real-time weather data\n\nANSWER: ");
scanf("%d",&kahoy);
if (kahoy < 4);
}
while(kahoy > 4);
if(kahoy ==2){
f = 1;
}
else if (kahoy == 1){
f = 0;
}
else if (kahoy == 3){
f = 0;
}
else if (kahoy == 4){
f = 0;
}
else {
f = 0 ;
}
do {
printf("\n\nPlss 'Enter' the correct choices below!!");
printf("\n\nⒾ.What does CPU stand for?\n\n(1)Central Processing Unit\n(2)Computer Personal Unit\n(3)Central Performance Utility\n(4)Control Program Unit\n\nANSWER: ");
scanf("%d",&kahoy);
if (kahoy < 4);
}
while(kahoy > 4);
if(kahoy == 1){
i = 1;
}
else if (kahoy == 2){
i = 0;
}
else if (kahoy == 3){
i = 0;
}
else if (kahoy == 4){
i = 0;
}
else {
i = 0 ;
}
do{
printf("\n\nPlss 'Enter' the correct choices below!!");
printf("\n\nⒿ.Which of the following is an example of an operating system?\n\n(1) Microsoft Word\n(2) Google Chrome\n(3) Windows 10\n(4) Intel Core i7\n\nANSWER: ");
scanf("%d",&kahoy);
if (kahoy < 4);
}
while(kahoy > 4);
if(kahoy ==3){
j = 1;
}
else if (kahoy == 1){
j = 0;
}
else if (kahoy == 2){
j = 0;
}
else if (kahoy == 4){
j = 0;
}
else {
j = 0 ;
}
printf(" 'Answers' \n\nⒶ. 4\nⒷ. 2\nⒸ. 2\nⒹ. 4\nⒺ. 1\nⒻ. 2\nⒾ. 1\nⒿ. 3 ");
printf("\nyou've got =[ %d ]",a + b + c + d + e + f + i + j);
break ;
case 3:
if (e == 1){
printf("\n\n'QUESTIONS'");
}
do {
printf("\n\nPlss 'Enter' the correct choices below!!");
printf("\n\nⒶ. NSTP means?\n\n(1). National Service Training Program (1). National School Training Program\n(3). New Student Training Program\n(4). National Security Training Program\n\nANSWER: ");
scanf("%d",&kahoy);
if (kahoy < 4);
}
while(kahoy > 4);
if(kahoy ==1){
j = 1;
}
else if (kahoy == 3){
j = 0;
}
else if (kahoy == 2){
j = 0;
}
else if (kahoy == 4){
j = 0;
}
else {
j = 0 ;
}
do {
printf("\n\nPlss 'Enter' the correct choices below!!");
printf("\n\nⒷ. Law that created NSTP?\n\n(1). RA 1425\n(2). RA 9163 \n(3). RA 7077\n(4). RA 8491\n\nANSWER: ");
scanf("%d",&kahoy);
if (kahoy < 4);
}
while(kahoy > 4);
if(kahoy ==2){
j = 1;
}
else if (kahoy == 3){
j = 0;
}
else if (kahoy == 1){
j = 0;
}
else if (kahoy == 4){
j = 0;
}
else {
j = 0 ;
}
do {
printf("\n\nPlss 'Enter' the correct choices below!!");
printf("\n\nⒸ. One component of NSTP is?\n\n(1). Scouting\n(2). ROTC \n(3). CAT\n(4). PEn\n\nANSWER: ");
scanf("%d",&kahoy);
if (kahoy < 4);
}
while(kahoy > 4);
if(kahoy ==2){
j = 1;
}
else if (kahoy == 3){
j = 0;
}
else if (kahoy == 1){
j = 0;
}
else if (kahoy == 4){
j = 0;
}
else {
j = 0 ;
}
do {
printf("\n\nPlss 'Enter' the correct choices below!!");
printf("\n\nⒹ. CWTS focuses on?\n(1). Sports\n(2). Community service\n(3). Military training\n(4). Literacy\n\nANSWER: ");
scanf("%d",&kahoy);
if (kahoy < 4);
}
while(kahoy > 4);
if(kahoy ==2){
j = 1;
}
else if (kahoy == 3){
j = 0;
}
else if (kahoy == 1){
j = 0;
}
else if (kahoy == 4){
j = 0;
}
else {
j = 0 ;
}
do {
printf("\n\nPlss 'Enter' the correct choices below!!");
printf("\n\nⒺ. LTS is about?\n(1). Teaching literacy \n(2). Sports\n(3). Defense\n(4). Health\n\nANSWER: ");
scanf("%d",&kahoy);
if (kahoy < 4);
}
while(kahoy > 4);
if(kahoy ==2){
j = 1;
}
else if (kahoy == 3){
j = 0;
}
else if (kahoy == 1){
j = 0;
}
else if (kahoy == 4){
j = 0;
}
else {
j = 0 ;
}
}
return 0;
}