Knowledge check.

- Choose one best answer from given 4 choices for each questions.
- Review before submit as you wont get a chance to review after submit.
- Max Time for quiz is 30 mins and Exam is 90 mins.
- Login is not required for an exam or a quiz.
- By submitting you formally acknowledge and accept terms and conditions mentioned here.

Question Number 1

Debugging helps in the following :

Question Number 2

Which of the following is related to a Microsoft Development tool package.

Question Number 3

Which of the following are constituents of a C program :

Question Number 4

Give the output of the following code snippet :
void main()
{
    int a=30,b=20,c=50;
    if(a % b == c % 2)
        b=10;
    else
        c=40;
    a=50;
    printf("%d %d %d",a,b,c);
}

Question Number 5

Which of the keywords denote the size and type of a variable in C :

Question Number 6

Give the output of the following code snippet :
void main()
{
    Test();
    void Test()
    {
        printf("Hello");
    }
}

Question Number 7

When the breakpoint is placed at a particular line, the execution of the code is :

Question Number 8

Which mode is used to denote opening the binary file for writing but discards any previous contents if any?

Question Number 9

Which of the following statements is not true with regards to the continue statement :

Question Number 10

Give the output of the following code snippet :
void main()
{
    int a=13,b=20;
    if(!a!=b)
        printf("%d",++a);
    else
        printf("%d",--b);
}

Question Number 11

Which of the following functions are available in the header file string.h in C?

Question Number 12

Which of the following statements is true about an escape sequence in C?

Question Number 13

A function can be used as a parameter for another function. State true or false :

Question Number 14

Free Edition of Visual Studio is,

Question Number 15

Give the output of the following code snippet :

struct p
{
    int mark1;
    char name[10];
    int mark3;
};

int main()
{
    struct p x = {100};
    printf("%d %s %d\n",x.mark1,x.name,x.mark3);
}

Question Number 16

Give the output of the following C code:
int mult(int a, int b);


void main()
{

    int a=10,b=2;
    int t1=mult(a,b);

    int t2=mult(3,30);

    printf("Sum = %d", t1+t2);


}

int mult(int a, int b)
{
    return a*b;

}

Question Number 17

Give the output of the following code snippet :
void main()
{

    int a;
    for(a=0; a< 5; a++)
    {
        if(a==2)
            break;
        printf("Hello world");
    }

}

Question Number 18

Which of the following is related to a Microsoft Development tool package?

Question Number 19

Give the output of the following code snippet :

void main()
{
    static int x;
    printf("x is %d", x);
}

Question Number 20

What is the green play button in the Visual studio does?

Question Number 21

Give the output of the following code snippet :
void main()
{
    char arr[11]="The African";
    printf("%s",arr);

}

Question Number 22

Give the output of the following code snippet :
int i=10;
int func(int x)
{
    i++;
    return ++i;

}
int func2(int y)
{
    i=30;
    --i;
    return --i;
}
void main()
{
    int a=func(i);
    int b=func2(i);
    printf("%d",a*b);
}

Question Number 23

Give the output of the following code snippet:
struct p
{
    char c;
    float f;
};

int main()
{
    struct p x = {1,97,3};
    printf("%f \n", x.f);
}

Question Number 24

Give the output of the following code snippet :
void demo();
int main()
{
    demo();
    return 0;
}

void demo()
{
    printf("Hello ");

}

Question Number 25

Give the output of the following code snippet :
int main()
{
    int i=0;
    while(!i++)
    {
        printf("%d",i--+ ++i);
        main();
    }
}

Question Number 26

Which mode permits reading and writing the same file?

Question Number 27

Which of the following is a valid syntax for the sscanf() function?

Question Number 28

Automatic variables are variables that are

Question Number 29

Visual Studio has

Question Number 30

Give the output of the following code snippet :
void main()
{
    static int x;
    if (x++ <  2)
    {
        printf("Ho " );
        main();
    }
}

Question Number 31

Give the output of the following code snippet :
int x = 5;
void main()
{
    int x = 3;
    printf("%d ", x);
    {
        x = 4;
    }
    printf("%d", x);
}

Question Number 32

Boiler Plate code is auto-generated in Visual Studio by,

Question Number 33

Which of the following is related to a Microsoft Development tool package.

Question Number 34

Which of the following is a debugger :

Question Number 35

Give the output of the following code snippet :
int func()
{
    int i=10;
    if(i!=0)
        return 10;
    else
        return 20;
}
int main()
{
    int a=func();
    printf("%d",a);

}

Question Number 36

Which mode is used to denote opening the binary file for update?

Question Number 37

Which of the following is a two dimensional array in C :

Question Number 38

The main function in a given program cannot be called recursively. State true or false :

Question Number 39

Give the output of the following code snippet :

int main()
{
    int i=0;
    for(i=0; i< 5; i++)
    {
        if((i==2)||(i==4))
            break;
        printf("Ho");
    }
    printf("Hello World");

}

Question Number 40

Give the output of the following code snippet :
int main()
{
    float a,b;
    int func(int,float);
    a=func(100,250.5);
    b=func(20,20.75);
    printf("%.2f %.2f",a,b);
}
int func(int a,float b)
{
    return ((float)a+b);
}

Question Number 41

Give the output of the following code snippet :
int func(int a)
{
    int b=10,i=0;
    while(a!=0)
    {
        int c=a+b;
        a--;
        b--;
        printf("%d ",c);
        break;
    }

    return 0;
}
int main()
{
    int x=5;
    func(x);
}

Question Number 42

Which of the keywords denote the size and type of a variable in C :

Question Number 43

Give the output of the following code snippet :
struct student
{
    int mark1;
    int mark2;
} p[] = {0};
void main()
{
    printf("%d", sizeof(p));
}

Question Number 44

Give the output of the following code snippet :
int main()
{
    int i=0;
    if(i--)
    {
        printf("%d",i++);
        main();
    }
    else
        printf("%d",--i);
}

Question Number 45

Which of the following are file positioning functions in C?

Question Number 46

Following is a challenge with Visual studio for a beginner,

Question Number 47

Give the output of the following code snippet :
int func(int a)
{
    int b=10;
    return a+++ ++b;
}
int main()
{
    int x=5;
    int z=func(func(func(func(5))));
    printf("%d",z);
}

Question Number 48

Which of the keywords denote the scope of a variable in C :

Question Number 49

What does the fread() function return?

Question Number 50

Which of the keywords denote the size and type of a variable in C :

Question Number 51

Give the output of the following code snippet :
struct Point
{
    int x;
    int y;
};

int main()
{
    struct Point p1 = {10, 20};
    struct Point p2 = p1;
    if (p1.x == p2.y)
        printf("p1 and p2 are same ");
}

Question Number 52

Which among the following is the correct syntax to declare a variable as static and register?

Question Number 53

Which of the following is an example of looping in C?

Question Number 54

Give the output of the following code snippet :
int x;
void main()
{
    printf("%d", x);
}

Question Number 55

The conditional operator can be used to replace which condition statement in C?

Question Number 56

Which of the following statements is true about Strings in C :

Question Number 57

Consider the given example of a function declaration in C. State which of the following is correct.

Question Number 58

Give the output of the following code snippet :
struct p
{
    int k;
    char c;
};
int p = 10;
int main()
{
    struct p x;
    x.c = 'B';
    printf("%d %d\n", x.c, p);
}

Question Number 59

Identify the general syntax of the conditional operator in C :

Question Number 60

What is the return type of the getchar() function?

Question Number 61

Visual Studio is NOT

Question Number 62

What is Visual Studio?

Question Number 63

Which is the function used to compare two strings in C?

Question Number 64

Give the syntax for the do-while loop in C :

Question Number 65

Give the output of the following code snippet :

int main()
{
    int i,j,k;
    for(i=0,j=2,k=1; i< =4; i++)
    {
        printf("%d ",i+j+k);
    }
    return 0;
}

Question Number 66

Platforms and software supported by Visual Studio are,

Question Number 67

Give the output of the following code snippet :
void main()
{
    int a=300,b=20,c=50;
    if(a % b == c % 2)
        a=10;
    else
        c=40;
    a=50;
    printf("%d %d %d",a,b,c);
}

Question Number 68

Platforms and software supported by Visual Studio are,

Question Number 69

Give the output of the following code snippet :

void main()
{
    int k;
    for (k = -3; k <  -5; k++)
        printf("Hello");
}

Question Number 70

Which of the keywords denote the size and type of a variable in C :

Question Number 71

Which of the following operators performs the same function of the logical AND operator?

Question Number 72

Where should a function be defined in a C program to be called from the main function in a single file program?

Question Number 73

Name the function key associated with debugging an application in Visual Studio :

Question Number 74

Give the output of the following code :
void main()
{
    char str1[]= {0};
    printf(str1);
}

Question Number 75

Give the output of the following code snippet :
int main()
{
    do
        printf("In while loop ");
    while (0);
    printf("After loop\n");
}

Question Number 76

Give the output of the following program :
int fun(int i)
{
    i++;
    return i;
}

int main()
{
    int fun(int);
    int i=3;
    fun(i=fun(fun(i)));
    printf("%d\n", i);
    return 0;
}

Question Number 77

Which of the keywords denote the size and type of a variable in C :

Question Number 78

When a program begins execution, which of the following streams are open?

Question Number 79

Give the output of the following code snippet :
int temp = 100;
switch(temp)
{
case 10 :
    printf("10");
    break;
case 10 :
    printf("10");
    break;
case 100 :
    printf("1000");
    break;
default :
    printf("default");
    break;
}

Question Number 80

Give the output of the following code snippet :

void main()
{
    int a=1;
    if(!a)
        printf("Value is not 1");
    else
        printf("Value is 1");
}

Question Number 81

Give the output of the following code snippet :
void main()
{
    char new1 ='c';
    if(( new1 =='C') || (new1 =='c'))

        printf("Same");
    else
        printf("Not Same");

}

Question Number 82

The steps to start a New Wizard in Visual Studio 2010 is,

Question Number 83

Visual Studio has

Question Number 84

Give the output of the following code snippet :
int main()
{
    int i;

    for(i=1; i< =3; i++)
    {
        printf("Ho ");
    }
    printf("%d",i);

    return 0;
}

Question Number 85

Give the output of the following code :
struct student
{
    int no;
    char name[20];
};

void main()
{

    struct student s;
    no = 8;
    printf("%d", no);
}

Question Number 86

Give the output of the following code snippet :
struct student
{
    int no;
};
void main()
{
    struct student s;
    no=10;
    printf("%d",no);
}

Question Number 87

Give the output of the following code snippet :
int main()
{
    for(int i=0; i< =4; i++)
    {
        printf("%d ",i);
    }

    return 0;
}

Question Number 88

Boiler Plate code is auto-generated in Visual Studio by,

Question Number 89

Give the output of the following code snippet :
void main()
{
    int x=0,z;
    float p=2.4567;
    float q=5.6543;
    float r=0.0;
    printf("%4.4f",p+q-r);
}

Question Number 90

Which of the following are examples of built in functions?

Question Number 91

Give the output of the following code snippet :
void main()
{
    int a=12,i=0;
    --a;
    while(!i)
    {
        printf("%d",a);
    }

}

Question Number 92

Which of the following are the user interfaces that help to debug a program with Visual Studio:

Question Number 93

Which of the following statements in C completely skips the particular iteration of the loop but starts the next iteration?

Question Number 94

Give the output of the following code snippet :
void main()
{
    char new1[]="Welcome";
    printf (new1);
}

Question Number 95

Which is the function key in VS is associated with passing the control to the function definition to debug it using breakpoint:

Question Number 96

Which function is used to position the stream at the position recorded by fgetpos() function?

Question Number 97

Name the looping statements available in C :

Question Number 98

Give the output of the following code snippet :
int main()
{
    int i=0;
    while(!i)
    {
        printf("%d",i++);
        main();
    }

}

Question Number 99

Which of the following statements is true about the break statement in C:

Question Number 100

How many arguments does the fclose() function take?

Question Number 101

Give the output of the following code snippet :
struct p
{
    int k;
    char c;
};
int p = 10;
int main()
{
    struct p x;
    x.k = 10;
    printf("%d %d\n", x.k, p);
}

Question Number 102

Given the following code snippet, find the output of the program :

void main()
{
    int a=5;

    switch(5)
    {
    case 1:
        printf("Value is 5");
        break;
    case 5:
        printf("Value is 1");
        break;
    }
}

Question Number 103

Which of the following is a valid initialization of a multidimensional array?

Question Number 104

Give the output of the following code snippet :
int func(int,float);
int main()
{
    float a,b;
    a=func(100,250.5);
    b=func(20,20.75);
    printf("%.2f %.2f",a,b);
}
int func(int a,float b)
{
    return ((float)a+b);
}

Question Number 105

Which of the following functions is used to set the file position for the stream?

Question Number 106

Which of the keywords denote the size and type of a variable in C :

Question Number 107

Give the output of the following code snippet :
int func(int a*b)
{
    int i=10;
    if(i< =0)
        return a+10;
}
int main()
{
    float a=func(10*5+5);
    printf("%.2f",a);

}

Question Number 108

Give the output of the following code snippet :
struct point
{
    int x;
    int y;
};
void point fun()
{
    struct point temp = {1, 2};
    return temp;
}
int main()
{
    struct point p1 = {10};
    p1 = fun();
    printf("%d\n", p1.x);
}

Question Number 109

Which of the following steps are required to execute a C program in Visual Studio?

Question Number 110

Which of the following are the user interfaces that help to debug a program with Visual Studio :

Question Number 111

Give the output of the following code snippet :
void main()
{
    int i=0;
    int sum=0;
    do
    {
        printf("%d",i);
        sum+=i;
    }
    while(i=1);
}

Question Number 112

Which of the following is a valid string definition?

Question Number 113

Give the output of the following code snippet :

int main()
{
    for (int i = 0; i < 1; i++)
        printf("In the loop");
}

Question Number 114

Which is a Visual Studio edition.

Question Number 115

Which of the following is not a logical operator in C ?

Question Number 116

Which mode is used to denote opening the text file for writing but discards any previous contents if any?

Question Number 117

Give the output of the following code snippet :
void main()
{
    static double x;
    int x;
    printf("x is %d", x);
}

Question Number 118

Give the output of the following code snippet :
struct p
{
    int k;
    char c;

};
int main()
{
    struct p x = {10,1};
    x.k=5;
    printf("%d %d\n", x.k,x.c);
}

Question Number 119

Which of the following statements is true about the fclose() function?

Question Number 120

Which of the keywords denote the size and type of a variable in C :

Question Number 121

Consider the given code snippet in C. What is the output of the program :
void main()
{

    char a=2345;
    printf("%c",a);

}

Question Number 122

Give the output of the following code snippet :
struct
{
    int no;
}
void main()
{
    struct s;
    s.no=10;
    printf("%d",no);
}

Question Number 123

Give the output of the following code snippet :
void main()
{
    int i=0;
    int sum=0;
    do
    {
        printf("%d",i);
        sum+=i;
        i++;
    }
    while(!i);
}

Question Number 124

Which is NOT a Visual Studio edition.

Question Number 125

Platforms and software supported by Visual Studio are,

Question Number 126

Debugging allows you to :

Question Number 127

Which mode is used to denote opening the text file for writing, where the writing is done at the end?

Question Number 128

What is the output of the given code if the file 'Test.txt' is not present?
void main()
{
    char x;
    FILE *fp;
    fp=fopen("Test.txt","r");
    while((x=getc(fp))!=EOF)
        printf("%c",x);
    printf("\n");
    fclose(fp);
}

Question Number 129

Which of the following are basic types of variables in C :

Question Number 130

Name some of the basic errors that may occur during compilation of a C program :

Question Number 131

Name the header file used to call the printf function in the main program.

Question Number 132

Give the output of the following code snippet :
int main()
{
    int i;
    for (i = 1; i !=6; i += 2)
        printf("Ho ");
    return 0;
}

Question Number 133

Which of the following characters are printed by the ispunct() function defined in ctype.h?

Question Number 134

The nth element of an array arr[n] of n values is accessed by:

Question Number 135

Which of the following is a valid string definition?

Question Number 136

Which of the following statements is true about Strings in C :

Question Number 137

Consider the given code snippet in C. What is the output of the program :
void hello();
int a1=10;
void main()
{

    int a1=20;
    printf("%d",a1);

}

Question Number 138

Which of the following statements is true about the remove() function?

Question Number 139

Give the output of the following code snippet :

void func(int a)
{
    int sum=0,x;
    while(a!=0)
    {
        x=a%100;
        sum+=(x+x+x);
        a=a/10;
    }
    printf("%d ",sum);
}
int main()
{
    func(1000);
    func(2222);
}

Question Number 140

Give the output of the following code snippet :
int func(int a,int b)
{
    int i=100;
    if(i++< =100)
        return 20;
    else
        return 30;
}
int main()
{
    int z=func(100,200);
    printf("%d",z);
}

Question Number 141

Which of the following is a valid syntax for the function freopen()?

Question Number 142

Give the output of the following code snippet :

void main()

{
    printf("Before continue ");
    continue;
    printf("After continue\n");
}

Question Number 143

Give the output of the following code snippet :
int main()
{
    int i = 0;
    do
    {
        i++;
        printf("Ho ");
    }
    while (i <  3);
}

Question Number 144

Which of the following modes is used to indicate full buffering in the setvbuf() function?

Question Number 145

The keyword 'break' cannot be used within :

Question Number 146

Give the output of the following code :
void main()
{
    int var = strcmp("Hello","World");
    printf("%d", var);
}

Question Number 147

Which of the following methodologies are used to control the flow of the program in C?

Question Number 148

Give the output of the following code snippet :
void func()
{
    int j=20;
    printf("%d",j);
}
void func()
{
    int i=10;
    printf("%d",i);
}
int main()
{
    func();
    func();
}

Question Number 149

Versions of Visual Studio are,

Question Number 150

Which mode is used to denote opening the binary file for writing, where the writing is done at the end?

Question Number 151

Which of the following functions are available in the header file string.h in C?

Question Number 152

Give the output of the following code snippet :
int func(int a)
{
    int b=0,i=0;
    a=b;
    while(a< =0)
    {
        int c=a+b;
        a--;
        b--;
        printf("%d ",c);
        func(b);
    }
    return 0;
}
int main()
{
    int x=5;
    func(x);
}

Question Number 153

Give the output of the following code snippet :
void main()
{
    int a=10;
    switch(a)
    {
    case 10 :
        printf("%d",a);
        break;
    case a:
        printf("%d",a++);
        break;
        printf("%d",a);
    }
}

Question Number 154

Give the output of the following code :
void main()
{
    int var = strcmp("Yellow","Yellow");
    printf("%d", var);
}

Question Number 155

According to the presenter, to overcome the learning curve with Visual Studio, with ease, it’s better to

Question Number 156

Platforms and software supported by Visual Studio are,

Question Number 157

Which is the function used to length of a string in C?

Question Number 158

Give the output of the following code snippet :
void main()
{
    int x = 3;
    {
        x = 4;
        printf("%d ", x);
    }
    printf("%d", x);
}

Question Number 159

Which of the following is a ways can be used to represent an array of Strings in C?

Question Number 160

Give the output of the following code snippet :
void main()
{
    int a=12;
    a==12?a=0:a=1;
    printf("%d",a);
}

Question Number 161

Which of the following functions flushes all the output streams?

Question Number 162

Breakpoints allow you to :

Question Number 163

Which is the function key in VS is associated with stepping out of the function while debugging?

Question Number 164

Which of the following is related to a Microsoft Development tool package?

Question Number 165

Debugging allows you to :

Question Number 166

Which of the following are the user interfaces that help to debug a program with Visual Studio:

Question Number 167

Which of the following is not a debugger :

Question Number 168

Give the output of the following code snippet :
struct Point
{
    int x;
    int y;
};

int main()
{
    struct Point p1 = {10};
    struct Point p2 = p1;
    printf("%d  %d", p2.x, p2.y);
    getchar();
}

Question Number 169

Which of the following modes is used to indicate line buffering of text files in the setvbuf() function?

Question Number 170

Which of the following statements are used to alter the flow of control in a C program :

Question Number 171

Which of the following is a valid array declaration in C ?

Question Number 172

Give the output of the following C code:
int mult(int a, int b)
{
    return a*b;

}

int sum ( int a, int b)
{
    return a+b;
}

void main()
{

    int a=10,b=2;
    int t1=mult(a,b);

    int t2=mult(3,30);

    printf("Sum = %d", sum(t1,t2));


}

Question Number 173

Which of the keywords denote the size and type of a variable in C :

Question Number 174

When a program begins execution, which of the following streams are open?

Question Number 175

Give the output of the following code snippet :

void main( )
{
    int c;
    c = getchar( );
    printf( "\nYou entered: ");
    putchar( c );
}

Assume input as 6 :

Question Number 176

Give the output of the following code snippet :
void main()
{
    int i=0;
    int sum=0;
    do
    {
        printf("%d",i);
        sum+=i;
    }
    while(i=1; i< 5; i++);
}

Question Number 177

Which of the following is an example of loop in C?

Question Number 178

Name some of the problems associated with goto statement :

Question Number 179

Versions of Visual Studio are,

Question Number 180

What is the range of the values allowed for the data type char in C:

Question Number 181

What is the escape sequence used to denote a double quote in C?

Question Number 182

Which of the following are keywords in C:

Question Number 183

Give the output of the following code snippet :
int func()
{
    int i=10;
    if(i!=0)
        return 10.50;
    else
        return 20.75;
}
int main()
{
    float a=func();
    printf("%.2f",a);

}

Question Number 184

A function cannot have more than one return statement. State true or false :

Question Number 185

Give the output of the following code snippet :
void main()
{
    int a=10;
    switch(a--)
    {
    case 10 :
        printf("%d ",a);
    case 9  :
        printf("%d ",a++);
        printf("%d ",a);
    }
}

Question Number 186

Give the output of the following code snippet :
struct student
{
    int no;
}
void main()
{
    struct student s;
    s.no=10;
    printf("%d",no);
}

Question Number 187

Which is the function used to concatenate two strings in C?

Question Number 188

Give the output of the following code snippet :
void main()
{
    char new1[]="Hi";
    for(int i=0; i< 3; i++)
    {
        printf("%d  ",new1[i]);
    }
}

Question Number 189

Which of the following are constituents of a C program :

Question Number 190

Name the function key associated with setting up a breakpoint in VS :

Question Number 191

Which of the keywords denote the size and type of a variable in C :

Question Number 192

Which of the following statements is true about a file in C?

Question Number 193

Give the output of the following code snippet :
void main()
{
    int x=0,y=1,z=2;
    x+y-z>10?x=100:y=200;
    if(x==100||y==200)
        printf("%d",2^x);
    else
        printf("%d",2^y);
}

Question Number 194

Give the output of the following code snippet :
struct test
{
    int k;
    char c;
    float f;
};
int main()
{
    struct test var = {5,80,2.0};
    printf("%f\n", var.f);
}

Question Number 195

If the fopen() function is not able to open a file, then what does it return?

Question Number 196

Visual Studio is NOT

Question Number 197

Give the output of the following code snippet :
int func()
{
    return (double)5.0;
}
void main()
{

    printf("%d", func());
}

Question Number 198

Give the output of the following code snippet :
int main()
{
    struct emp
    {
        char name[25];
        int age;
    };
    struct emp e;
    e.name = "Jenna";
    e.age = 25;
    printf("%s %d\n", e.name, e.age);
    return 0;
}

Question Number 199

Give the output of the following code snippet :
int main()
{
    int fun(int);
    int i = fun(10);
    printf("%d\n", --i);
    return 0;
}
int fun(int i)
{
    return (i++);
}

Question Number 200

Give the output of the following code snippet :
struct point
{
    int x;
    int y;
};
struct point2
{
    int x;
    int y;
};
int main()
{
    struct point p = {1};
    struct point2 p1 = p;
    printf("%d\n", p1.x);
}

Question Number 201

Give the output of the following code snippet :

int main()
{
    int n;
    for (n = 5; n!=0; n--)
        printf("%d ", n--);
    return 0;
}

Question Number 202

Give the output of the following program :

void main()
{
    int a=5, b=10;
    if(a==5)&&if(b==10)
            printf("Values match");
}

Question Number 203

Give the output of the following code snippet :
void main()
{
    struct employee
    {
        int id;
    } emp=10;
    printf("%d\t",emp.id);
    getch();
}

Question Number 204

Name some of the basic errors that may occur during compilation of a C program in VS:

Question Number 205

Which of the keywords denote the scope of a variable in C :

Question Number 206

Give the output of the following code snippet :
void main()
{
    struct employee
    {
        int id;
    };
    struct employee emp1= {20};
    printf("%d\t",emp1.id);
}

Question Number 207

Which of the following is a valid structure initialization?

Question Number 208

Give the output of the following code snippet :
int func(int a)
{
    int b=10;
    return a+++ ++b;
}
int main()
{
    int x=5;
    int z=func(func(func(func(++x))));
    printf("%d",z);
}

Question Number 209

Give the output of the following code snippet :
void main()
{
    int a=13;
    if(a==12)
    {
        a==12?a=0:a=1;
        if(a==0)
            a++;
        else
            a--;
    }
    if(a==13)
        a=a-2;
    printf("%d",a);
}

Question Number 210

Breakpoints allow you to :

Question Number 211

In which of the following ways can a structure variable be created?

Question Number 212

When is the increment statement(s) of the for loop executed?

Question Number 213

Which of the following statements is true :

Question Number 214

Which of the following statements is an example of an array initialization in C?

Question Number 215

Which of the following are the user interfaces that help to debug a program with Visual Studio:

Question Number 216

The steps to start a New Wizard in Visual Studio 2010 is,

Question Number 217

Visual studio supports

Question Number 218

Give the output of the following code :

struct p
{
    int k;
    char c;

};
int main()
{
    struct p x = {0,1};
    x.k=10;
    printf("%d %d\n", x.k,x.c);
}

Question Number 219

In C, if you pass an array as an argument to a function, what actually gets passed?

Question Number 220

How can you deal with errors during compilation of a C program in VS?

Question Number 221

Give the output of the following code snippet :
void func()
{
    int i=10;
    void func1()
    {
        int j=10;
        printf("%d",j);
    }
    func1();
    printf("%d",i);
}
int main()
{
    func();
}

Question Number 222

What is Visual Studio?

Question Number 223

Give the output of the following code snippet :

int main()
{
    int a = 0, i = 0, b;
    for (i = 0; i <  5; i++)
    {
        a++;
        if (i == 3)
            break;
    }
    printf("%d %d",a,b);
}

Question Number 224

Which function returns a non-zero value if the EOF indicator is set for file stream?

Question Number 225

Give the output of the following code snippet :
void main()
{
    int a=12,i=0;
    --a;
    i++;
    do
    {
        printf("%d",a);
        ++i;
    }
    while(--i);

}

Question Number 226

Which of the following statements is true by the Call by reference method?

Question Number 227

Give the output of the following C code:
void hello()
{
    printf("Welcome");
}


void main()
{
    hello();
    printf("I repeat");
    hello();
}

Question Number 228

Which of the keywords denote the size and type of a variable in C :

Question Number 229

Which of the following steps are required to execute a C program in Visual Studio?

Question Number 230

Give the output of the following code snippet :
void main()
{
    char new1 ='c';
    if( new1 =='C') || if(new1 =='c')

            printf("Same");
        else
            printf("Not Same");

}

Question Number 231

Among all the files that make up a source program, how many times can an external variable be defined?

Question Number 232

Give the output of the following code snippet :
void main()
{
    int i = 0;
    while (++i)
    {
        printf("Ho");
    }
}

Question Number 233

Which of the following are keywords in C:

Question Number 234

Give the output of the following code snippet :
void func()
{
    int i=1;
    while(!i)
    {
        func();
    }
    printf("%d",i++);
}
void main()
{
    func();
}

Question Number 235

Property of external variable to be accessed by any source file is called as

Question Number 236

Give the output of the following code snippet :
void main()
{
    struct employee
    {
        int id=10;
    };
    struct employee emp1= {20};
    printf("%d\t",emp1.id);
}

Question Number 237

Which of the following functions is used to get the current position for file stream?

Question Number 238

Name the type of errors that occur due to a missing semi-colon(;) in a C program:

Question Number 239

Give the output of the following code snippet :
int func(int a)
{
    int b=10,i=0;
    while(a!=0)
    {
        int c=a+b;
        a--;
        b--;

    }
    printf("%d ",c);
    return 0;
}
int main()
{
    int x=5;
    func(x);
}

Question Number 240

Give the output of the following code snippet :
int sum(int,int);
int main()
{
    int c= sum(10,20);
    printf("Sum = %d", c);
}
int sum(int a,int b)
{
    return a+b;
    return a-b;
}

Question Number 241

Give the output of the following code snippet :
struct student
{
    int id;
};
void main()
{
    struct student s[10];
    s.id = 10;
    printf("%d", s.id);
}

Question Number 242

Give the output of the following code snippet :
void main()
{
    int i=3,x=10;
    i++;
    switch(i)
    {
    case 2:
        printf("%d ",x++);
        break;
    case 3:
        printf("%d ",x+2);
    case 4:
        printf("%d ",x+3);
    default:
        printf("Hello");
        break;
    }
}

Question Number 243

Give the output of the following code snippet :
int a=10;
void func()
{
L1:
    printf("%d",a);
}
void main()
{
    int a=13,b=20;
    if(!a!=b&&a==!b)
        goto L1;
    else
        b--;
}

Question Number 244

Which of the following statement is true about arrays in C :

Question Number 245

Give the output of the following code snippet :
void main()
{
    int i = 0;
    for (i = 0; i <  5; i++)
        if (i <  4)
        {
            printf("Ho ");
            break;
        }
}

Question Number 246

Give the output of the following code snippet :
void dummy() {};
void main()
{
    dummy();
}

Question Number 247

Give the output of the following code snippet : Assume the input as 100
void main()
{
    int x=0,z;
    z=printf("%d ",scanf("%d ",&x));
    printf("%2d",z);
}

Question Number 248

Which of the keywords denote the scope of a variable in C :

Question Number 249

What is integrated into Visual Studio?

Question Number 250

Give the output of the following code snippet :

void main()
{
    int i = 2;
    do
    {
        printf("Hi ");
    }
    while (i <  2)
    }

Question Number 251

What does the fclose() function take as the argument?

Question Number 252

Give the output of the following code snippet :
struct student
{
    char c[10];
};
void main()
{
    struct student s;
    printf("%d", sizeof(s));
}

Question Number 253

What are the types of functions that can be used in C?

Question Number 254

Give the output of the following code snippet :
void main()
{
    struct temp
    {
        int a;
        char b;
        struct temp1
        {
            char c;
        } p;
    };
    struct temp t1 = {10,'A','e'};

    printf("%d %c %c ",a,b,c);
}

Question Number 255

Identify the type of error in the given code :

void main()
{
    int a = 10;
    {
        printf("Hello world");

        printf("%d",a);
    }