C Programming Quiz

C Programming Quiz

12th Grade

10 Qs

quiz-placeholder

Similar activities

Ulangan harian 1 Algoritma dan Pemrograman

Ulangan harian 1 Algoritma dan Pemrograman

12th Grade - University

13 Qs

Direcciones IP v4

Direcciones IP v4

10th - 12th Grade

13 Qs

JSPS Competition Hackathon - Scratch Language - Grade 1

JSPS Competition Hackathon - Scratch Language - Grade 1

2nd Grade - University

10 Qs

Bài 2-Vai trò của thiết bị thông minh và tin học đối với xã hội

Bài 2-Vai trò của thiết bị thông minh và tin học đối với xã hội

10th - 12th Grade

10 Qs

Tin 8/1

Tin 8/1

KG - University

10 Qs

Visual C# Quiz - Chapter 5: Loops, Files, and Random Numbers

Visual C# Quiz - Chapter 5: Loops, Files, and Random Numbers

12th Grade

15 Qs

Revision for grade12- week 1 &2

Revision for grade12- week 1 &2

12th Grade

15 Qs

Repaso Estructura de datos U1

Repaso Estructura de datos U1

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?