Search Header Logo

C programming

Professional Development

Professional Development

Used 1K+ times

C programming
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 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

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

int main()


{


char arr[7]="Network";


printf("%s", arr);


return 0;


}

Network

N

Garbage Value

Compilation error

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

#include<stdio.h>

int main()

{

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

printf("%s",arr);

}

The African Queen

The

The African

Compilation error

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

#include<stdio.h>

int main()

{

float a=0.7;

if(a<0.7)

{

printf("C");

}

else

{

printf("C++");

}

}

C

C++

Compilation Error

None of the these

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

int main ()


{


int x = 24, y = 39, z = 45;


z = x + y;


y = z - y;


x = z - y;


printf ("n%d %d %d", x, y, z);


}

24 39 63

39 24 63

24 39 45

39 24 45

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

int main() {


int m = -10, n = 20;


n = (m < 0) ? 0 : 1;


printf("%d %d", m, n);


}

-10 0

10 20

20 -10

0 1

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

int main() {


int x = 0, y = 0;


if(x > 0)


if(y > 0)


printf("True");


else


printf("False");


}

No Output

True

False

Error because of dangling else problem

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?

Discover more resources for Professional Development