C Programming Quiz

C Programming Quiz

12th Grade

10 Qs

quiz-placeholder

Similar activities

Do you know some Java basics?

Do you know some Java basics?

9th - 12th Grade

14 Qs

Introduction to computer programming

Introduction to computer programming

12th Grade

11 Qs

แบบทดสอบก่อนเรียน การทำงานแบบทำซ้ำ while

แบบทดสอบก่อนเรียน การทำงานแบบทำซ้ำ while

12th Grade

10 Qs

Fundamentals of C

Fundamentals of C

11th Grade - University

6 Qs

Basic Python Coding

Basic Python Coding

11th - 12th Grade

15 Qs

Programming Functions

Programming Functions

6th - 12th Grade

13 Qs

Search for Content on Methods in Java

Search for Content on Methods in Java

11th - 12th Grade

10 Qs

ภาษาซี Array

ภาษาซี Array

10th Grade - University

10 Qs

C Programming Quiz

C Programming Quiz

Assessment

Quiz

Computers

12th Grade

Hard

Created by

Sunil Kumar

Used 1+ times

FREE Resource

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

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?