C programming

C programming

Professional Development

10 Qs

quiz-placeholder

Similar activities

Collections, JDBC/RDBMS

Collections, JDBC/RDBMS

Professional Development

10 Qs

Viva_18_02_2020

Viva_18_02_2020

Professional Development

10 Qs

Info Sys Preparation Set 1

Info Sys Preparation Set 1

Professional Development

10 Qs

TCS Preparation

TCS Preparation

Professional Development

10 Qs

Increment and decrement operators in c

Increment and decrement operators in c

Professional Development

13 Qs

C Operators

C Operators

University - Professional Development

15 Qs

C Structure & Union Quiz

C Structure & Union Quiz

Professional Development

15 Qs

Tutorial 1 Chapter 4 C Programming

Tutorial 1 Chapter 4 C Programming

Professional Development

15 Qs

C programming

C programming

Assessment

Quiz

Professional Development

Professional Development

Hard

Used 1K+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?