C Programming Quiz

C Programming Quiz

12th Grade

10 Qs

quiz-placeholder

Similar activities

ukuran data

ukuran data

1st - 12th Grade

10 Qs

Test Your Knowledge of HTML

Test Your Knowledge of HTML

9th - 12th Grade

15 Qs

User Interface Design - Topic 1

User Interface Design - Topic 1

12th Grade

15 Qs

АЛГОРИТМІЗАЦІЯ 7 КЛ частина 1

АЛГОРИТМІЗАЦІЯ 7 КЛ частина 1

12th Grade

12 Qs

Sistema Binario

Sistema Binario

1st Grade - University

10 Qs

U26 Q7 - CIDR

U26 Q7 - CIDR

KG - University

12 Qs

Mikropemproses dan Mikropengawal

Mikropemproses dan Mikropengawal

12th Grade - University

15 Qs

WAN Sesi 1

WAN Sesi 1

1st Grade - University

10 Qs

C Programming Quiz

C Programming Quiz

Assessment

Quiz

Computers

12th Grade

Practice Problem

Hard

Created by

Sunil Kumar

Used 1+ 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

1 min • 1 pt

Who is the father of C language?

a) Steve Jobs

b) James Gosling

c) Dennis Ritchie

d) Rasmus Lerdorf

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include <stdio.h>                                                                                 

    int main()

    {

         float f1 = 0.7;

        if (f1 == 0.7)

             printf("equal\n");

        else

             printf("not equal\n");

    }

equal

not equal

output depends on compiler

none of the mentioned

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

int main()

{

    printf(5 + "NARAYANA");

   return 0;

}

AYANA

ANA

NARAYANA

COMPILE ERROR

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include<stdio.h>

int main()

{

  int x, y = 5, z = 5;

  x = y == z;

  printf("%d", x);

  getchar();

  return 0;

}

0

5

1

COMPILE ERROR

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

int main()

{

int a=2;

    switch(a)

    {

        case 1:printf("1 ");

        case 2:printf("2 ");

        case 3:printf("3 ");

        case 4:printf("4 ");

        default:printf("5 ");

    } 

   }    }

2

2 3 4

2 3 4 5

Compilation Error

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

int main()

{

if(5<3);

else

printf("Hello ");

printf("Hi");

}

A)      Hello Hi

Compilation Error

A)      Hi

Runtime Error

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

int main()

{

char i=1;

while(i<6)

{

printf("%d ", i);

i++;

}

printf("\n");

return 0;

}

1 2 3 ... 127

Compilation Error

1 2 3 ... 127 128 0 1 2 3 ... infinite times

1 2 3 4 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?