Q.1.

The way the break is used to take control out of switch and continue to take control of the beginning of the switch?

Q.2.

Can we use a switch statement to switch on strings?

Q.3.

We want to test whether a value lies in the range 2 to 4 or 5 toCan we do this using a switch?

Q.4.

Point out the error, if any in the for loop.

#include<stdio.h>
int main()
{
    int i=    for(;;)
    {
        printf("%d\n", i++);
        if(i>           break;
    }
    return}
Q.5.

Which of the following statements are correct about the below program?

#include<stdio.h>
int main()
{
    int i =j =    if(i =&& if(j =        printf("Have a nice day");
    return}
Q.6.

A short integer is at leastbits wide and a long integer is at leastbits wide.

Q.7.

By default, the data type of a constant without a decimal point is int, whereas the one with a decimal point is a double.

Q.8.

Point out the error, if any in the program.

#include<stdio.h>
int main()
{
    int a =    switch(a)
    {
    }
    printf("This is c program.");
	return}
Q.9.

Which of the following statements are correct about the below program?

#include<stdio.h>
int main()
{
    int i =j =    if(i % 2 = j %        printf("IndiaBIX\n");
    return}
Q.10.

If scanf() is used to store a value in a char variable then along with the value a carriage return(\r) also gets stored it.

Q.11.

Point out the error, if any in the program.

#include<stdio.h>
int main()
{
    int P =
    switch(P)
    {
       case
       printf("Case 1");

       case
       printf("Case 2");
       break;

       case P:
       printf("Case 2");
       break;
    }
    return
}
Q.12.

Point out the error, if any in the program.

#include<stdio.h>
int main()
{
    int i =    switch(i)
    {
        printf("This is c program.");
        case            printf("Case1");
            break;
        case            printf("Case2");
            break;
    }
return}
Q.13.

What will be the output of the program?

#include<stdio.h>
int main()
{
    int x =y =    if(!(!x) && x)
        printf("x = %d\n", x);
    else
        printf("y = %d\n", y);
    return}
Q.14.

What will be the output of the program?

#include<stdio.h>
int main()
{
    int k, num =    k = (num <?:    printf("%d\n", num);
    return}
Q.15.

What will be the output of the program, if a short int is 2 bytes wide?

#include<stdio.h>
int main()
{
    short int i =
    for(i<=5 && i>=-++i; i>
        printf("%u,", i);
    return
}
Q.16.

Which of the following statements are correct about the program?

#include<stdio.h>
int main()
{
    int x =y =    if(x == y)
        printf("x is equal to y\n");

    else if(x > y)
        printf("x is greater than y\n");

    else if(x < y)
        printf("x is less than y\n")
    return}
Q.17.

The modulus operator cannot be used with a long double.

Q.18.

Point out the error, if any in the program.

#include<stdio.h>
int main()
{
    int i =
    switch(i)
    {
        case
           printf("Case1");
           break;
        case 1*2+
           printf("Case2");
           break;
    }
return
}
Q.19.

Point out the error, if any in the while loop.

#include<stdio.h>
int main()
{
    int i=
    while()
    {
        printf("%d\n", i++);
        if(i>
           break;
    }
    return
}
Q.20.

What will be the output of the program?

#include<stdio.h>
int main()
{
    int i=    switch(i)
    {
        default:
           printf("This is default\n");
        case           printf("This is case 1\n");
           break;
        case           printf("This is case 2\n");
           break;
        case           printf("This is case 3\n");
    }
    return}