Search Header Logo

C Programming (Arttırma ve Azaltma Operatörleri)

Authored by Emsal Academy

Computers

University

C Programming (Arttırma ve Azaltma Operatörleri)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

2 kod arasındaki fark nedir?

Boşluk fark yaratmadığı için fark yok, a, b, d değerleri her iki durumda da aynı

Boşluk fark yaratıyor, a, b, d değerleri farklı

Program 1'de sözdizimi hatası var , program 2 değil

Program 2'de sözdizimi hatası var, program 1 değil

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. #include <stdio.h>

  2. int main()

  3. {

  4. int a = 1, b = 1, c;

  5. c = a++ + b;

  6. printf("%d, %d", a, b);

  7. }

a = 1, b = 1

a = 2, b = 1

a = 1, b = 2

a = 2, b = 2

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. #include <stdio.h>

  2. int main()

  3. {

  4. int a = 1, b = 1, d = 1;

  5. printf("%d, %d, %d", ++a + ++a+a++, a++ + ++b, ++d + d++ + a++);

  6. }

15, 4, 5

15, 4, 5

9, 3, 5

Undefined (Compiler Dependent)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. #include <stdio.h>

  2. int main()

  3. {

  4. int a = 10, b = 10;

  5. if (a = 5)

  6. b--;

  7. printf("%d, %d", a, b--);

  8. }

a = 10, b = 9

a = 10, b = 8

a = 5, b = 9

a = 5, b = 8

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. #include <stdio.h>

  2. int main()

  3. {

  4. int i = 0;

  5. int j = i++ + i;

  6. printf("%d\n", j);

  7. }

0

1

2

Compile time error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. #include <stdio.h>

  2. int main()

  3. {

  4. int i = 2;

  5. int j = ++i + i;

  6. printf("%d\n", j);

  7. }

6

5

4

Compile time error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. #include <stdio.h>

  2. int main()

  3. {

  4. int i = 2;

  5. i = i++ + i;

  6. printf("%d\n", i);

  7. }

5

6

1

Compile time 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?