C Quiz 5_M

C Quiz 5_M

University

15 Qs

quiz-placeholder

Similar activities

KT giữa kì - NMLT

KT giữa kì - NMLT

10th Grade - University

14 Qs

C programming-1

C programming-1

University

13 Qs

TECHNICAL C PROGRAM

TECHNICAL C PROGRAM

University

10 Qs

Array in C

Array in C

University

10 Qs

Module 1 - Programming in C

Module 1 - Programming in C

University

15 Qs

Arrays

Arrays

11th Grade - University

10 Qs

C Quiz2

C Quiz2

University

12 Qs

EC8393_FDS_MODEL EXAM_3_PART B

EC8393_FDS_MODEL EXAM_3_PART B

University

15 Qs

C Quiz 5_M

C Quiz 5_M

Assessment

Quiz

Computers

University

Medium

Created by

SAI KRISHNA

Used 3+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Q. Predict the Output:

#include <stdio.h>

int main()  

{

    int a,b;

    a=1, 3, 15;

    b=(2, 4, 6);

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

    return 0;

}

1, 6

15, 6

1, 2

Error

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Q.Predict the Output:

#include <stdio.h>

int main()  

{

    int i=0;

    if(i==0)

    {

        i=((5,(i=3)),i=1);

        printf("%d",i);

    }

    return 0;

}

1

0

Error

5

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Q. Predict the Output:

#include <stdio.h>

int call(int a);

int main()  

{

   static int main;

   int x;

   x= call(main);

   printf("%d",x);

    return 0;

}

int call(int a)

{

    a++;

    return a;

}

1

0

Error

None

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Q. Predict the Output:

#include<stdio.h>

#include<string.h>

int main()  

{

    printf("%ld, %ld", sizeof("sai"), strlen("sai"));

    return 0;

}

4, 3

4, 4

3, 3

Error

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Q. Predict the Output:

#include<stdio.h>

#include<string.h>

int i=8;

int main()  

{

    int i=9;

    printf("%d",i);

    return 0;

}

9

8

0

Error

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Q. Predict the Output:

#include <stdio.h>

struct marks

{

    int p;

    int c;

    int m;

};

int main()

{

   struct marks s={2,-6,5};

   printf("%d, %d, %d ",s.p,s.c,s.m);

    return 0;

}

2, -6, 5

Error

None

0, 0, 0

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Q. Predict the Output:

#include <stdio.h>

struct marks

{

    int p;

    int c;

    int m;

};

int main()

{

   struct marks s;

   printf("%d,%d,%d",s.p,s.c,s.m);

    return 0;

}

0, 0, 0

Error

None

GV, GV, GV

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?