Top

Control Instructions

91.

What is the output of this C code?

void main()

    {

        int i = 0;

        if (i == 0)

        {

            printf("Hello");

            continue;

        }

    }

 

Answer: D

No answer description available for this question.

Enter details here

92.

Point out the error, if any in the program.

#include
int main()
{
    int a = 10;
    switch(a)
    {
    }
    printf("This is c program.");
    return 0;
}

 

Answer: C

No answer description available for this question.
 

Enter details here

93.

In C++, which system - provided function is called when no handler is provided to deal with an exception?

Answer: A

No answer description available for this question.
 

Enter details here

Answer: A

No answer description available for this question.
 

Enter details here

95.

Switch statement accepts.

Answer: D

No answer description available for this question.
 

Enter details here

96.

#include 
int main()
{
    int i = 3;
    while (i--)
    {
        int i = 100;
        i--;
        printf("%d ", i);
    }
    return 0;
}

 

Answer: B

No answer description available for this question.
 

Enter details here

97.

What is the output of this C code?

int main()

    {

        printf("before continue ");

        continue;

        printf("after continue\n");

    }

 

Answer: D

No answer description available for this question.

Enter details here

98.

Predict the output of the below program:

#include 
int main()
{
    int i = 3;
    switch(i)
    {
        printf("Outside ");
        case 1: printf("Geeks");
            break;
        case 2: printf("Quiz");
            break;
        defau1t: printf("GeeksQuiz");
    }
    return 0;
}

 

Answer: C

No answer description available for this question.
 

Enter details here

99.

Point out the error, if any in the program.

#include 
int main()
{
    int a = 10, b;
    a >=5 ? b=100: b=200;
    printf("%d\n", b);
    return 0;
}

 

Answer: C

No answer description available for this question.
 

Enter details here

100.

What will be the output of the program?

#include
int main()
{
    int x = 10, y = 20;
    if(!(!x) && x)
        printf("x = %d\n", x);
    else
        printf("y = %d\n", y);
    return 0;
}

 

Answer: C

No answer description available for this question.
 

Enter details here

Loading…
Tags: Control Instructions Questions and Answers || Control Instructions MCQ Questions and Answers || Control Instructions GK Questions and Answers || Control Instructions GK MCQ Questions || Control Instructions Multiple Choice Questions and Answers || Control Instructions GK || GK on Control Instructions || C Programming Questions and Answers || C Programming MCQ Questions and Answers || C Programming GK Questions and Answers || GK on C Programming