c basic

c basic

University

10 Qs

quiz-placeholder

Similar activities

QUIZ MASTERY SHOWDOWN 1ST YEAR SET 2

QUIZ MASTERY SHOWDOWN 1ST YEAR SET 2

University

15 Qs

'C'Programming Basics - Prepared by Feroz Khan A.B

'C'Programming Basics - Prepared by Feroz Khan A.B

University

15 Qs

C Basics

C Basics

University

12 Qs

Module 1 - Programming in C

Module 1 - Programming in C

University

15 Qs

C programming-1

C programming-1

University

13 Qs

TECHNICAL C PROGRAM

TECHNICAL C PROGRAM

University

10 Qs

CODE CAREER

CODE CAREER

University

9 Qs

Array in C

Array in C

University

10 Qs

c basic

c basic

Assessment

Quiz

Computers

University

Hard

Created by

Manoj R

Used 37+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int main()

{

    int i = 1, 2, 3;

    printf("%d", i);

     return 0;

}

1

3

Garbage value

Compile time error

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int main()

{

    int main = 3;

    printf("%d", main);

    return 0;

}

3

Compile time error

Run time error

give garbage value

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of this program? if input a is 1 and b is 2

int main()

{

    int a, b;

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

    return 0;

}

1

2

runtime error

compile time error

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

int main()

{

    int i;

    i = printf("letsfindcourse");

    i = printf("%d ", i);

    printf("%d ", i);

    return 0;

}

letsfindcourse14 3

14

letsfindcourse14 30

letsfindcourse14 2

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int var = 20;

  int main()

  {

    int var = var;

    printf("%d ", var);

    return 0;

  }

Garbage Value

20

Compiler Error

None of these

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

#include <stdio.h>

int main()

{

printf("\new_c_question\by");

printf("\rIndian Oil");

return 0;

}

Indian Oil

Indian Oilioy

new c questions byIndian Oil

new c questions by

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

 #include <stdio.h>

    int main()

    {

        int i = 10, j = 2;

        printf("%d\n", printf("%d %d ", i, j));

    }

Compile time error

10 2 4

10 2 2

10 2 5

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?