c basic

c basic

University

10 Qs

quiz-placeholder

Similar activities

Què has après sobre el web ?

Què has après sobre el web ?

University

10 Qs

Prak MC

Prak MC

University

15 Qs

Quiz on Basics of C

Quiz on Basics of C

University

10 Qs

Firewall e IDS - Segurança de Redes

Firewall e IDS - Segurança de Redes

University

10 Qs

nestedif _ And _ Or

nestedif _ And _ Or

University

10 Qs

SOII. Gestión ficheros y práctica

SOII. Gestión ficheros y práctica

University

10 Qs

Javascript

Javascript

University

12 Qs

Programación II Parte 5

Programación II Parte 5

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