C Programming

C Programming

5th - 12th Grade

31 Qs

quiz-placeholder

Similar activities

EXAMEN 5TO PRIM 1ER TRIMESTRE

EXAMEN 5TO PRIM 1ER TRIMESTRE

5th Grade

27 Qs

ICT CORE

ICT CORE

7th - 11th Grade

27 Qs

Bezpieczeństwo w Internecie

Bezpieczeństwo w Internecie

6th - 8th Grade

34 Qs

ÔN TẬP GIỮA KỲ I

ÔN TẬP GIỮA KỲ I

6th Grade

30 Qs

ÔN TẬP KIỂM TRA THƯỜNG XUYÊN KỲ 2

ÔN TẬP KIỂM TRA THƯỜNG XUYÊN KỲ 2

11th Grade

26 Qs

Microbit & Climate Change

Microbit & Climate Change

3rd - 8th Grade

27 Qs

Computer

Computer

8th Grade

26 Qs

TIK: Aplikasi perkantoran dan Email

TIK: Aplikasi perkantoran dan Email

7th Grade

30 Qs

C Programming

C Programming

Assessment

Quiz

Computers

5th - 12th Grade

Medium

Created by

Aarya Aarya

Used 12+ times

FREE Resource

AI

Enhance your content in a minute

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

31 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will happen when the following code is executed?

void main()

{

printf("MIET");

main();

}

Wrong statement

It will keep on printing MIET

It will print MIET once

None of these

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result after execution of the following code if a is 10, b is 5, and c is 10?

if ((a > b) && (a <= c))

a = a + 1;

else

c = c+1;

a = 10, c = 10

a = 11, c = 10

a = 10, c = 11

a = 11, c = 11

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the result of 'num' variable after execution of the following statements?

int num = 58;

num % = 11;

3

5

8

11

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following C code?

#include <stdio.h>

void main()

{

int x = 5;

if (x < 1)

printf("hello");

if (x == 5)

printf("hi");

else

printf("no");

}

hi

hello

no

error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following C code?

#include <stdio.h>

int main()

{

int x = 0;

if (x == 1)

if (x == 0)

printf("inside if\n");

else

printf("inside else if\n");

else

printf("inside else\n");

}

inside if

inside else if

inside else

compile time error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The value of i after the execution of the following segment is

i = 2;

for( i=0; i>10; i=i+1);

1

2

0

11

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

C language developed at _____?

AT & T's Bell Laboratories of USA in 1972

AT & T's Bell Laboratories of USA in 1970

Sun Microsystems in 1973

Cambridge University in 1972

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?