PU - Day 1 assessments - Mahendran's batch

PU - Day 1 assessments - Mahendran's batch

Professional Development

10 Qs

quiz-placeholder

Similar activities

c

c

Professional Development

10 Qs

PJP Apr 23

PJP Apr 23

Professional Development

10 Qs

Programming

Programming

Professional Development

10 Qs

Day3

Day3

Professional Development

15 Qs

DAY1

DAY1

Professional Development

15 Qs

TCS Preparation

TCS Preparation

Professional Development

10 Qs

Technical Quiz Final Round

Technical Quiz Final Round

Professional Development

14 Qs

Arithmetic Operators

Arithmetic Operators

Professional Development

9 Qs

PU - Day 1 assessments - Mahendran's batch

PU - Day 1 assessments - Mahendran's batch

Assessment

Quiz

Professional Development

Professional Development

Hard

Created by

training atomm

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following C code?

  1. #include <stdio.h>

  2. void main()

  3. {

  4. int a = 3;

  5. int b = ++a + a++ + --a;

  6. printf("Value of b is %d", b);

  7. }

Value of b is 10
Value of b is 8
Value of b is 15
Value of b is 12

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following C code?

  1. #include <stdio.h>

  2. void main()

  3. {

  4. int x = 5;

  5. int y = x++ + --x + x--;

  6. printf("Value of y is %d", y);

  7. }

Value of y is 10

Value of y is 12

Value of y is 15

Value of y is 8

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following C code?

  1. #include <stdio.h>

  2. void main()

  3. {

  4. int p = 2, q = 3;

  5. int r = p * ++q + --p;

  6. printf("Value of r is %d", r);

  7. }

Value of r is 5

Value of r is 6

Value of r is 7

Value of r is 8

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following C code?

  1. #include <stdio.h>

  2. void main()

  3. {

  4. int m = 4;

  5. int n = m-- + --m + ++m;

  6. printf("Value of n is %d", n);

  7. }

Value of n is 10

Value of n is 9

Value of n is 8

Value of n is 7

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following C code?

  1. #include <stdio.h>

  2. void main()

  3. {

  4. int a = 6;

  5. int b = a++ + ++a + --a;

  6. printf("Value of b is %d", b);

  7. }

Value of b is 18

Value of b is 16

Value of b is 12

Value of b is 14

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following C code?

  1. #include <stdio.h>

  2. void main()

  3. {

  4. int x = 7;

  5. int y = --x + x-- + ++x;

  6. printf("Value of y is %d", y);

  7. }

Value of y is 21

Value of y is 19

Value of y is 20

Value of y is 18

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following C code?

  1. #include <stdio.h>

  2. void main()

  3. {

  4. int p = 5, q = 2;

  5. int r = p / --q + ++p;

  6. printf("Value of r is %d", r);

  7. }

Value of r is 5

Value of r is 6

Value of r is 8

Value of r is 7

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?