Search Header Logo

C Programming

Authored by Mohd. Khan

University

Used 69+ times

C Programming
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

35 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of C Program.?

int main()

{

int a=25;

while(a <= 27)

{

printf("%d ", a);

a++;

}

return 0;

}

25 25 25

25 26 27

27 27 27

Compiler error

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of C Program.?

int main()

{

int k, j;

for(k=1, j=10; k <= 5; k++)

{

printf("%d ", (k+j));

}

return 0;

}

compiler error

10 10 10 10 10

10 11 12 13 14 15

None of the above

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of C Program.?

int main()

{

int k;

for(k=1; k <= 5; k++);

{

printf("%d ", k);

}

return 0;

}

1 2 3 4 5

1 2 3 4

6

5

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Loops in C Language are implemented using.?

While Block

For Block

Do While Block

All the above

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

int main()


{


int a = 10, b = 25;


a = b++ + a++;


b = ++b + ++a;


printf("%d %d n", a, b);


}

36 64

35 62

36 63

30 28

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int main()


{


char arr[7]="Network";


printf("%s", arr);


return 0;


}

Network

N

Garbage Value

Compilation error

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include<stdio.h>

int main()

{

char arr[11]="The African Queen";

printf("%s",arr);

}

The African Queen

The

The African

Compilation error

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?