C Programming

C Programming

5th - 12th Grade

31 Qs

quiz-placeholder

Similar activities

TIK KELAS 7

TIK KELAS 7

7th Grade

35 Qs

Dbi 4-6

Dbi 4-6

5th Grade

30 Qs

Pengenalan HTML

Pengenalan HTML

10th Grade

30 Qs

Vamos con PowerPoint 4°

Vamos con PowerPoint 4°

9th Grade

28 Qs

Grade 6th Intro into HTML

Grade 6th Intro into HTML

6th Grade

28 Qs

Internet y Redes (Parte II) 1º de Bach

Internet y Redes (Parte II) 1º de Bach

12th Grade

29 Qs

Ôn Tập Học Kì I Lớp 4

Ôn Tập Học Kì I Lớp 4

4th Grade - University

35 Qs

Macromedia Flash

Macromedia Flash

8th Grade - Professional Development

26 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?