Question

Write an interactive C program for Q1.

24 Nov 2017
Answer :
Word Count : 577

#include<stdio.h>
int MARKS[5];
struct MCQ
{
int NO;
char QTN[100],CH1[25],CH2[25],CH3[25],CH4[25];
int AnsNo;
}MCQ[5]={
{1,”sizeof is an example of _____.”,”Binary Optr”,”Unary Optr”,”Ternary Optr”,”None of these”,3},
{2,”Associativity of Unary Operator is from __to__.”,”Left to Right”,”Right to Left”,”Both”,”None of these”,2},
{3,”Which of the following Operator has lowest precedence amongst all the Operators?”,”Logical AND”,”Modulus”,”Comma”,”Plus”,3},
{4,”Unary Operators are Operators having ____.”,”Highest Precedence”,”Lowest Precedence”,”Both”,”None of these”,1},
{5,”Which is the Correct Hierarchy of Arith Optrs in C ?”,”/*+-”,”*-/+”,”/+*-”,”+-/*”,1}, };
void main()
{
char C;
int I,T=0;
void gen_mcq();
clrscr();
printf(“\n\nWELCOME TO THE MULTIPLE CHOICE QUESTIONS : “);
printf(“\n\n\nPLEASE ENTER Y OR y TO CONTINUE:”);
scanf(“%c”,&C);
if(C==’Y'||C==’y')
{
for(I=0;I<5;I++)
gen_mcq(I);
for(I=0;I<5;I++)
T=T+MARKS[I];
printf(“\n\n\n YOU GOT %d CORRECT OUT OF 5 IN YOUR MCQ.”,T);
}
else
printf(“\nWE ARE QUITING MCQ!!”);
getch();
}
void gen_mcq(int Qno)
{
int N;
clrscr();
printf(“\n\n\n\t\tINDIRA GANDHI NATIONAL OPEN UNIVERSITY”);
printf(“\n\t\t\t(MCQ – 2015)”);
printf(“\n\t_______________________________________________________________”);
printf(“\n\n\tQ_NO. %d. %s”,MCQ[Qno].NO,MCQ[Qno].QTN);
printf(“\n\t_______________________________________________________________”);
printf(“\n\n\t1.\t%s\t\t2.\t%s\t”,MCQ[Qno].CH1,MCQ[Qno].CH2);
printf(“\n\n\t3.\t%s\t\t4.\t%s\t”,MCQ[Qno].CH3,MCQ[Qno].CH4);
printf(“\n\t_______________________________________________________________”);
printf(“\n\tENTER UR ANSWER (IN NUMBER) :”);
scanf(“%d”,&N);
if(N==MCQ[Qno].AnsNo) MARKS[Qno]=1; else MARKS[Qno]=0;
}

c#include<stdio.h>

int MARKS[5];

struct MCQ

_________ ___ _______ _______ _____ ____ ____ ___ ________.
_____ _________ ____ _________ __________.
____ _______ ______ ______ __________ _________ ___ _______ _____ _____ _____ ________.
__________ __________ ____ ______ _______ __________ __________ _________.
___ _____ _______ ________ __________ _________ _________ ___ ________ ___.
__________ __________ ______ _________ ________ __________ __________.
________ _________ ____ _________ _________ ______ ______.
_________ ____ __________ ___ ______ ________ _______ __________ ______ _______.
_______ _________ ____ _______ ___ _________ _________ __________ __________ ___ ____ _________.
________ ________ _________ _______ ________ ___ _______ ____.
___ _____ _______ _________ _______ ______ ______ _________.
_________ ______ _____ ______ ____ ___ __________ __________ _____ ________.
_________ __________ _________ ___ __________ _________ _______ ______.
___ _______ _____ ____ ________.
_________ _____ ____ _______ ____ ____ _______ __________ _______ ______.
_________ ___ ____ _____ __________ _________ _______.
__________ __________ _______ ___ _________ ________ _____.
_____ ___ ___ ________ __________ __________ ________ ______ _______.
_________ ___ ___ _______ _____ _______ ____ _________ _______ ______ _______.
______ ____ ________ ____ _____ ___.
_____ _____ ______ ________ ________ __________ _____ _______ ________ ______.
______ _________ __________ ____ ________ ___ ______ _______ ____ ____ _______.
_________ _______ _______ _____ __________ ______ ___ ______ ______ _______ __________ ______.
_____ _____ _____ _____ _____ ________ ______ ____ ________ ________ _________.
____ ___ ___ __________ ______ _____ ________ _______ ______ _____ ______.
________ __________ _________ __________ _________.
_______ _______ _____ _________ _____ __________ ______ ____.
__________ ______ ______ ________ ____ _____ ___.
____ __________ _____ __________ ______ _____ _______ ____ __________ ________.
_____ _______ _____ ____ _______ _________ _____ __________ __________ ______ ________ ___.
________ _____ __________ _____ __________ ____.
_______ ____ ______ __________ ___ ___ _________ ____ ______ _____ _________ ________.
____ ____ __________ ________ _____ ______ __________ ________.
___ _____ _____ ______ _________ _________ ___ ___ _________ _______ ________ _____.
________ _______ ___ _________ __________ ______ ______ ________ ____.
______ ___ ___ _______ ______ ____ _________ ________ _________ __________.
________ _________ ______ ____ _________ ____.
______ __________ ______ _______ _________ ________.
_______ __________ ______ ______ ______ ___ ___ ________ ___.
__________ _______.
IGNOU ACADEMY
Your IGNOU journey, made easier.
  • Solved Assignments
  • Study Notes
  • Guess Papers
  • Question Papers
Skip in 10
Top
📞
Call Support Instant phone assistance IGNOU MCS 11 2016 - Write an interactive C program for Q1. | IGNOU Academy
→
🟢
WhatsApp Chat Fast live messaging
→
Email Us Business enquiries & support
→