PU - Day 1 assessments - Mahendran's batch

PU - Day 1 assessments - Mahendran's batch

Professional Development

10 Qs

quiz-placeholder

Similar activities

Matrices

Matrices

7th Grade - Professional Development

10 Qs

Web Development Workshop

Web Development Workshop

University - Professional Development

10 Qs

Kotlin Fundamentals

Kotlin Fundamentals

Professional Development

7 Qs

C programming

C programming

Professional Development

10 Qs

หน่วยที่ 4 การเขียนโปรแกรมแบบเลือกทำ

หน่วยที่ 4 การเขียนโปรแกรมแบบเลือกทำ

Professional Development

10 Qs

Programação C

Programação C

Professional Development

10 Qs

REPASO C++

REPASO C++

Professional Development

8 Qs

Fuerza en el rendimiento deportivo

Fuerza en el rendimiento deportivo

Professional Development

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