c basic

c basic

University

10 Qs

quiz-placeholder

Similar activities

Python Quiz 1.4

Python Quiz 1.4

University

12 Qs

Tree and Planar Graph

Tree and Planar Graph

University

10 Qs

Quiz 1

Quiz 1

University

10 Qs

Computational Thinking in Python[Quiz 3]

Computational Thinking in Python[Quiz 3]

University

15 Qs

JRB2 Quiz 4

JRB2 Quiz 4

University

10 Qs

TMK Tahun 6 Ulang kaji

TMK Tahun 6 Ulang kaji

KG - University

11 Qs

Unguided transmission media

Unguided transmission media

University

10 Qs

c basic

c basic

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Manoj R

Used 37+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers