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

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

Question Number 2

Automatic variables are variables that are

Question Number 3

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 4

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

Question Number 5

Give the output of the following code :
int main()
{
    char str1[20] = "Hello", str2[20] = " World";
    printf("%s\n", strcpy(str2, strcat(str1, str2)));
    return 0;
}

Question Number 6

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

Question Number 7

A function in C must always return a value. State true or false :

Question Number 8

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

Question Number 9

Give the output of the following code snippet :

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

Question Number 10

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

Question Number 11

Debugging helps in the following :

Question Number 12

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

}

Question Number 13

Which of the following statements are true regarding a function in C?

Question Number 14

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

Question Number 15

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

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

Question Number 16

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

Question Number 17

The function declaration in C provides information to the compiler about :

Question Number 18

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

Question Number 19

Give an example of a library function in C

Question Number 20

Which of the following gives the memory address of the first element in array arr, an array with 10 elements?

Question Number 21

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

Question Number 22

A function in C cannot return more than one value at once. State true or false :

Question Number 23

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 24

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

Question Number 25

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 26

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 27

Which of the following functions control the buffering of the stream?

Question Number 28

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

Question Number 29

If two strings are identical, then what does the strcmp() function return?

Question Number 30

Visual Studio is NOT

Question Number 31

Give the output of the following code snippet :
void main()
{
    int i=0,j;
    for(i=-1,j=2; j< 6; j++)
    {
        if(j!=5)
            continue;
        else i++;
    }
    printf("%d",i);
}

Question Number 32

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

Question Number 33

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

Question Number 34

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 35

Give the output of the following code snippet :

void main()
{
    int n;
    for (n = 4; n!=0; n--)
        printf("%d ", n--);

}

Question Number 36

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

Question Number 37

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

Question Number 38

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 39

Give the output of the following code snippet :

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

Question Number 40

A stream is connected to a file or device by :

Question Number 41

Give the output of the following code snippet :
void main( )
{
    float c;
    c = getchar( );
    printf( "\nYou entered: ");
    putchar( c );
}

Assume input as 2.45 :

Question Number 42

Give the output of the following snippet :
struct student
{
    int no = 5;
    char name[20];
};
void main()
{
    struct student s;
    s.no = 8;
    printf("Hello");
}

Question Number 43

Give the output of the following code snippet :
void func(int a,int b)
{
    int z=a >= b?a= a/b:a=20%10;
    printf("%d ",z);
}
int main()
{
    func(100,250);
    func(20,20);
}

Question Number 44

Which of the following is a debugger :

Question Number 45

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

Question Number 46

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

Question Number 47

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

Question Number 48

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

Question Number 49

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

Question Number 50

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 51

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 52

Identify the type of error in the given code :

void main()
{
    printf("Hello world");
    printf(Test);
}

Question Number 53

Which of the following are constituents of a C program :

Question Number 54

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 55

What is the general syntax to call a function in C?

Question Number 56

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

Question Number 57

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

Question Number 58

What is Visual Studio?

Question Number 59

What is a text stream in C?

Question Number 60

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

Question Number 61

Consider the given code snippet :

int main()
{
    int i = 0;
    while (i <  3)
        i++;
    printf("In while loop\n");
}

How many times is the value of 'i' checked in the condition i <  3?

Question Number 62

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

Question Number 63

Give the output of the following code :
struct p
{

    char c;
    float f;
};

int main()
{
    printf("%c %f \n", c, f);
}

Question Number 64

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

Question Number 65

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

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

}

Question Number 66

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

Question Number 67

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

Question Number 68

Give the output of the following code snippet :
void main()
{
    float x=0.3;
    float y=0.3;
    if(x==y)
        printf("%f",x+y);
    else
        printf("%f",x-y);
}

Question Number 69

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

Question Number 70

In C, the keyword used to transfer control from a function back to the calling function is

Question Number 71

What are the arguments that the fopen() function takes?

Question Number 72

Which of the following are file positioning functions in C?

Question Number 73

Give the output of the following code snippet :
int main()
{
    int a,b;
    int func(int,int);
    a=func(100,250);
    b=func(20,20);
    printf("%d %d",a,b);
}
int func(int a,int b)
{
    int z= a >= b?(a= a*b): (a=20/b) ;
    return z;
}

Question Number 74

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

Question Number 75

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

Question Number 76

Consider the following code snippet and give the output of the program :
main()
{
    int  a=12;
    if(a==12);
    printf("Input 1");
    else
        printf("Input other");
}

Question Number 77

What is the return value of a strcmp() function?

Question Number 78

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

Question Number 79

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

Question Number 80

Name the looping statements available in C :

Question Number 81

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

Question Number 82

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 83

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

Question Number 84

Identify the keyword(s) in the program

Question Number 85

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

Question Number 86

In which header file is the integer expression errno declared?

Question Number 87

What is the return-type of the function sqrt() in C?

Question Number 88

For a given C program, a function can be called :

Question Number 89

What is integrated into Visual Studio?

Question Number 90

Give the output of the following code snippet :

void main()
{
    int x;
    for(x=1; x< =3; x++);
    printf("%d",x);
}

Question Number 91

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

Question Number 92

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

Question Number 93

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

Question Number 94

Boiler plate code is auto-generated in Visual Studio by

Question Number 95

Give the output of the following code snippet :

void main()
{
    char new1 ='c';
    if( new1 =='C')

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

}

Question Number 96

Give the output of the following code snippet :
struct p
{
    int mark1,mark2,mark3;
};

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

Question Number 97

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

Question Number 98

How can an array of strings be represented as?

Question Number 99

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

Question Number 100

Give the output of the following code snippet :
int main()
{
    int a = 10, b;
    a >=5 ? b=100: b=200;
    printf("%d\n", b);
    return 0;
}

Question Number 101

Which of the following is not a debugger :

Question Number 102

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

Question Number 103

Which of the following statements in C stops execution of the loop but executes statements that immediately follow the loop?

Question Number 104

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

Question Number 105

Give the output of the following code :
int main()
{
    int i=1;
    if(!i)
        printf("Hello,");
    else
    {
        i=0;
        printf("Jello");
        main();
    }
    return 0;
}

Question Number 106

Debugging allows you to :

Question Number 107

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



void main()
{
    int a=5;

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

Question Number 108

Give the output of the following code snippet :
int main()
{
    int a = 1;
    switch(a)
    {
    case 1:
        printf("First");

    case 2:
        printf("Second");

    case 3:
        printf("Final");
        break;

    }

Question Number 109

Which of the following are parts of a function in C:

Question Number 110

Which of the following is a storage specifier?

Question Number 111

What is integrated into Visual Studio?

Question Number 112

Visual Studio is NOT

Question Number 113

Which of the following functions is used to remove a named file?

Question Number 114

Which of the following are constituents of a C program :

Question Number 115

Write the given if else statements using conditional operator in C :
if (x <  y)
{
    min = x;
}
else
{
    min = y;
}

Question Number 116

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

Question Number 117

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

Question Number 118

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

Question Number 119

Which of the following is a valid string definition?

Question Number 120

Give the output of the following code snippet :
int func2(int y)
{
    if(y==1)
        return 1;
    int x=20;
    x+=func2(--y);
    return x;
}
void main()
{
    int i=10;
    int b=func2(i);
    printf("%d",b);
}

Question Number 121

Which of the following statements indicate the general nature of computer programs?

Question Number 122

What are the functions that are available to manipulate strings in C?

Question Number 123

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

Question Number 124

Give the output of the following code snippet :
void countFun ( int count )
{

    if ( count < = 5 )
    {
        printf(" %d ", count);
        countFun( count + 1 );
    }
}
int main()
{
    countFun ( 2 );
}

Question Number 125

Give the output of the following code snippet :

int main()
{
    int i;
    for(i=0; i< =6; i++)
    {
        if(i <  3)
            continue;
        else
            break;
        printf("Test");
    }
    return 0;
}

Question Number 126

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

Question Number 127

For a 32 bit float number with 6 significant bits, the magnitude lies between :

Question Number 128

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

Question Number 129

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

Question Number 130

Give the output of the following code snippet :

int main()
{
    int i;
    for(i=0; i< =6; i++)
    {
        if(i <  3)
            continue;
        else
            printf("Test");
        break;

    }
    return 0;
}

Question Number 131

Give the output of the following code snippet :
int main()
{
    while()
    {
        printf("Hello world");
    }
    return 0;
}

Question Number 132

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

Question Number 133

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

Question Number 134

Give the output of the following code snippet :
int func2(int y)
{
    if(y==1)
        return 1;
    func2(--y);
}
void main()
{
    int i=10;
    int b=func2(i);
    printf("%d",b);
}

Question Number 135

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

Question Number 136

Which of the following is a debugger :

Question Number 137

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

Question Number 138

Development tools are normally NOT used for,

Question Number 139

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

Question Number 140

Which of the following statements are true about keywords in C?

Question Number 141

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

Question Number 142

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

Question Number 143

Give the output of the following code :
int main()

{
    int i=5;
    while(i)

    {
        printf("Hello world");
    }
    return 0;
}

Question Number 144

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 145

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


void main()
{
    int a=5;

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

Question Number 146

Which of the following are keywords in C:

Question Number 147

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

Question Number 148

Show the correct order of execution for creating and executing a program in Visual Studio:

Question Number 149

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

Question Number 150

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

Question Number 151

Which of the following are file positioning functions in C?

Question Number 152

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

Question Number 153

Which of the following statements is true about structures in C?

Question Number 154

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

}

Question Number 155

Give the output of the following code snippet :
int main()
{
    int a,b;
    int func(int a,int b);
    a=func(100,250);
    b=func(20,20);
    printf("%d %d",a,b);
}
int func(int a,int b)
{
    int z;
    return a >= b?(a= a/b): (a=20/b) ;
}

Question Number 156

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

}

Question Number 157

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

Question Number 158

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);
    printf("%p",main);
}

Question Number 159

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

Question Number 160

Give the output of the following code snippet :
void main()
{
    char i='d';
    if((i=='d') && (i=='D'))
        printf("Values match");
    else
        printf("No match");
}

Question Number 161

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

}

Question Number 162

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 163

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

Question Number 164

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

Question Number 165

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 166

Give the output of the following code snippet :

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

}

Question Number 167

Give the output of the following code snippet :
void main()
{
    int x=0,y=1,z=2;
    if((x==y)&(z==x+2))
        printf("%d",z);
    else
        printf("%d",++x);
}

Question Number 168

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

Question Number 169

Which of the following is a valid string definition?

Question Number 170

Which of the following are constituents of a C program :

Question Number 171

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

Question Number 172

Give the output of then following code snippet :

int main()
{
    int x,y=5;
    for(x=0; x< 3; x++)
        if(y>=5)
            printf(" %d",x);
    return 0;
}

Question Number 173

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

Question Number 174

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 == p2)
        printf("p1 and p2 are same ");
}

Question Number 175

Which of the following are parts of a function in C:

Question Number 176

Visual Studio has

Question Number 177

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

Question Number 178

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

Question Number 179

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

Question Number 180

Breakpoints do not allow you to :

Question Number 181

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 182

What are the arguments passed to the fwrite() function?

Question Number 183

When is the condition statement in a for loop checked in C?

Question Number 184

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("%6.2f",p+q-r);
}

Question Number 185

Give the output of the following code snippet : Assume the contents of the file 'Test.txt' is "Hello World".
void main()
{
    char x;
    FILE *fp;
    fp=fopen("Test.txt","r");
    while((x=getc(fp))!=EOF)
    {

    }
    printf("%c",x);
    fclose(fp);
}

Question Number 186

Give the output of the following code snippet :
int main()
{
    struct value
    {
        int mark1;
        int mark2;
    } val= {10,20};

    printf("%d %d\n", val.mark1,val.mark2);
}

Question Number 187

Which keyword in C does not change the number of iterations which could have been executed by the condition?

Question Number 188

Give the output of the following code snippet :
register int x;
void main()
{

    printf("%d", x);
}

Question Number 189

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

Question Number 190

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

Question Number 191

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

Question Number 192

How many elements can the array arr[10][5] hold?

Question Number 193

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 194

Give the output of the following code snippet :
int main()
{
    int k, num = 30;
    k = (num <  10) ? 100 : 200;
    printf("%d\n", num);
    return 0;
}

Question Number 195

Give the output of the following code snippet :
void func(int a)
{
    int sum=0,x,a=10;
    while(a!=0)
    {
        x=a%100;
        sum+=(x+x+x);
        a=a/10;
    }
    printf("%d ",sum);
}
int main()
{
    func(1000);
    func(2222);
}

Question Number 196

Give the output of the following code snippet :
int main()
{
    void Fun();
    printf("1 ");
    Fun();
}
void Fun()
{
    printf("2 ");
}

Question Number 197

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

Question Number 198

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

Question Number 199

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

Question Number 200

Give the output of the following code snippet :

void fun()
{
    return 1;
}
void main()
{
    int x = 0;
    x = fun();
    printf("%d", x);
}

Question Number 201

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

Question Number 202

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 203

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

Question Number 204

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

Question Number 205

Visual Studio is NOT

Question Number 206

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 207

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

Question Number 208

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

Question Number 209

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

Question Number 210

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.x)
        printf("p1 and p2 are same ");
}

Question Number 211

What are the functions that are available to manipulate strings in C?

Question Number 212

Which of the following functions is used to create a temporary name?

Question Number 213

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

Question Number 214

Give the output of the following code :
void fun (int)
{
    printf("Hello");

}
void main()
{
    fun();
}

Question Number 215

Versions of Visual Studio are,

Question Number 216

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("%c\n", var.c);
}

Question Number 217

Versions of Visual Studio are,

Question Number 218

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

Question Number 219

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

Question Number 220

Give the output of the following snippet :
struct student
{
    int no;
    char name[20];
};
void main()
{
    student s;
    s.no = 8;
    printf("%d", s.no);

}

Question Number 221

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

Question Number 222

Which of the following are keywords in C:

Question Number 223

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

Question Number 224

Platforms and software supported by Visual Studio are,

Question Number 225

Platforms and software supported by Visual Studio are,

Question Number 226

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

Question Number 227

Give the output of the following code snippet :

void main()
{
    char new1[]= { 0 };
    strcpy(new1,"Jello");
    char new2[]= { 0 };
    strcpy(new2,"Yellow");
    char new3[]= { 0 };
    strcat(new3,new1);
    strcat(new3,new2);
    printf (new3);
}

Question Number 228

Give the syntax for the for loop in C :

Question Number 229

Wizard in Visual studio is normally a set of,

Question Number 230

Identify the type of error in the given code :

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

        printf("%d",a);
    }

Question Number 231

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

Question Number 232

Give the output of the following code snippet :

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

Question Number 233

Which is the function used to copy a particular string into an array in C?

Question Number 234

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 235

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

Question Number 236

Development tools are normally NOT used for,

Question Number 237

The rewind(fp) function is equivalent to which of the following functions?

Question Number 238

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

Question Number 239

Give the output of the following code snippet :
struct student
{
    int no;
    char name[20];
}
void main()
{
    struct student s;
    s.no = 8;
    printf("Hello");
}

Question Number 240

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 241

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

Question Number 242

What are the arguments passed to the fread() function?

Question Number 243

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

Question Number 244

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

Question Number 245

Versions of Visual Studio are,

Question Number 246

What is Visual Studio?

Question Number 247

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

}

Question Number 248

Give the output of the following code snippet :
int m();
void main()
{
    int k = m();
    printf("%d", k);
}
int m()
{
    int a[2] = {5, 8};
    return a[0];
}

Question Number 249

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

Question Number 250

Visual Studio has

Question Number 251

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 252

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

Question Number 253

Give the output of the following code snippet :
int main()
{
    FILE *fp1,*fp2;

    fp1=fopen("day.text","r");
    fp2=fopen("night.txt","r");
    fclose(fp1,fp2);
    return 0;
}

Question Number 254

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

Question Number 255

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);
}