c basic

c basic

University

10 Qs

quiz-placeholder

Similar activities

CODE CAREER

CODE CAREER

University

9 Qs

IT Quiz Round 3

IT Quiz Round 3

University

10 Qs

Programming C

Programming C

University

10 Qs

Rapid Round 1

Rapid Round 1

University

10 Qs

ISAC Weekly Quiz 6 (Fundamentals of C programming)

ISAC Weekly Quiz 6 (Fundamentals of C programming)

University

10 Qs

C++ Quiz

C++ Quiz

University

10 Qs

CIS1101-programming practice2

CIS1101-programming practice2

University

10 Qs

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

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

University

15 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?